Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
5 subscribers
Views
2625 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
So I'm using the Advanced Document Templating plug-in. One of the things I s
robbier
over 9 years ago
So I'm using the Advanced Document Templating plug-in. One of the things I seem to keep coming across is, when I create a string like:
"<document><value1>test</value1></document>"
I then place this string into a process variable and then feed this variable into the XML Data Model input. On the Word template side I have created a merge field in the word doc--just like the instructions explain.
OK, so I run this thing and I get back is an error. The error is:
{"error":"APNX-1-0000-000","message":"Invalid Content ID","title":"An Error Has Occurred"}
I looked into the process variables and have observed that the xml variable containing the string I created displays as:
a title="<document><value1>test</value></document>
So this looks like some conversion is going on.
Anyone run into this?
OriginalPostID-197232
OriginalPostID-197232
Discussion posts and replies are publicly visible
Parents
0
robbier
over 9 years ago
Thanks for your note. I resolved it. Two things of note:
1) it seems the Process Variables view was displaying the XML I generated as if it was run through a toHTML() function. So I was looking at a false negative on that.
2) It had nothing to do with my input, rather I had some Word merge fields which were misspelled (i.e. referencing fields which were getting passed in). So it seems this causes problems but the error message doesn't quite give me a clear indication. The lesson here is that I can pass in fields through the XML data which don't get used in the Word template but on the Word template side I can't reference any XML Data fields which haven't been passed in.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
robbier
over 9 years ago
Thanks for your note. I resolved it. Two things of note:
1) it seems the Process Variables view was displaying the XML I generated as if it was run through a toHTML() function. So I was looking at a false negative on that.
2) It had nothing to do with my input, rather I had some Word merge fields which were misspelled (i.e. referencing fields which were getting passed in). So it seems this causes problems but the error message doesn't quite give me a clear indication. The lesson here is that I can pass in fields through the XML data which don't get used in the Word template but on the Word template side I can't reference any XML Data fields which haven't been passed in.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data