0

I have a content type Custom Page and I have created a site column called CustomPageContentOne (type - Publishing HTML).

When I add this column to the Custom Page content type from UI, it shows that A duplicate field name CustomPageContentOne was found. But there is no such field in this content type. I checked if it already has a hidden field with this name using PowerShell script and it doesn't have this field. Yet it is showing such error. Any ideas what's going on?

  • double check; use sharepoint manager if you can – Tiago Duarte Sep 7 '17 at 12:32
  • Thanks, Tiago! Cannot install anything on the server, customer does not allow this. By the way, do you mean SharePoint Manager will show something PowerShell can't? – Aks Sep 7 '17 at 12:47
  • no not really. just that you can see with your own eyes. powershell should work but you have to be extra careful. are you querying the list? the list content type? or the site content type? perhaps the column is there but at a different scope. maybe you can add some screen shots and check ULS for helpful messages. sometimes sharepoint designer can help as well – Tiago Duarte Sep 7 '17 at 12:56
  • The ULS doesn't have any more information either, except for the same error "A duplicate field anme <fieldname> was found". – Aks Sep 11 '17 at 6:28
  • I think that you'll have to either provide us some code/screen shots or otherwise make some trial and error as jenny suggested. don't simply trust powershell. btw you don't have to install manager, it's just an .exe that you can run locally in prod, or in a dev if you ask a backup of the database – Tiago Duarte Sep 11 '17 at 8:28
0

The easiest thing to try to rectify the issue is to rename your custom site column. If that works, I would assume that another column called CustomPageContentOne exists somewhere in your site collection.

  • Thanks for the reply! I'm quite sure that the site collection does not have this site column. The fact that the powershell script doesn't return this column and I can create this column (with the given name and type) in site columns after which it doesn't show error that this name already exists, clearly shows that there is no column with this name. When I add this column to a content type, it shows the error that I posted. – Aks Sep 9 '17 at 5:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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