使用Designer Workflow中的自定义模板创建文档时损坏 [英] Document getting corrupted when created using custom template from Designer Workflow

查看:57
本文介绍了使用Designer Workflow中的自定义模板创建文档时损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个正在运行工作流的List。我有一个文档库,其中应用了自定义模板。当在列表中添加项目时,我正在文档库中创建一个文档(带有自定义模板)。



文档创建但是当我尝试打开它,它会出现错误"抱歉,Word App在打开此文档时遇到问题。要查看此文档,请用文字打开。"当我用word(桌面版)打开它时,文档打开但内容
为空(模板中的内容不会出现)。



我尝试创建内容类型,然后将模板应用于该内容类型并使用这种新内容类型创建文档,仍然是同一个问题。我还尝试通过工作流程创建一个普通文档(没有任何自定义模板),仍然是相同的
问题。



这有什么特别的原因?难道我做错了什么?是否有任何NO-CODE替代方案来实现这一目标?



先谢谢。

解决方案

您好,


您是否意味着即使使用默认的"文档",也会遇到同样的问题。内容类型? 


我读了一篇文章,该文章中的几位用户提到,您只需将内容类型文档模板(dotx)保存为word文档(docx) 。在工作流程中 - 创建项目 - 路径和名称应包含文件的名称和正确的
文件扩展名(与文档扩展名完全相同)。


然后问题就会消失。 


祝你好运,


Allen Bai


I have a List on which a workflow is running. I have a document library with custom template applied to it. I am creating a document (with custom template) in the document library when an item is added in the list.

The document gets created but when I try to open it, it gives an error "Sorry, Word App ran into a problem opening this document. To view this document please open it in word." When I open it in word (desktop version), the document opens but the content is blank (content in the template does not appear).

I tried creating content type and then applying template to that content type and creating a document with this new content type, still the same issue. I also tried creating a normal document (without any custom template) through the workflow, still the same issue.

Any particular reason for this? Am I doing something wrong? Is there any NO-CODE alternative to achieve this?

Thanks in Advance.

解决方案

Hi,

Do you mean you meet the same issue even when you use the default "Document" content type? 

I read an article, several users in that article mentioned that all you have to do is just save the content type document template (dotx) as word document (docx). In the workflow - Create Item - Path and Name should contain the name of the file and the correct file extension (exactly as the document temple extension).

Then issue will gone. 

Best regards,

Allen Bai


这篇关于使用Designer Workflow中的自定义模板创建文档时损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆