<?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>Issues with ADT files</title><link>https://community.appian.com/discussions/f/plug-ins/40361/issues-with-adt-files</link><description>Hi community, 
 
 I&amp;#39;m using Advanced Document Templating plugin for a document generation where i have multiple chapters, and in each chapter i have have a conditional statement that if in the passed list are values then show a table else show a text</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Issues with ADT files</title><link>https://community.appian.com/thread/154981?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 09:25:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e530b403-5963-4926-9a6e-ce2852013623</guid><dc:creator>forsake202145</dc:creator><description>&lt;p&gt;Thank for your support.&lt;/p&gt;
&lt;p&gt;&lt;a href="/discussions/f/plug-ins/40438/advanced-document-templating"&gt;https://community.appian.&lt;/a&gt;&lt;a href="https://retrobowl-26.io"&gt;retro bowl&lt;/a&gt;&lt;a href="/discussions/f/plug-ins/40438/advanced-document-templating"&gt;&lt;/a&gt;&lt;a href="/discussions/f/plug-ins/40438/advanced-document-templating"&gt;.com/discussions/f/plug-ins/40438/advanced-document-templating&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with ADT files</title><link>https://community.appian.com/thread/154591?ContentTypeID=1</link><pubDate>Wed, 13 May 2026 04:31:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d02ef907-53b8-4f1d-9403-f6474be8e25a</guid><dc:creator>gayathris111098</dc:creator><description>&lt;p&gt;I think there might be a couple of things contributing to both the visible placeholders and the document corruption after saving.&lt;/p&gt;
&lt;p&gt;One thing I noticed is that the `#if` block is being closed using:&lt;/p&gt;
&lt;p&gt;```xml id=&amp;quot;m7n2vs&amp;quot;&lt;br /&gt;&amp;lt;w:tag w:val=&amp;quot;@after-row[/#if]&amp;quot; /&amp;gt;&lt;br /&gt;```&lt;/p&gt;
&lt;p&gt;Since `/#if` is more of a block-level directive, it may work better as:&lt;/p&gt;
&lt;p&gt;```xml id=&amp;quot;0g8cxv&amp;quot;&lt;br /&gt;&amp;lt;w:tag w:val=&amp;quot;@after-block[/#if]&amp;quot; /&amp;gt;&lt;br /&gt;```&lt;/p&gt;
&lt;p&gt;My guess is that using `@after-row` here could be confusing the ADT engine a bit, so the SDT control is not getting cleaned up properly and ends up remaining visible in the generated document.&lt;/p&gt;
&lt;p&gt;I also noticed that some `&amp;lt;w:sdt&amp;gt;` elements seem to be using the same `w:id` value, for example:&lt;/p&gt;
&lt;p&gt;```xml id=&amp;quot;e1wxj0&amp;quot;&lt;br /&gt;&amp;lt;w:id w:val=&amp;quot;604079035&amp;quot; /&amp;gt;&lt;br /&gt;```&lt;/p&gt;
&lt;p&gt;From what I&amp;rsquo;ve seen, Word expects each content control to have a unique ID. Reusing the same `w:id` across multiple SDTs can sometimes cause document structure issues, especially after editing and saving the file in Word.&lt;/p&gt;
&lt;p&gt;It might help to assign a unique integer ID to each `&amp;lt;w:sdt&amp;gt;` block and test again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with ADT files</title><link>https://community.appian.com/thread/154588?ContentTypeID=1</link><pubDate>Tue, 12 May 2026 13:28:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5551356f-25ba-48e5-8490-c8aae1567c3b</guid><dc:creator>mohammad rahhal</dc:creator><description>&lt;p&gt;Hi Fl&amp;aacute;vio,&lt;/p&gt;
&lt;p&gt;I would avoid editing &lt;code&gt;document.xml&lt;/code&gt; directly if possible, because it can easily leave Word content controls or invalid table structure behind.&lt;/p&gt;
&lt;p&gt;A safer approach would be to rebuild that section in the Word template itself: put the condition around the whole table vs. the &amp;ldquo;No data&amp;rdquo; paragraph, and keep the loop only on the repeating table row. If the conditional or loop placeholders are placed inside the wrong part of the table structure, ADT may still generate the data correctly but leave the controls visible in the output.&lt;/p&gt;
&lt;p&gt;For the edit/save issue, I would also check whether any content controls remain in the generated DOCX. If they do, Word may modify them when the user edits the file, which could explain why the document becomes corrupted after saving.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>