<?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>Issue with records to check if it&amp;#39;s empty</title><link>https://community.appian.com/discussions/f/data/38369/issue-with-records-to-check-if-it-s-empty</link><description>Why does the below peice of code does not work with records as rule input. 
 if( fn!isnull(ri!array), true(), length(ri!array) = 0 ) 
 
 If I pass empty record in ri!array it should return me true, but it is returning false.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Issue with records to check if it's empty</title><link>https://community.appian.com/thread/144707?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 10:29:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9d55e84-2d4f-4103-9055-4dfdc695d4ec</guid><dc:creator>ashishc8459</dc:creator><description>&lt;p&gt;My input is an empty record&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with records to check if it's empty</title><link>https://community.appian.com/thread/144617?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 06:54:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1781ee0-e4fb-4f7a-8444-e8a6e03d3aff</guid><dc:creator>Keshav Dadhich</dc:creator><description>&lt;p&gt;Hi, probably you are trying with empty record, I guess.&lt;br /&gt;&lt;br /&gt;Like this&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1737528381613v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you are looking for a solution to check for a null record array, you can try this.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1737528513036v2.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1737528536553v4.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1737528569447v5.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Please let me know if this was helpful or if you are looking for something different.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with records to check if it's empty</title><link>https://community.appian.com/thread/144613?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 22:53:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:892ca725-74d6-40d3-8d89-f57cfac800b9</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;In a different post it was mentioned that the user is trying to index related records. Which would return array of null values if the related records are not available. This would lead to a string of nulls.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="/discussions/f/general/38370/issue-to-check-related-record-if-its-empty"&gt;community.appian.com/.../issue-to-check-related-record-if-its-empty&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(Assuming these questions are from the same team members)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with records to check if it's empty</title><link>https://community.appian.com/thread/144610?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 22:20:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c485b62-5523-4bd5-94f9-d32c70a0994d</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to reproduce this - can you provide more information about what your input is?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:480px;max-width:640px;" alt=" " src="/resized-image/__size/1280x960/__key/communityserver-discussions-components-files/16/empty_5F00_record.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with records to check if it's empty</title><link>https://community.appian.com/thread/144609?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 22:03:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b65c27a6-52a7-4978-b463-e2516dff752c</guid><dc:creator>Andrew Hickingbotham</dc:creator><description>&lt;p&gt;This is similar but also different from&amp;nbsp;&amp;nbsp;&lt;a href="https://community.appian.com/discussions/f/general/38370/issue-to-check-related-record-if-its-empty"&gt;Issue to check related record if its empty&lt;/a&gt;&amp;nbsp;so check that out for better code than just using the fn!isnull().&lt;/p&gt;
&lt;p&gt;Specifically for records I&amp;#39;d need to see more of your code. Records do work when passed into these rules but it does depend exactly what you are doing. If you just literally pass recordType!TEST TestRecord() then&amp;nbsp;it shows as false.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1737496774958v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you cast NULL to that same record type it all works fine.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1737496874861v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The exact same behaviour is observed with a!map() too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>