<?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>Portal Errors first time loading</title><link>https://community.appian.com/discussions/f/portals/40159/portal-errors-first-time-loading</link><description>Hello, 
 We are experiencing issues with a portal using a!queryRecordType. On the home page of the portal we have richTextDisplay that is fed from a queryRecordType. The first time entering the portal it gives an error (ss attached) saying the input is</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Portal Errors first time loading</title><link>https://community.appian.com/thread/153408?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 19:38:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2bf6b6b-5d3c-4bf6-9864-be779560b6ad</guid><dc:creator>anshumanm</dc:creator><description>&lt;p&gt;Thank you for the suggestions. I have tried implementing some pretty extensive&amp;nbsp;null checks, and I tried using the expression rule to handle them cleanly, however it still results in the same error. I plan on opening a support ticket as Stefan suggested.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Portal Errors first time loading</title><link>https://community.appian.com/thread/153407?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 19:30:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c8272c54-bb1d-4e9b-888d-b837aad52f93</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;For real.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Portal Errors first time loading</title><link>https://community.appian.com/thread/153406?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 19:00:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0b86bac5-7af2-4a55-b274-db08dd6478a3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;If something &amp;quot;does not load fast enough&amp;quot; making any depending code break, I would consider this a major platform issue, but not something I, as a developer, would have to take care of!&lt;/p&gt;
&lt;p&gt;I suggest to open a support case to discuss this with Appian.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Portal Errors first time loading</title><link>https://community.appian.com/thread/153405?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 18:38:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fa18c11-1798-4955-b550-4a26085fd743</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Per what Shubham correctly noted... the text() function is finnicky when receiving null values.&amp;nbsp; For this and many other uses, I have long since implemented my own custom rule, let&amp;#39;s say &amp;quot;GLBL_SafeText()&amp;quot;, which handles null-checking (removing the need to manually do this every single time you use the function in a place where a null value is even remotely possible).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;if(
  a!isNullOrEmpty(ri!value),
  null(),
  
  if(
    a!isNullOrEmpty(ri!format),
    tostring(ri!value),
  
    text( ri!value, ri!format )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Portal Errors first time loading</title><link>https://community.appian.com/thread/153402?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 16:41:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee094be3-125d-4d24-8a53-0a0913468dac</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;The query isn&amp;rsquo;t returning data fast enough on initial portal load, causing the rich text field to reference null values.&lt;/p&gt;
&lt;p&gt;Add null-handling checks before accessing nested data. The code already has a!isNotNullOrEmpty() check but needs to verify local!recentReports itself isn&amp;rsquo;t empty before accessing [1].&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>