Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a document library with two custom content types. If I use the web interface and choose New Document -> MyCustomType the document template opens up and I can create and modify the document and list item properties.

I then created a workflow using SharePoint Designer 2010 and setup an action to create a new list item on my document library. I gave it a name and set the content type to MyCustomType. The workflow executes without error and creates the document - but I can't open it in Word. I get the following error: The file test.docx cannot be opened because there are problems with the contents. There are no additional details.

I opened up the .docx file and looked at the embedded XML and I can see that it is using the correct template. Any ideas why Word is failing to open the document or something I can do to troubleshoot / get more info on the error?

Update: I recreated the template from an empty word doc and the problem is resolved. I would like to leave the question open for now in hopes of better troubleshooting advice for repairing an existing template.

share|improve this question

4 Answers 4

I had the same issue. All you have to do is just to save the document template (dotx) as word document (docx ).

share|improve this answer
    
this is the answer. –  Justin Feb 5 '13 at 2:36

I had a similar problem. I had to rename the template to docx in the advanced setting page as well as saving it as a docx file. But I also had to use Word 2010, not Word 2013 to create and save the template. Note: I am currently on SP2010 so it seems it's some kind of conflict with the headers that Word 2013 was introducing. Just in case others may need help with this.

share|improve this answer

I've seen this happen (through the twittersphere) in the past with 2007. This details how to do it, http://www.documentmanagementworkflowinfo.com/sample-sharepoint-workflows/sharepoint-designer-workflow-create-new-document-based-content-type.htm

This article looks to be specifically geared at SPD 2010, http://mysharepointguru.com/business-processes/creating-docs-with-sp-desiger-2010-a-workflows.html.

share|improve this answer
    
I don't have an issue creating the library, content type, template or workflow - those are all fine. The problem is that the document created from the workflow is somehow corrupted when using the workflow, while the document created when choosing a new document from the content type template using the ribbon controls. –  Goyuix Jun 4 '12 at 4:21

Please try to add some content in the document using the workflow and please try again.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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