0

I have written a SharePoint solution which should create two SharePoint lists with completely different list definitions. If I deploy the solution, I get a strange behaviour. There are two different list instances but with the same content e.g. the same columns.

I deploy lists and list definitions from both lists in the same feature. Any idea why this happens?

4
  • I'm not sure I understand completely. So you have 2 list definitions, with 1 list instance each. And when you deploy them, both list instances somehow use the same list definition, leaving one list definition unused? - is this what happens?
    – user2536
    Commented Jul 3, 2015 at 9:10
  • Yes this is exactly what happens. Sorry for my bad description. Commented Jul 3, 2015 at 9:12
  • Start with the simple checks => Check the list definitions. Make sure they have different IDs in the Type attribute. Then check the list instances and make sure the IDs in their TemplateType attribute matches the ID from the list definition Type attribute they should use.
    – user2536
    Commented Jul 3, 2015 at 9:18
  • Thank you, the Type attributes of the list definition were the same. Now it works! Commented Jul 3, 2015 at 9:23

1 Answer 1

2

Comment solving issue posted as answer

Check the list definitions. Make sure they have different IDs in the Type attribute. Then check the list instances and make sure the IDs in their TemplateType attribute matches the ID from the list definition Type attribute they should use.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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