Workflow Tasks: The file is not a valid XML document.

I have a custom approval workflow for individual documents in a document set. The workflow changes the approval status of a document and creates a new record in another list (audit).

Users have Contribute access to the document library and a task list and view only in the audit list.

When a user tries to open a workflow task directly from Outlook 2010 or Word 2010 he/she gets this error:

============================
Outlook cannot open a new form.
The form cannot be opened. To fix this problem, contact the form designer.
Form template: https://[site address]/_layouts/formResource.aspx?templateFile=https://[site address]/Workflows/ABC%20Workflow/Approval%20_x0028_36_x0029_.xsn
The file is not a valid XML document.
DTD is prohibited.
Line 2, Position 9
============================

Here are some of the other observations and notes:

  • The task form is auto-generated when creating the workflow. It is not customized in any way.
  • Users can open and approve the task directly from the SharePoint site without any problems.
  • The site is in a local intranet zone.
  • When given Full permissions to the above document library and task list the problem still occurs.
  • When given Full permissions to the entire site users can open tasks from Outlook or Word. In addition if the task was opened once and then the user is removed from the Full permissions group it still works for the same task! I don't want to use this as a solution.
  • Deleting XSN templates and republishing the workflow didn't help.
  • Task Body field is plain text.
  • Please do not suggest deleting entire Web Application and recreate it.

Any idea how to make this work?

Thanks,

July 2nd, 2014 5:46pm

Hi LetMe, because of your testing with Outlook Vs SP, and the fact that it works when you provide full control, I would say you narrowed the problem down to Outlook. I would suggest checking your Outlook settings, especially the "trust" and intranet sites.
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2014 7:54pm

Hi Cameron - can you please be more specific what settings in Outlook (and Word) might be affecting this?

Thanks!

July 2nd, 2014 8:12pm

I would check under "file" then "options" and look at the add ins and trust center settings.
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2014 8:20pm

I have same issue, did you had a chance to fix this...

Any help would be appreciated

Thanks

September 16th, 2014 3:51pm

I have the same issue, deleting the web app is not solution, any help is appreciated

Thanks


  • Edited by sathishvijay Tuesday, September 16, 2014 3:52 PM
Free Windows Admin Tool Kit Click here and download it now
September 16th, 2014 3:52pm

We had this same behavior also and figured out it was due to having our web application using the local host server name.  Once I created a new web application using a host header and moved all the content databases there the issue went away.  We thought it was due to using Office 2010 but it wasn't.

Hope this helps someone.  It took me several days to resolve.

Carlene S.

September 25th, 2014 2:31pm

All our web applications use host headers and SSL.

Outlook's Trust Centre has no specific settings related to sites or zones, it refers to Internet Options (from IE).

Adding the problem sites to Trusted Sites or Intranet Zone does not resolve the issue. Neither does providing Site Collection Admin credentials when prompted from the "Open this Task" ribbon button.

For whatever reason, only task emails from our production farm are affected. The reusable workflows were moved from dev to production via a web backup.

I've extracted the contents of the XSN and reviewed every file. I can find nothing wrong with the XML and no mention of a DTD anywhere.
Free Windows Admin Tool Kit Click here and download it now
December 12th, 2014 12:41am

After several more hours of debugging and comparing farm settings I narrowed it down to the Request Management service which had been enabled on our production farm.

I have no idea why RM would refusing this type of request (especially considering no application level rules had been created) but disabling it has resolved the issue.

Hope this helps someone else.

December 12th, 2014 2:44am

Hey, looks like I'm a bit late to the party, but did you ever solve this? I am getting the exact same issue. It turns out that when this happens, instead of giving you the XML, it throws an error page, which you can see if you plug the URL from the error into a browser. Word or Outlook happily grabs this HTML, believing it to be the XML it requested. However, as <! is a comment in HTML, but a DTD in XML, it says the XML is invalid. This is as far as I was able to get. Were you ever able to come up with a solution to this problem?
Free Windows Admin Tool Kit Click here and download it now
August 6th, 2015 1:36pm

Hi Edward,

Please read my post just before yours. This worked for us.

If it works for you, please consider proposing this as an answer.

Thank you.

August 6th, 2015 7:51pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics