<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Templates parameter not properly displaying</title><link>https://community.appian.com/discussions/f/process/37812/templates-parameter-not-properly-displaying</link><description>I tried upload the template(Doc) many times after editing those not working fields plenty of times but still the fields seems like above</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Templates parameter not properly displaying</title><link>https://community.appian.com/thread/142190?ContentTypeID=1</link><pubDate>Sun, 27 Oct 2024 17:34:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66e96759-50cd-4194-ba88-7a28a80f3f05</guid><dc:creator>shaikhm2967</dc:creator><description>&lt;div class="flex-shrink-0 flex flex-col relative items-end"&gt;
&lt;div&gt;
&lt;div class="pt-0"&gt;
&lt;div class="gizmo-bot-avatar flex h-8 w-8 items-center justify-center overflow-hidden rounded-full"&gt;
&lt;div class="relative p-1 rounded-sm flex items-center justify-center bg-token-main-surface-primary text-token-text-primary h-8 w-8"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;
&lt;div class="flex-col gap-1 md:gap-3"&gt;
&lt;div class="flex max-w-full flex-col flex-grow"&gt;
&lt;div dir="auto" data-message-author-role="assistant" data-message-id="28c55c75-5c47-47ed-a9a6-aa3a6b5f7d92" data-message-model-slug="gpt-4o"&gt;
&lt;div&gt;
&lt;div class="markdown prose w-full break-words dark:prose-invert dark"&gt;
&lt;p&gt;It looks like you&amp;#39;re facing an issue where some fields in the &amp;quot;Configure HTML Doc from Template&amp;quot; setup are not displaying correctly or not mapping as expected, even after re-uploading the document template with changes.&lt;/p&gt;
&lt;p&gt;Here are some steps to troubleshoot this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Verify Placeholder Syntax&lt;/strong&gt;: Ensure the placeholders in your document template match exactly what you&amp;rsquo;ve entered in the &amp;quot;Find in template document&amp;quot; column. Appian is case-sensitive and expects exact matches.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Use Simple Placeholders&lt;/strong&gt;: If the placeholders contain complex HTML or special characters, try simplifying them to plain text placeholders (e.g., &lt;code&gt;${fieldName}&lt;/code&gt;) to see if they map correctly. After confirming they work, you can revert to more complex placeholders if needed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Re-Scan Template&lt;/strong&gt;: After each update to the document template, click &amp;quot;Re-Scan Template&amp;quot; to allow Appian to detect new or updated placeholders.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Clear and Re-Map Fields&lt;/strong&gt;: Delete the mappings for the problematic fields and re-enter them. Sometimes, Appian retains old references that can cause mapping issues.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Use New Template&lt;/strong&gt;: As a last resort, try saving your document under a new name and uploading it as a fresh template in Appian. Sometimes, reusing the same file name can cause Appian to cache old template configurations.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Templates parameter not properly displaying</title><link>https://community.appian.com/thread/142102?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 13:49:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:020bccef-89ae-4723-9730-49a21ddc6636</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This is a longstanding quirk with the DOCX from Template smart service, caused by unclean editing of the underlying template, in which word-markup XML accidentally gets inserted inside the text of the replacement keys.&lt;/p&gt;
&lt;p&gt;In general the best way to prevent this from happening is to make sure SPELL CHECK and GRAMMAR CHECK are COMPLETELY TURNED OFF in Word.&amp;nbsp; To fix a given entry, the simplest thing to try is deleting the replacement field, then &lt;em&gt;&lt;strong&gt;manually re-typing it from scratch&lt;/strong&gt;&lt;/em&gt;, making sure you type the whole thing in one go.&lt;/p&gt;
&lt;p&gt;The alternative method of fixing these, which works 100% of the time but is quite a bit harder to actually understand if you&amp;#39;re unfamiliar with XML, is to &lt;strong&gt;edit the underlying XML file in the Docx ZIP file&lt;/strong&gt; and make sure the &amp;quot;###replacementFieldName###&amp;quot; text blocks are all unbroken.&amp;nbsp; For this you can merely move text around - you don&amp;#39;t need to edit any of the XML but you&amp;#39;d need to make sure whatever XML is there gets left in-place other than moving the plaintext around so it&amp;#39;s all together.&lt;/p&gt;
&lt;p&gt;Important side-note: the smart service does &lt;em&gt;&lt;strong&gt;not sanitize incoming text in any way&lt;/strong&gt;&lt;/em&gt; when inserting text to fill the replacement fields.&amp;nbsp; That means characters that mean something else in XML (&amp;amp;, &amp;lt;, &amp;gt;, maybe a few others) need to be either removed or swapped with their XML/HTML equivalents (&amp;quot;&amp;amp;amp;&amp;quot;, &amp;quot;&amp;amp;gt;&amp;quot;, &amp;quot;&amp;amp;lt;&amp;quot;, if i remember correctly).&amp;nbsp; It also means that if you really know what you&amp;#39;re doing, you can inject your own XML to perform certain formatting operations - I actually figured out how to use this to construct entire tables, though that gets very complicated pretty quickly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Templates parameter not properly displaying</title><link>https://community.appian.com/thread/142101?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 13:34:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a3c814cd-edd4-4090-b70c-dbcdc0b0bb99</guid><dc:creator>Simbu Ramani</dc:creator><description>&lt;p&gt;Hi Dinesh,&lt;/p&gt;
&lt;p&gt;Curios to look at the html file to understand the fields that are having challenges here.&amp;nbsp;As there are few fields that seems ok, what was the major difference between the fields that are working as expected and the fields that you are facing challenge for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>