My ULS logs contained the following information:
Failed to cache field with id
Unable to open Lookup list 'Lists/xxxList'.[Error was 0x8007....]System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.Publishing.FieldCache.TryGetValue
Initial Hypothesis: ULS logs show me that a lookup list is not being found. By examining the columns on the list instance I can see they are not being created correctly. My initial thought was my xml was wrong, once it was reviewed and I found it to be correct I realised it was a caching issue.
Resolution: Clear the Visual Studio Cache
- Right click on "Project" in Solution Explorer and click "Retract";
- Close Visual Studio 2010; and
- Open the "Project" in Visual Studio 2010 and "Deploy" the solution.
if you have added any new field make sure that
ReplyDeleteit is not using a the guid of an existing field
this is how I solved it