I tried to save a site as WSP and then when I restored it I get the following error:
This error was caused by a workflow that I attached to a list of which it has custom Collect Data from User task. I tried to collect 2 fields from a user:
– Manager Approval (choice with 2 values: Approve and Reject)
– Manager Comment (multi-text field)
I then opened the WSP and open ElementsFields.xml. I found out that somehow Sharepoint appended the following for the Approval field:
<Field Name=”FieldName_C830E315_F175_4656_8A4A_F7162BAB4141_” Format=”Dropdown” Type=”Choice” BaseType=”Text” DisplayName=”Manager Approval” Description=”” Direction=”None” ID=”{60ad5230-f828-4831-9d73-3563655b8a01}” SourceID=”{af99aa24-3ce2-458a-a028-ee9e28c98709}” StaticName=”FieldName_C830E315_F175_4656_8A4A_F7162BAB4141_” Overwrite=”TRUE”>
<CHOICES>
<CHOICE DisplayName=”Approve”>Approve</CHOICE>
<CHOICE DisplayName=”Reject”>Reject</CHOICE>
</CHOICES>
</Field>
On a choice field there is no DisplayName attribute and that’s what failed it.
I hope that this will be fixed on the released version.
Cheers,
Tommy
