<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>post How to Prevent Values of Variables not Displaying on List and Reports on Madrid in ITSM blog</title>
    <link>https://www.servicenow.com/community/itsm-blog/how-to-prevent-values-of-variables-not-displaying-on-list-and/ba-p/2293687</link>
    <description>&lt;P&gt;After an upgrade to Madrid, if you have an issue with values of variables are not displayed on list or reports. A few variables are not shown in report results though there is valid data for these variables. Read On.&lt;/P&gt;
&lt;H1&gt;Why Variables are not displayed on list reports&lt;/H1&gt;
&lt;P&gt;This issue happens because of the presence of one or more variables that have been added to the report but contain no value. Setting an item variable to null causes a [java.lang.NullPointerException] on Madrid. The issue has been introduced due to the addition of a new feature in Madrid.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; The variable value, if empty, is considered to be null during the generation of reports on the Requested Item Table (sc_req_item). Due to the addition of the new feature &lt;A href="https://docs.servicenow.com/bundle/madrid-it-service-management/page/product/service-catalog-management/task/define-regex-vrble.html" target="_blank" rel="noopener noreferrer nofollow"&gt;Regex Validation&lt;/A&gt;, we validate the variable based on a regular expression. For this purpose, the value must be converted to a string and hence when null is attempted to be converted to a string, a NULL Pointer Exception is thrown as a result of which the remaining variables, although containing a valid value, are not generated on the reports or lists.&lt;/P&gt;
&lt;H2&gt;Symptoms of missing Variables on list reports:&lt;/H2&gt;
&lt;OL&gt;&lt;LI&gt;Issue when setting an item variable to null causes a [java.lang.NullPointerException]&lt;/LI&gt;&lt;LI&gt;Variables are not displayed on reports although there is valid data for these variables.&lt;/LI&gt;&lt;/OL&gt;
&lt;H3&gt;How to fix the issue:&lt;/H3&gt;
&lt;P&gt;There is no concrete workaround available for this issue. However, there is a way of preventing this missing variables on list reports in Madrid. You can&amp;nbsp; is by not including the variables which do not have any value on the reports.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Builds Affected&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Madrid patch 0&lt;/LI&gt;&lt;LI&gt;Madrid patch 1&lt;/LI&gt;&lt;LI&gt;Madrid patch 2&lt;/LI&gt;&lt;LI&gt;Madrid patch 3&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Fixed Versions&lt;/STRONG&gt;: This issue has been fixed on Madrid Patch4 and later branches. Also a hotfix has been provided on Madrid patch3 hotfix 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="text-align: center;"&gt;See &lt;A href="https://hi.service-now.com/kb_view.do?sysparm_article=KB0748703" target="_blank" rel="noopener noreferrer nofollow"&gt;Madrid: Assigning variable to null causes [java.lang.NullPointerException] and can result in variables not displayed on list/reports&lt;/A&gt;&amp;nbsp;for more information.&lt;/P&gt;
&lt;DIV id="articleStarRatingGroup" class="accessibility-disabled" title="This article has not been rated yet. Use up and down arrow keys to select and submit the rating."&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="accessibility-disabled" title="This article has not been rated yet. Use up and down arrow keys to select and submit the rating."&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="accessibility-disabled" title="This article has not been rated yet. Use up and down arrow keys to select and submit the rating."&gt;More information on Regex Validation:&lt;/DIV&gt;
&lt;DIV class="accessibility-disabled" title="This article has not been rated yet. Use up and down arrow keys to select and submit the rating."&gt;
&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.servicenow.com/community?id=community_article&amp;amp;sys_id=f5b8a988db057300d82ffb24399619b8" target="_blank" rel="noopener noreferrer nofollow"&gt;Service Portal Catalog Items: Regex Field Validation [Madrid]&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.servicenow.com/community?id=community_article&amp;amp;sys_id=e334bc4cdbe0bf48fff8a345ca9619c5" target="_blank" rel="noopener noreferrer nofollow"&gt;Variable Validation Regex on Madrid - Usage&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV class="accessibility-disabled" title="This article has not been rated yet. Use up and down arrow keys to select and submit the rating."&gt;
&lt;DIV class="cm-author-details"&gt;
&lt;DIV class="cm-author-details"&gt;
&lt;DIV class="cm-author-image"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 21 May 2019 05:04:40 GMT</pubDate>
    <dc:creator>akshaykumar1</dc:creator>
    <dc:date>2019-05-21T05:04:40Z</dc:date>
    <item>
      <title>How to Prevent Values of Variables not Displaying on List and Reports on Madrid</title>
      <link>https://www.servicenow.com/community/itsm-blog/how-to-prevent-values-of-variables-not-displaying-on-list-and/ba-p/2293687</link>
      <description>&lt;P&gt;After an upgrade to Madrid, if you have an issue with values of variables are not displayed on list or reports. A few variables are not shown in report results though there is valid data for these variables. Read On.&lt;/P&gt;
&lt;H1&gt;Why Variables are not displayed on list reports&lt;/H1&gt;
&lt;P&gt;This issue happens because of the presence of one or more variables that have been added to the report but contain no value. Setting an item variable to null causes a [java.lang.NullPointerException] on Madrid. The issue has been introduced due to the addition of a new feature in Madrid.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; The variable value, if empty, is considered to be null during the generation of reports on the Requested Item Table (sc_req_item). Due to the addition of the new feature &lt;A href="https://docs.servicenow.com/bundle/madrid-it-service-management/page/product/service-catalog-management/task/define-regex-vrble.html" target="_blank" rel="noopener noreferrer nofollow"&gt;Regex Validation&lt;/A&gt;, we validate the variable based on a regular expression. For this purpose, the value must be converted to a string and hence when null is attempted to be converted to a string, a NULL Pointer Exception is thrown as a result of which the remaining variables, although containing a valid value, are not generated on the reports or lists.&lt;/P&gt;
&lt;H2&gt;Symptoms of missing Variables on list reports:&lt;/H2&gt;
&lt;OL&gt;&lt;LI&gt;Issue when setting an item variable to null causes a [java.lang.NullPointerException]&lt;/LI&gt;&lt;LI&gt;Variables are not displayed on reports although there is valid data for these variables.&lt;/LI&gt;&lt;/OL&gt;
&lt;H3&gt;How to fix the issue:&lt;/H3&gt;
&lt;P&gt;There is no concrete workaround available for this issue. However, there is a way of preventing this missing variables on list reports in Madrid. You can&amp;nbsp; is by not including the variables which do not have any value on the reports.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Builds Affected&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Madrid patch 0&lt;/LI&gt;&lt;LI&gt;Madrid patch 1&lt;/LI&gt;&lt;LI&gt;Madrid patch 2&lt;/LI&gt;&lt;LI&gt;Madrid patch 3&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Fixed Versions&lt;/STRONG&gt;: This issue has been fixed on Madrid Patch4 and later branches. Also a hotfix has been provided on Madrid patch3 hotfix 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="text-align: center;"&gt;See &lt;A href="https://hi.service-now.com/kb_view.do?sysparm_article=KB0748703" target="_blank" rel="noopener noreferrer nofollow"&gt;Madrid: Assigning variable to null causes [java.lang.NullPointerException] and can result in variables not displayed on list/reports&lt;/A&gt;&amp;nbsp;for more information.&lt;/P&gt;
&lt;DIV id="articleStarRatingGroup" class="accessibility-disabled" title="This article has not been rated yet. Use up and down arrow keys to select and submit the rating."&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="accessibility-disabled" title="This article has not been rated yet. Use up and down arrow keys to select and submit the rating."&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="accessibility-disabled" title="This article has not been rated yet. Use up and down arrow keys to select and submit the rating."&gt;More information on Regex Validation:&lt;/DIV&gt;
&lt;DIV class="accessibility-disabled" title="This article has not been rated yet. Use up and down arrow keys to select and submit the rating."&gt;
&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.servicenow.com/community?id=community_article&amp;amp;sys_id=f5b8a988db057300d82ffb24399619b8" target="_blank" rel="noopener noreferrer nofollow"&gt;Service Portal Catalog Items: Regex Field Validation [Madrid]&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.servicenow.com/community?id=community_article&amp;amp;sys_id=e334bc4cdbe0bf48fff8a345ca9619c5" target="_blank" rel="noopener noreferrer nofollow"&gt;Variable Validation Regex on Madrid - Usage&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV class="accessibility-disabled" title="This article has not been rated yet. Use up and down arrow keys to select and submit the rating."&gt;
&lt;DIV class="cm-author-details"&gt;
&lt;DIV class="cm-author-details"&gt;
&lt;DIV class="cm-author-image"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 May 2019 05:04:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-blog/how-to-prevent-values-of-variables-not-displaying-on-list-and/ba-p/2293687</guid>
      <dc:creator>akshaykumar1</dc:creator>
      <dc:date>2019-05-21T05:04:40Z</dc:date>
    </item>
  </channel>
</rss>

