<?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>topic User-defined format works in Data Prep but not in Report Designer in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/User-defined-format-works-in-Data-Prep-but-not-in-Report/m-p/272928#M4362</link>
    <description>&lt;P&gt;Hello VA Community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm an OA dev and am trying to get a user-defined format working in VA, we're on v7.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My user-defined format displays the fiscal year of a date. In Australia a FY runs from 01JULyyyy to 30JUNyyyy and the current FY would be written as '2015/16'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Creating the format in PROC FORMAT is pretty simple, the line for the current FY is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'01JUL2015'd - '30JUN2016'd = '2015/16'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The corresponding contents of the compiled format are as you'd expect for&amp;nbsp;those dates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;START  END    LABEL
20270  20635  2015/16&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached two screenshots. 'User-defined format works in Data Prep' shows it working perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'User-defined format breaks Report Designer' shows the error I receive in Report Designer when trying to drag FORMATTED_DATE onto the List Table control:&lt;STRONG&gt; 'The data source does not contain valid data'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice the name of the user-defined format 'DJAG_FY' is displayed correctly in the properties of FORMATTED_DATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VA happens to be treating FORMATTED_DATE as a numeric rather than a date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea what the root cause of this problem is?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12581i765527C50A774CC7/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="User-defined format breaks Report Designer.png" title="User-defined format breaks Report Designer.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12582i7D09278261F760BD/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="User-defined format works in Data Prep.png" title="User-defined format works in Data Prep.png" /&gt;</description>
    <pubDate>Wed, 25 May 2016 02:45:06 GMT</pubDate>
    <dc:creator>BenG</dc:creator>
    <dc:date>2016-05-25T02:45:06Z</dc:date>
    <item>
      <title>User-defined format works in Data Prep but not in Report Designer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/User-defined-format-works-in-Data-Prep-but-not-in-Report/m-p/272928#M4362</link>
      <description>&lt;P&gt;Hello VA Community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm an OA dev and am trying to get a user-defined format working in VA, we're on v7.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My user-defined format displays the fiscal year of a date. In Australia a FY runs from 01JULyyyy to 30JUNyyyy and the current FY would be written as '2015/16'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Creating the format in PROC FORMAT is pretty simple, the line for the current FY is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'01JUL2015'd - '30JUN2016'd = '2015/16'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The corresponding contents of the compiled format are as you'd expect for&amp;nbsp;those dates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;START  END    LABEL
20270  20635  2015/16&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached two screenshots. 'User-defined format works in Data Prep' shows it working perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'User-defined format breaks Report Designer' shows the error I receive in Report Designer when trying to drag FORMATTED_DATE onto the List Table control:&lt;STRONG&gt; 'The data source does not contain valid data'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice the name of the user-defined format 'DJAG_FY' is displayed correctly in the properties of FORMATTED_DATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VA happens to be treating FORMATTED_DATE as a numeric rather than a date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea what the root cause of this problem is?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12581i765527C50A774CC7/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="User-defined format breaks Report Designer.png" title="User-defined format breaks Report Designer.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12582i7D09278261F760BD/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="User-defined format works in Data Prep.png" title="User-defined format works in Data Prep.png" /&gt;</description>
      <pubDate>Wed, 25 May 2016 02:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/User-defined-format-works-in-Data-Prep-but-not-in-Report/m-p/272928#M4362</guid>
      <dc:creator>BenG</dc:creator>
      <dc:date>2016-05-25T02:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: User-defined format works in Data Prep but not in Report Designer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/User-defined-format-works-in-Data-Prep-but-not-in-Report/m-p/272939#M4363</link>
      <description>&lt;P&gt;I managed to get a copy of the&amp;nbsp;SASVisualAnalyticsDesigner7.1.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; [DESIGNER   ] ERROR [tomcat-http--44] 2016-05-25 11:22:05,731 [ST-25284-ja3y3Ks1WVXZpe21Hdts-cas:BenG] com.sas.bidata.result.lasr.LasrSummarizedQueryRunner - com.sas.lasr.LASRException: ERROR: Some formats could not be loaded in the LASR Analytic Server.
 [DESIGNER   ] ERROR [tomcat-http--44] 2016-05-25 11:22:05,766 [ST-25284-ja3y3Ks1WVXZpe21Hdts-cas:BenG] com.sas.bidata.error.DataErrorHandler - QueryFailed
com.sas.lasr.LASRException: ERROR: Some formats could not be loaded in the LASR Analytic Server.


 [DESIGNER   ] ERROR [tomcat-http--45] 2016-05-25 12:34:10,883 [ST-25815-Uc5arwdRTWkTEAKdUALf-cas:BenG] com.sas.bidata.result.lasr.LasrSummarizedQueryRunner - com.sas.lasr.LASRException: ERROR: Some formats could not be loaded in the LASR Analytic Server.
 [DESIGNER   ] ERROR [tomcat-http--35] 2016-05-25 12:34:10,983 [ST-25815-Uc5arwdRTWkTEAKdUALf-cas:BenG] com.sas.mobiledesigner.api.services.datasource.impl.DataSourceServiceImpl - QueryFailed 
com.sas.lasr.LASRException: ERROR: The user-defined programming statements could not be parsed.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only matching page I found after searching was &lt;A href="http://support.sas.com/kb/56/402.html" target="_blank"&gt;http://support.sas.com/kb/56/402.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However that is referring to PICTURE formats and I am only trying to implement a plain 'value = label' format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like a bug...&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 04:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/User-defined-format-works-in-Data-Prep-but-not-in-Report/m-p/272939#M4363</guid>
      <dc:creator>BenG</dc:creator>
      <dc:date>2016-05-25T04:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: User-defined format works in Data Prep but not in Report Designer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/User-defined-format-works-in-Data-Prep-but-not-in-Report/m-p/273090#M4372</link>
      <description>&lt;P&gt;BenG:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not in SAS Tech Support but I found this SASNOTE which may be related or completely unrelated to your situation.&lt;/P&gt;
&lt;P&gt;That is, apostrophes in the custom format caused the same error messasge you received:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/57/794.html" target="_blank"&gt;http://support.sas.com/kb/57/794.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe try removing the “/”&amp;nbsp;symbol from the custom format and see if the Error message goes away in Designer.&lt;/P&gt;
&lt;P&gt;Regardless, Error Messages should be called into SAS Tech Support so they can be officially logged and troubleshooted appropriately:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Especially if you have discovered a "bug".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;Ted Stolarczyk, SAS Customer Loyalty team&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 17:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/User-defined-format-works-in-Data-Prep-but-not-in-Report/m-p/273090#M4372</guid>
      <dc:creator>TedStolarczyk</dc:creator>
      <dc:date>2016-05-25T17:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: User-defined format works in Data Prep but not in Report Designer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/User-defined-format-works-in-Data-Prep-but-not-in-Report/m-p/273150#M4382</link>
      <description>&lt;P&gt;Hi Ted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the link to that SASNOTE, it does sound very similar and is something I suspected. I'll raise it with support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without the "/" the format is pointless &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll discuss it with my VA report writer. A workaround I've considered is to create the FY label as a new character variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 21:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/User-defined-format-works-in-Data-Prep-but-not-in-Report/m-p/273150#M4382</guid>
      <dc:creator>BenG</dc:creator>
      <dc:date>2016-05-25T21:38:23Z</dc:date>
    </item>
  </channel>
</rss>

