New answers tagged


Please keep in mind that <where> or &lt;Where&gt; tag should go on the same line with <property name="QueryOverride" type="string"> like this <property name="QueryOverride" type="string">&lt;Where&gt; &lt;Or&gt; &lt;Eq&gt; &lt;FieldRef Name="AssignedTo"/&gt; ...


Required="TRUE" EnforceUniqueValues="TRUE" Indexed="TRUE" Sealed="TRUE" I added that on the Elements.xml but also on the schema.xml


If you create a choice column using the browser and enter >=250 <=510 etc as choices, and then look at the SchemaXml property of the column (for example using a tool like SharePoint Manager), you can see how they are encoded internally by SharePoint, and help troubleshooting. In this case: <CHOICE>&gt;=255</CHOICE> ...


I added the special character part in CDATA tag and it worked. For Example I was having the XML of the choice field where choices were coming with special characters which was causing the issue. To overcome it, I added the choice tag of XML in the *** part and it worked. CDATA takes the value as simple text. str.Append("<CHOICE><![CDATA[" + ...

Top 50 recent answers are included