<?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 WARNING: The data for boxes is incomplete or invalid. Some boxes will not be drawn. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/WARNING-The-data-for-boxes-is-incomplete-or-invalid-Some-boxes/m-p/331729#M11564</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm moving some SGPLOT code from 9.3 to 9.4M3, and I'm getting:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WARNING: The data for boxes is incomplete or invalid. Some boxes will not be drawn.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I get the warning if there is a group with all missing values, e.g. below will generate it because y is always missing for group 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a ;
  do group=1 to 5 ;
    do id=1 to 10 ;
      if group&amp;gt;=2 then y=ranuni(0) ;
      output  ;
    end  ;
  end ;
run ;

proc sgplot data=a ;
  vbox y / category=group ;
run ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any other conditions that would generate this warning?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I saw this note about a bug in 9.4M0 &lt;A href="http://support.sas.com/kb/54/551.html" target="_blank"&gt;http://support.sas.com/kb/54/551.html&lt;/A&gt;, but it says it's fixed in M3, and indeed I could not replicate it when there is only 1 data point in a group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't particularly like this warning.&amp;nbsp; And seems inconsistent that VBOX throws it, but VBAR does not throw an analagous warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=a ;
  vbar group / response=y;
run ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is only thrown when there is a group with all missing values, I will add it to my list of ignorable log warnings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;--Q.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 22:14:49 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2017-02-10T22:14:49Z</dc:date>
    <item>
      <title>WARNING: The data for boxes is incomplete or invalid. Some boxes will not be drawn.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/WARNING-The-data-for-boxes-is-incomplete-or-invalid-Some-boxes/m-p/331729#M11564</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm moving some SGPLOT code from 9.3 to 9.4M3, and I'm getting:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WARNING: The data for boxes is incomplete or invalid. Some boxes will not be drawn.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I get the warning if there is a group with all missing values, e.g. below will generate it because y is always missing for group 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a ;
  do group=1 to 5 ;
    do id=1 to 10 ;
      if group&amp;gt;=2 then y=ranuni(0) ;
      output  ;
    end  ;
  end ;
run ;

proc sgplot data=a ;
  vbox y / category=group ;
run ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any other conditions that would generate this warning?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I saw this note about a bug in 9.4M0 &lt;A href="http://support.sas.com/kb/54/551.html" target="_blank"&gt;http://support.sas.com/kb/54/551.html&lt;/A&gt;, but it says it's fixed in M3, and indeed I could not replicate it when there is only 1 data point in a group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't particularly like this warning.&amp;nbsp; And seems inconsistent that VBOX throws it, but VBAR does not throw an analagous warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=a ;
  vbar group / response=y;
run ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is only thrown when there is a group with all missing values, I will add it to my list of ignorable log warnings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;--Q.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 22:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/WARNING-The-data-for-boxes-is-incomplete-or-invalid-Some-boxes/m-p/331729#M11564</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-02-10T22:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The data for boxes is incomplete or invalid. Some boxes will not be drawn.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/WARNING-The-data-for-boxes-is-incomplete-or-invalid-Some-boxes/m-p/331747#M11568</link>
      <description>&lt;P&gt;How about sharing the data and actual code submitted.&lt;/P&gt;
&lt;P&gt;When something sounds like a data issue then check the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you are using a FREQ option and the value for the FREQ is missing for one or more records of the box variable&lt;/P&gt;
&lt;P&gt;Have you tried using the option MISSING?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 23:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/WARNING-The-data-for-boxes-is-incomplete-or-invalid-Some-boxes/m-p/331747#M11568</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-10T23:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The data for boxes is incomplete or invalid. Some boxes will not be drawn.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/WARNING-The-data-for-boxes-is-incomplete-or-invalid-Some-boxes/m-p/331759#M11570</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;.&amp;nbsp; The code in my post&amp;nbsp; is the actual code submitted (it generates sample data, and then PROC SGPLOT makes the plot).&amp;nbsp; And in 9.4 M3, it throws the warning (does not in 9.3).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that example, it throws the warning because there is one group where all values of the response value are missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is, are there any other circumstances in which that warning would be generated?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My side comment is that the warning doesn't seem very useful, and is not generated in other similar situations, such as the vbar chart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 01:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/WARNING-The-data-for-boxes-is-incomplete-or-invalid-Some-boxes/m-p/331759#M11570</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-02-11T01:17:21Z</dc:date>
    </item>
  </channel>
</rss>

