1
Vote

Lookup Fields not retracting correctly

description

If you create a lookup field using the code in this solution and have a different display name to the field name (eg Name="ReviewStatus" DisplayName="Review Status") then the column is never retracted from sharepoint, as the web.Fields[sColumnName] call will always fail with an ArgumentException.
 
I initially modified the calling feature receivers to pass the DisplayName attribute however I now prefer Frosts solution as described in Issue#13298.

comments