<?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 Table loader insert/update causing error .. ERROR: No key variables have been defined in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Table-loader-insert-update-causing-error-ERROR-No-key-variables/m-p/258300#M7042</link>
    <description>&lt;P&gt;It was working. I need to load a file where some records are new and others are updates. The target table has an index and primary key on claimant_id. I created a table loader with insert/update, Using "Modify using index" on both found and new fields. The lower part usually will gray out the index setting and I set the contrains to both off. Now when I run it says&amp;nbsp;ERROR: No key variables have been defined for file. "XXXNmaeXXX" but one has. &amp;nbsp; SAS back in 2013 had this : But no fix c'mon load a file like this is a common task. Anyone have any solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Problem Note &lt;I&gt;50965: &lt;/I&gt;The Table Loader transformation incorrectly deletes the key column index&lt;/H2&gt;
&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;A href="http://support.sas.com/kb/50/965.html" target="_blank"&gt;&lt;IMG src="http://support.sas.com/images/samples/details_sel.gif" border="0" alt="Details" /&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;A href="http://support.sas.com/kb/50/965.html" target="_blank"&gt;&lt;IMG src="http://support.sas.com/images/samples/about.gif" border="0" alt="About" /&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;A href="http://support.sas.com/kb/50/965.html" target="_blank"&gt;&lt;IMG src="http://support.sas.com/images/samples/rateit.gif" border="0" alt="Rate It" /&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD width="100%" height="3" valign="bottom"&gt;&lt;IMG src="http://support.sas.com/images/samples/gray1.gif" border="0" alt="" width="100%" height="3" /&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;DIV id="tab_details"&gt;
&lt;P&gt;The Table Loader transformation incorrectly deletes the index on the key column when the following conditions are true:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Load Style&lt;/STRONG&gt; is set to &lt;SPAN&gt;Update/Insert&lt;/SPAN&gt; on the &lt;STRONG&gt;Load Technique&lt;/STRONG&gt; tab in Table Loader properties.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Matching Rows&lt;/STRONG&gt; is set to either &lt;SPAN&gt;Modify by Column(s)&lt;/SPAN&gt; or &lt;SPAN&gt;Modify using Index&lt;/SPAN&gt; in the &lt;STRONG&gt;Technique(s)&lt;/STRONG&gt; section on the &lt;STRONG&gt;Load Technique&lt;/STRONG&gt; tab in Table Loader properties.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Before Load&lt;/STRONG&gt; is set to &lt;SPAN&gt;Off&lt;/SPAN&gt; in the &lt;STRONG&gt;Index Condition&lt;/STRONG&gt; section on the &lt;STRONG&gt;Load Technique&lt;/STRONG&gt; tab in Table Loader properties.&lt;/LI&gt;
&lt;LI&gt;An index exists on the key column used for matching the source table with the target table.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The impact of deletion of the key column index is as follows.&lt;/P&gt;
&lt;P&gt;When &lt;STRONG&gt;Matching Rows&lt;/STRONG&gt; is set to &lt;SPAN&gt;Modify by Column(s)&lt;/SPAN&gt;, the update process completes without errors. However, performance can be significantly impacted. The missing index results in the process performs a sequential read instead of an indexed of the target table.&lt;/P&gt;
&lt;P&gt;When &lt;STRONG&gt;Matching Rows&lt;/STRONG&gt; is set to &lt;SPAN&gt;Modify using Index&lt;/SPAN&gt;, the following error will occur due to the missing index:&lt;/P&gt;
&lt;DIV class="fusionnote"&gt;ERROR: No key variables have been defined for file &lt;STRONG&gt;&lt;I&gt;Target Table&lt;/I&gt;&lt;/STRONG&gt;.&lt;/DIV&gt;
&lt;P&gt;Contact &lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;SAS Technical Support&lt;/A&gt; for possible workarounds.&lt;/P&gt;
&lt;P&gt;A hot fix is planned for this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 22 Mar 2016 17:57:06 GMT</pubDate>
    <dc:creator>Roc</dc:creator>
    <dc:date>2016-03-22T17:57:06Z</dc:date>
    <item>
      <title>Table loader insert/update causing error .. ERROR: No key variables have been defined</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Table-loader-insert-update-causing-error-ERROR-No-key-variables/m-p/258300#M7042</link>
      <description>&lt;P&gt;It was working. I need to load a file where some records are new and others are updates. The target table has an index and primary key on claimant_id. I created a table loader with insert/update, Using "Modify using index" on both found and new fields. The lower part usually will gray out the index setting and I set the contrains to both off. Now when I run it says&amp;nbsp;ERROR: No key variables have been defined for file. "XXXNmaeXXX" but one has. &amp;nbsp; SAS back in 2013 had this : But no fix c'mon load a file like this is a common task. Anyone have any solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Problem Note &lt;I&gt;50965: &lt;/I&gt;The Table Loader transformation incorrectly deletes the key column index&lt;/H2&gt;
&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;A href="http://support.sas.com/kb/50/965.html" target="_blank"&gt;&lt;IMG src="http://support.sas.com/images/samples/details_sel.gif" border="0" alt="Details" /&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;A href="http://support.sas.com/kb/50/965.html" target="_blank"&gt;&lt;IMG src="http://support.sas.com/images/samples/about.gif" border="0" alt="About" /&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;A href="http://support.sas.com/kb/50/965.html" target="_blank"&gt;&lt;IMG src="http://support.sas.com/images/samples/rateit.gif" border="0" alt="Rate It" /&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD width="100%" height="3" valign="bottom"&gt;&lt;IMG src="http://support.sas.com/images/samples/gray1.gif" border="0" alt="" width="100%" height="3" /&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;DIV id="tab_details"&gt;
&lt;P&gt;The Table Loader transformation incorrectly deletes the index on the key column when the following conditions are true:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Load Style&lt;/STRONG&gt; is set to &lt;SPAN&gt;Update/Insert&lt;/SPAN&gt; on the &lt;STRONG&gt;Load Technique&lt;/STRONG&gt; tab in Table Loader properties.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Matching Rows&lt;/STRONG&gt; is set to either &lt;SPAN&gt;Modify by Column(s)&lt;/SPAN&gt; or &lt;SPAN&gt;Modify using Index&lt;/SPAN&gt; in the &lt;STRONG&gt;Technique(s)&lt;/STRONG&gt; section on the &lt;STRONG&gt;Load Technique&lt;/STRONG&gt; tab in Table Loader properties.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Before Load&lt;/STRONG&gt; is set to &lt;SPAN&gt;Off&lt;/SPAN&gt; in the &lt;STRONG&gt;Index Condition&lt;/STRONG&gt; section on the &lt;STRONG&gt;Load Technique&lt;/STRONG&gt; tab in Table Loader properties.&lt;/LI&gt;
&lt;LI&gt;An index exists on the key column used for matching the source table with the target table.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The impact of deletion of the key column index is as follows.&lt;/P&gt;
&lt;P&gt;When &lt;STRONG&gt;Matching Rows&lt;/STRONG&gt; is set to &lt;SPAN&gt;Modify by Column(s)&lt;/SPAN&gt;, the update process completes without errors. However, performance can be significantly impacted. The missing index results in the process performs a sequential read instead of an indexed of the target table.&lt;/P&gt;
&lt;P&gt;When &lt;STRONG&gt;Matching Rows&lt;/STRONG&gt; is set to &lt;SPAN&gt;Modify using Index&lt;/SPAN&gt;, the following error will occur due to the missing index:&lt;/P&gt;
&lt;DIV class="fusionnote"&gt;ERROR: No key variables have been defined for file &lt;STRONG&gt;&lt;I&gt;Target Table&lt;/I&gt;&lt;/STRONG&gt;.&lt;/DIV&gt;
&lt;P&gt;Contact &lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;SAS Technical Support&lt;/A&gt; for possible workarounds.&lt;/P&gt;
&lt;P&gt;A hot fix is planned for this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Table-loader-insert-update-causing-error-ERROR-No-key-variables/m-p/258300#M7042</guid>
      <dc:creator>Roc</dc:creator>
      <dc:date>2016-03-22T17:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table loader insert/update causing error .. ERROR: No key variables have been defined</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Table-loader-insert-update-causing-error-ERROR-No-key-variables/m-p/258915#M7051</link>
      <description>&lt;P&gt;It turns out you cannot just add an index or a key in DI. One has to add special code in the code tab and run the job. What is the purpose of haveing something that defines keys or indexs in a table when is dose not work? &amp;nbsp;Very frustrating this metadata.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 18:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Table-loader-insert-update-causing-error-ERROR-No-key-variables/m-p/258915#M7051</guid>
      <dc:creator>Roc</dc:creator>
      <dc:date>2016-03-24T18:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Table loader insert/update causing error .. ERROR: No key variables have been defined</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Table-loader-insert-update-causing-error-ERROR-No-key-variables/m-p/259274#M7072</link>
      <description>Doesn't it work if you ser index creation to before load - on?</description>
      <pubDate>Sun, 27 Mar 2016 20:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Table-loader-insert-update-causing-error-ERROR-No-key-variables/m-p/259274#M7072</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-27T20:10:54Z</dc:date>
    </item>
  </channel>
</rss>

