Page 1 of 1

content type not changeable

Posted: 04 Apr 2018
by RMIC
Hello,

Environment:
SharePoint 2013 Server Standard
Forms Designer Client 3.1.4

My problem:
I have in a library several content types. For each content type created SP-Forms forms.
If I change the content type in the edit form, this change will not be applied when the form is saved.

If I change the content type with standard forms, I can change the content type.

What could be the problem?

Thanks for your help!

Re: content type not changeable

Posted: 04 Apr 2018
by Nikita Kurguzov
Dear RMIC,
Does this happen with every type of file? Or does it happen only with MS Office files, for example, .docx files? Can you test it for us?

Re: content type not changeable

Posted: 04 Apr 2018
by RMIC
Dear Nikita,

The formats .txt, .doc and .xls work.
The formats .docx and .xlsx do not work.

Re: content type not changeable

Posted: 04 Apr 2018
by Nikita Kurguzov
Dear RMIC,
The issue is two-fold:
1) First of all, Microsoft Office (.docx, .xlsx) files actually have Content Type included in the actual file properties (not just in SP)
2) There is a parsing service in SharePoint 2013 for these documents which doesn't function correctly. For example, you can't properly change Content Type for these files via Powershell or ServerAPI because of it.

You can run the following commands with Powershell and it should disable the service, making it possible to change ContentType for these files:

Code: Select all

Add-PSSnapin "Microsoft.SharePoint.PowerShell"
$web = Get-SPWeb http://sitename
$web.ParserEnabled = $false
$web.Update()

Re: content type not changeable

Posted: 04 Apr 2018
by RMIC
It works.
Thank you!