<?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>What is the best way to validate</title><link>https://community.appian.com/discussions/f/best-practices/20528/what-is-the-best-way-to-validate</link><description>Hi together, not sure if its a question or a discussion. i just discovered that isnull() for a nested CDT is not working properly 
 
 I have a CDT Processdata {&amp;quot;id&amp;quot;(integer), &amp;quot;startedAt&amp;quot;(datetime), &amp;quot;attachment&amp;quot;(CDT attachment),...} 
 which contains the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: What is the best way to validate</title><link>https://community.appian.com/thread/80168?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 14:28:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be70b94e-adad-413a-bef2-04eca5f13be1</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;quick information for you both:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;isnull(&lt;span&gt;local!processData.attachements.document&lt;/span&gt;) -&amp;gt; false&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;local!processData.attachements.document&lt;/span&gt;=&amp;quot;&amp;quot; -&amp;gt; false&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; length(&lt;span&gt;local!processData.attachements.document&lt;/span&gt;)=0 -&amp;gt; true&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the best way to validate</title><link>https://community.appian.com/thread/80167?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 14:25:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5586dcf-57f3-4c79-81be-d68d6ceaa810</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;Hi santhos, Hi Manuel,&lt;br /&gt;Thank you both for your input,&lt;br /&gt;I have a similar solution :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the best way to validate</title><link>https://community.appian.com/thread/80165?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 14:19:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8aa74b0c-a5a9-4cea-aa9c-d584d824663f</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;Fast Reproduction:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;a!localVariables(&lt;br /&gt; local!processData:&amp;#39;type!{urn:com:appian:types:fwe}FWE_processData&amp;#39;(attachements: &amp;#39;type!{&lt;span&gt;urn:com:appian:types&lt;/span&gt;:fwe}FWE_Attachements&amp;#39;(document: ri!document)),&lt;/p&gt;
&lt;p&gt;isnull(local!processData.attachements.document)&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;The isnull function gives back &amp;quot;false&amp;quot; (for ri!document= NULL)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the best way to validate</title><link>https://community.appian.com/thread/79998?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 18:25:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3810ff0-ebe9-44e4-9b8b-12b60fce4058</guid><dc:creator>ManuelHTG</dc:creator><description>&lt;p&gt;that&amp;#39;s the way I have approached this kind of issue. It works for me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the best way to validate</title><link>https://community.appian.com/thread/79997?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 16:39:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2257d95-a52e-4d15-a892-1e45bb565af4</guid><dc:creator>santhoshrudrashetty</dc:creator><description>&lt;p&gt;create a rule with the following code:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;or(isnull(ri!input), ri!input=&amp;quot;&amp;quot;, length(ri!input)=0)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;where ri!input is (Any Type) and see if this works in your scenario&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the best way to validate</title><link>https://community.appian.com/thread/79985?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 08:28:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0043c67-806b-418d-bc69-12b2b2e6a082</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did some small tests. But only with static data. Not from DB, just as rule inputs. Works for me. Can you provide more details? Is that nested type an array?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>