0

I've been struggling for the last couple days to fix this issue with no success.

I have a list with this content type and columns :

DurationSettings list

When i go to my list containing the lookup field , which reads from the Hours column the lookup field is empty :

Leave request list

Here is my Elements.xml for the lookup field StartDateDuration :

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">  
<Field
   ID="{edc54aac-a1ab-474a-b0d5-cb0fb0865b4a}"
   Name="StartDateDuration"
   StaticName="StartDateDuration"
   DisplayName="Start Date Duration"
   Type="Lookup"
   List="Lists/DurationSettings"
   Required="TRUE"
   ShowField="Hours"
   Group="Leave Request App Group">
   </Field>
  </Elements>

Any ideas how to fix this? Its a strange issue.

Thanks a lot!

0

The solution is to give priority to the feature which deploys the list that you want to lookup for (the source list). You can do that by changing the feature activation order in the Package manifest.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.