<?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>split and index</title><link>https://community.appian.com/discussions/f/general/22170/split-and-index</link><description>I get the following error expression evaluation error at function &amp;#39;split&amp;#39; [line 2]: A null parameter has been passed as parameter 1. 
 local!docOCR: split( index( rule!DMX_ScanImagenes(idDocumento: ri!idDocumento).result.responses.textAnnotations.description</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: split and index</title><link>https://community.appian.com/thread/86886?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 17:34:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a4810fb3-fc95-4c01-a4fb-5907c7bb1743</guid><dc:creator>aliciam0003</dc:creator><description>&lt;p&gt;thank you I will check what you tell me&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: split and index</title><link>https://community.appian.com/thread/86884?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 17:29:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3af2fde4-2fda-4b97-8317-4c78f02c29a2</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;You will want to utilize a null check as split() will fail over null values, as you have noticed.&amp;nbsp; Something like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;local!docs: rule!DMX_ScanImagenes(idDocumento: ri!idDocumento).result.responses.textAnnotations.description,
local!docOCR: if(
  isnull(local!docs),
  null,
  split(
    index(
      local!docs,
      1
    ),
    char(10)
  )
),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also please check out the Insert -&amp;gt; Code feature when posting SAIL snippets, much&amp;nbsp;cleaner :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>