Corrupt Word Document


I have a req to Generate Word document. I'm was able to generate and attach to work using Property-Set-HTML. and other property-set and map to Link-Attachment class.

The error while opening the Word Document. There is Error in the Content.

I'm using OOTB HTML-Rule (ActionFailed).

Any thought on what/why the Word File is corrupt?



**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

November 28, 2018 - 2:00pm

Hello AK,

Have you confirmed that the stream you are generating and giving the docx extension is valid for Word? If it isn't, then it will continue to be invalid after you save it as an attachment. If it is, when you open it as an attachment, what is different? Has your stream been encoded or otherwise manipulated in an unexpected way?