You are viewing limited content. For full access, please sign in.

Question

Question

'Update Word Document' Workflow Problem

asked on October 10, 2016 Show version history

I'm trying to create a workflow that uses Update Word Document to fill in a Word template and then save it as a PDF document in the repository.  My workflow is displayed below.

 

Create Entry:

 Attach Electronic Document:

Update Word Document:

When I run the workflow the document is created in the repository and is named correctly but it is the Word template without any field values populated.  What am I missing?

0 0

Answer

SELECTED ANSWER
replied on October 11, 2016

I'm making progress.  It appears that it has nothing to do with the create entry or attach electronic document.  It is in the Update Word Document.  I stepped through the workflow and found it broke during the mail merge.  I had a table specified with StartTable:Codes and EndTable:Codes.  I had entered EndTable:Codes as TableEnd:Codes.  Good grief!  I tried the process again and it worked.

0 0

Replies

replied on October 10, 2016

Attach Electronic Document should come after Update Word Document.

0 0
replied on October 10, 2016

I tried that too.  I must be missing something small.  I switched the two around, now my document is empty in the repository. 

 

 

0 0
replied on October 11, 2016

The bottom screenshot shows the document's pages, not the electronic document. Try right-clicking it in the Client and selecting Open\View Electronic Document from the context menu.

0 0
replied on October 11, 2016

It says there is no electronic file attached. 

 

0 0
replied on October 11, 2016

What does the instance details pane show? Did the workflow complete successfully or are there any errors?

0 0
replied on October 11, 2016

I'm not sure where the instance detail pane is (I'm pretty new).  I took a snippet of the Workflow Admin console under the Persisted Instances.  It was empty for this workflow.   When I verify the workflow it says there are no problems.  I did check the event logs on the laserfiche server.  Nothing being reported in the lfforms, lfworkflow or application logs.  I modified the Update Word Document thinking maybe there was a problem with the merge part of the process.  I changed it to a simple search and replace process.  It still did not work after the change.  Am I looking in the wrong place for workflow errors?

 

0 0
replied on October 11, 2016

No worries. Every run of a workflow rule is called an "instance". You can see how each individual run went by searching for them in the Workflow Designer. You can either use the recent searches in the Common Searches pane (View\Common Searches) or you can search for a workflow by name or by the entries involved (View\Search). One you run the search and get results back, double-click on to open the instance details. You'll get multiple tabs with information, the ones you want to look at are Workflow and Messages. The Workflow tab will show the workflow definition and highlight the activities that ran. Anything in green is successful, anything in red had an error (yellow is for warnings, blue is for activities still running). If you see anything with errors or warnings, you can see their details on the Messages tab.

0 0
replied on October 11, 2016

Oh very cool!  Learn something new every day.  

Yes, there is a warning.

 

 

I'm confused by what it is telling me however.  

'The entry type 'folder' is not supported by 'Attach Electronic Document' activity'

I have 'Attach File To' set to 'Other Entry - Activity: Create Entry , Destination.  (I've also used Output for this with the same result)

 

The File to Attach is set to 'Source: Activity - (Update Word Document: Result File)

Where is it picking up the 'Folder' part?  

 

0 0
replied on October 11, 2016

"Destination" would be the folder you created the entry on. You want to use "Output entry". You also want to make sure that Create Entry is making a document rather than a folder (the default option is folder).

0 0
SELECTED ANSWER
replied on October 11, 2016

I'm making progress.  It appears that it has nothing to do with the create entry or attach electronic document.  It is in the Update Word Document.  I stepped through the workflow and found it broke during the mail merge.  I had a table specified with StartTable:Codes and EndTable:Codes.  I had entered EndTable:Codes as TableEnd:Codes.  Good grief!  I tried the process again and it worked.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.