I have some publishing pages that are using custom content types. Within the content types is a site column of type choice. I’ve update the choice values of this column and all have made sure that all references are using the new values, and that the old values no longer appear in the solution. After deploying the solution I have verified that all lists and libraries are using the new choice column values. However publishing pages using this site column are still using the old choice column values. Publishing pages are being deleted/recreated when deployed. Has anyone seen this, and is there a quick fix? Thanks.
This was fairly straightforward once I found where to look. Within the Pages library the choice column was copied when the content types were associated with the library. This copy of the choice column contained the old values. The fix was to remove the column from the library and re-add it.
SPList list = web.Lists["Pages"]; SPField productGroupField = web.Fields["Product Group"]; list.Fields.Delete("ProductGroup"); list.Update(); list.Fields.Add(productGroupField); list.Update();