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

Question

Question

XML Source Property - Unable to determine correct token

asked on June 12, 2015

First, I need to give kudos to the incredibly helpful the Laserfiche Support site and the experts behind it.  I’m somewhat new to Workflow construction and very new to .xml, but have learned a lot by reading support articles and posts to Laserfiche Answers site. 

https://answers.laserfiche.com/questions/66605/Unsure-of-XML-Source-for-Read-XML-activity

https://answers.laserfiche.com/questions/60739/Workflow-read-xml-having-trouble-getting-the-source-document-syntax

I'm attempting to read an .xml file (Release.xml) from my source folder, \Clerk\DMC , to populate templates for images in the same source folder.

My workflow continues to error at activity Read XML > XML Source.  It doesn’t matter if I use OutputEntry_Name  or  OutputEntryID as the source, the error  is the same:  “The value of the XML Source property is invalid.  Data at the root level is invalid.  Line 1, position 1.”

Any feedback\advice\direction would be greatly appreciated.

Thank you,

Denise Jens - City of Santa Clarita

 

0 0

Answer

SELECTED ANSWER
replied on June 17, 2015

In your original screenshot, the entry name token was put in the XML Source. Instead try using the             %(DownloadElectronicDocument_Result File) token from the Download Electronic Document Activity. 

6 0

Replies

replied on June 12, 2015

The XML Source property is where you would put actual XML, not just the name or ID of an XML document. So in your case, you could use the Retrieve Document Text activity to grab the text from the Release.xml entry. You would then put the %(RetrieveDocumentText_Token) into the XML Source box. 

3 0
replied on June 17, 2015

Retrieve Document Text will only recognize text which is saved as such in the Laserfiche Client. Can you try Generating Text for the document?

2 0
replied on June 16, 2015

I've attached .xml file as a .txt file.   When I add the 'Retrieve Document Text' token as the XML Source Property, the test result message is 'The source document contained no pages'.

I'm unsure why workflow isn't recognizing the .xml file.  

 

 

 

Release.txt (2.59 KB)
0 0
replied on June 17, 2015

I did.  'Retrieve Document Text' now reads the file, but Generating Text stripped the xml tags. The 'Read XML' error message is the same:  “The value of the XML Source property is invalid.  Data at the root level is invalid.  Line 1, position 1.”

In  article: https://answers.laserfiche.com/questions/66605/Unsure-of-XML-Source-for-Read-XML-activity, Miruna indicated to "Download Electronic Document activity to get the XML file to the WF Server". 

My file 'Release.xml' is the Output Entry for 'Find Entry', then 'Download XML' pointing to the Output entry.    Where am I going wrong?

Thank you for your direction.

 

 

0 0
replied on June 17, 2015

Third time was the charm.  Thank you very much for your assistance!

replied on June 17, 2015

Third time was the charm.  Thank you very much for your assistance!

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

Sign in to reply to this post.