Lookup field issue with List template

by | Mar 21, 2013 | Development, SharePoint | 0 comments

I’m working for my customer with SharePoint project. As there’ s nothing the part of the project is creating lists from scratch. As they weren’t too complicated I just save list template from my developer machine as stp file. Just a few seconds and the list was created on my client SharePoint farm. But when I display the list in some cases were issues. What’s happen? I’ve discovered that fields with issues where lookup fields. But why??? All list with lookup columns where already in place… Then I just learned that SharePoint use list GUID’s to link lists. So my field in list template is linked to column from my developer machine, by GUID, but my client SharePoint has a lists with different GUID’s and that’s the reason. So what to do?

1. Get your stp file and rename extension of the file from stp to cab.
2. Then you should be extract Manifast.xml file.
3. Replace the old value List Id in Lookup field with list GUID from the destination site

4. Save the file

5. Create cab file with Visual Studio with your xml file

6. When cab file is created rename it again into stp file

7. Upload to destination site and it works now
[adblockingdetector id=”5770e6ed85560″]

Written by Tomasz Szulczewski

Hi, my name is Tomasz Szulczewski, and I have been in love with information technology for over 25 years, but I still have an IT passion and feel like a geek. I am a person who is problem solver who thinks that not all people must be experts in IT.

Related Posts

What is SharePoint in Office 365?

What is SharePoint in Office 365?

What is SharePoint in Office 365, and why is SharePoint for small business the critical product? So you bought a Microsoft 365 license, and your tenant is online. You open a browser, and you have no idea what to do next? Don't worry; I will try to give you a few...

read more
Hubfly

Hubfly

A few days ago I have a chance to play with SharePoint online solution called Hubfly and I was really impressed with his capabilities. And here is my review. So let’s start from the begging. I wrote a few times on this blog that the main problem with SharePoint is...

read more

0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.