<?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 Re: Error: At least one of the IDs values (element 0 which is 0) is invalid in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-At-least-one-of-the-IDs-values-element-0-which-is-0-is/m-p/940764#M369231</link>
    <description>Still the same error.</description>
    <pubDate>Sun, 25 Aug 2024 11:21:14 GMT</pubDate>
    <dc:creator>altijani</dc:creator>
    <dc:date>2024-08-25T11:21:14Z</dc:date>
    <item>
      <title>Error: At least one of the IDs values (element 0 which is 0) is invalid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-At-least-one-of-the-IDs-values-element-0-which-is-0-is/m-p/940746#M369222</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="altijani_1-1724552739939.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/99613iA1E140085328F168/image-size/medium?v=v2&amp;amp;px=400" role="button" title="altijani_1-1724552739939.png" alt="altijani_1-1724552739939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am receiving this message repeatedly after a simple code like this: What would be the cause?&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.QUERY_FOR_ah AS&lt;BR /&gt;SELECT DISTINCT&lt;/P&gt;&lt;P&gt;t1.Store_ID,&lt;BR /&gt;t1.Customer_ID,&lt;BR /&gt;t1.CLUSTER_ID&lt;BR /&gt;FROM adm.Jumb_ah t1&lt;BR /&gt;ORDER BY t1.CLUSTER_ID;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2024 02:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-At-least-one-of-the-IDs-values-element-0-which-is-0-is/m-p/940746#M369222</guid>
      <dc:creator>altijani</dc:creator>
      <dc:date>2024-08-25T02:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error: At least one of the IDs values (element 0 which is 0) is invalid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-At-least-one-of-the-IDs-values-element-0-which-is-0-is/m-p/940748#M369223</link>
      <description>An untested guess:  change your ORDER BY clause.  Remove "t1." so it simply reads:&lt;BR /&gt;ORDER BY CLUSTER_ID;</description>
      <pubDate>Sun, 25 Aug 2024 04:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-At-least-one-of-the-IDs-values-element-0-which-is-0-is/m-p/940748#M369223</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2024-08-25T04:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error: At least one of the IDs values (element 0 which is 0) is invalid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-At-least-one-of-the-IDs-values-element-0-which-is-0-is/m-p/940764#M369231</link>
      <description>Still the same error.</description>
      <pubDate>Sun, 25 Aug 2024 11:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-At-least-one-of-the-IDs-values-element-0-which-is-0-is/m-p/940764#M369231</guid>
      <dc:creator>altijani</dc:creator>
      <dc:date>2024-08-25T11:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error: At least one of the IDs values (element 0 which is 0) is invalid</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-At-least-one-of-the-IDs-values-element-0-which-is-0-is/m-p/940769#M369234</link>
      <description>&lt;P&gt;That's a weird message.&amp;nbsp; What does the log show?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you run the code without the create table clause, i.e.:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
SELECT DISTINCT
t1.Store_ID,
t1.Customer_ID,
t1.CLUSTER_ID
FROM adm.Jumb_ah t1
ORDER BY t1.CLUSTER_ID;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is the source data (adm.Jumbh_ah) a SAS dataset, or some relational database?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the part of the screen shot that you blacked out, what data set is the message referring to?&amp;nbsp; Is it adm.Jumb_ah or work.Query_For_ah or something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could adm.Jumb_ah be a database view with integrity constraints, rather than a table?&amp;nbsp; And when you query from adm.Jumb_ah one of the integrity constraints fails?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2024 13:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-At-least-one-of-the-IDs-values-element-0-which-is-0-is/m-p/940769#M369234</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-08-25T13:23:08Z</dc:date>
    </item>
  </channel>
</rss>

