AnsweredAssumed Answered

Update Document to Create List Attachment

Question asked by ericfleischer on Jun 3, 2016

I have a list workflow which takes data from a form and fills in controls in a MS-Word template using Update Document.  It should then save the filled-in template as an attachment to the list item, either creating a new attachment file, or overwriting the old attachment file.  The next step would be to convert the attached Word file into a PDF using Convert Document, also attaching the PDF to the list item.  The PDF would be created if new, or would version up if existing (this is run repeatedly as the list item is updated.

 

Update Document

     Source URL: https://xxxxx.com/sites/xxx/Shared%20Documents/Change%20Management/Change%20Record.docx

     Output URL: https://xxxxx.com/sites/xxx/Lists/ECN%20Log_1/Attachments/ID/CRCR Number.docx

          ('ID' is an inserted reference of the list item ID; 'CR Number' is an inserted reference of a list item property)

     Overwrite existing item: Overwrite

 

Covert Document

     Source URL: https://xxxxx.com/sites/xxx/Lists/ECN%20Log_1/Attachments/ID/CRCR Number.docx

     File type: Document (.docx)

     Output URL: https://xxxxx.com/sites/xxx/Lists/ECN%20Log_1/Attachments/ID/CRCR Number.pdf

     Overwrite existing item: Create new version

 

When I run this, I get this error:

     Error updating document. There is no file with URL 'https://xxxxx.com/sites/xxx/Lists/ECN Log_1/Attachments/226/CR229.docx' in this Web.

 

If it would help, I could put the word and, if necessary, PDF into a document library (Shared Documents, same folder as Update Document's source URL), but I would still need to copy/attach the PDF to the list item.

 

Please help me resolve this!

Outcomes