<?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 Hitting error of Identity Column with Table Loader when using SAS Data Integration Studio in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Hitting-error-of-Identity-Column-with-Table-Loader-when-using/m-p/387713#M11690</link>
    <description>&lt;P&gt;Dear everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building ETL jobs for a project along with my seniors with SAS Data Integration Studio. Recently, i have updated the entire MS SQL database with new primary key. Before i edit the database, all tables have a column "ID" which is identity column which also remains until now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the problem, all my Loading jobs are using table loader for Update/Insert. It has always been working fine until the recent MS SQL database change. Now, I am getting this error :&lt;/P&gt;&lt;PRE&gt; ERROR: CLI execute error: [Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert explicit value for identity column in table 'ACTIVITY_HIGHLIGHT' when IDENTITY_INSERT is set to OFF.&lt;/PRE&gt;&lt;P&gt;Here is the screenshot of the table loader mapping:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table loader mapping.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14460iD41E072BF1093638/image-size/large?v=v2&amp;amp;px=999" role="button" title="table loader mapping.PNG" alt="table loader mapping.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID is not mapped as it is set to identity column in MS SQL.&lt;/P&gt;&lt;P&gt;I have tried to switch the option of SQL Pass thru to on and off and im still getting this same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do take note that I do not map to the ID column in any way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do understand that sometimes my information posted is not sufficient enough for your understanding. Hence, I appreciate if you could ask me for more particular info that you need to further analyze.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to thanks everyone here for reading my post and hopefully this problem will be resolved soon.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2017 10:14:33 GMT</pubDate>
    <dc:creator>imdickson</dc:creator>
    <dc:date>2017-08-14T10:14:33Z</dc:date>
    <item>
      <title>Hitting error of Identity Column with Table Loader when using SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Hitting-error-of-Identity-Column-with-Table-Loader-when-using/m-p/387713#M11690</link>
      <description>&lt;P&gt;Dear everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building ETL jobs for a project along with my seniors with SAS Data Integration Studio. Recently, i have updated the entire MS SQL database with new primary key. Before i edit the database, all tables have a column "ID" which is identity column which also remains until now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the problem, all my Loading jobs are using table loader for Update/Insert. It has always been working fine until the recent MS SQL database change. Now, I am getting this error :&lt;/P&gt;&lt;PRE&gt; ERROR: CLI execute error: [Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert explicit value for identity column in table 'ACTIVITY_HIGHLIGHT' when IDENTITY_INSERT is set to OFF.&lt;/PRE&gt;&lt;P&gt;Here is the screenshot of the table loader mapping:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table loader mapping.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14460iD41E072BF1093638/image-size/large?v=v2&amp;amp;px=999" role="button" title="table loader mapping.PNG" alt="table loader mapping.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID is not mapped as it is set to identity column in MS SQL.&lt;/P&gt;&lt;P&gt;I have tried to switch the option of SQL Pass thru to on and off and im still getting this same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do take note that I do not map to the ID column in any way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do understand that sometimes my information posted is not sufficient enough for your understanding. Hence, I appreciate if you could ask me for more particular info that you need to further analyze.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to thanks everyone here for reading my post and hopefully this problem will be resolved soon.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 10:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Hitting-error-of-Identity-Column-with-Table-Loader-when-using/m-p/387713#M11690</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2017-08-14T10:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hitting error of Identity Column with Table Loader when using SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Hitting-error-of-Identity-Column-with-Table-Loader-when-using/m-p/387722#M11691</link>
      <description>&lt;P&gt;I think that there have been a couple&amp;nbsp;of threads with similar&amp;nbsp;issues.&lt;/P&gt;
&lt;P&gt;As I recall it I have solved this by setting the option IGNORE_READ_ONLY_COLUMNS=YES (works both as a libname&amp;nbsp;and as a data set option).&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 11:07:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Hitting-error-of-Identity-Column-with-Table-Loader-when-using/m-p/387722#M11691</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-14T11:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hitting error of Identity Column with Table Loader when using SAS Data Integration Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Hitting-error-of-Identity-Column-with-Table-Loader-when-using/m-p/389480#M11767</link>
      <description>Added that statement in the library configuration. Thanks alot</description>
      <pubDate>Mon, 21 Aug 2017 10:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Hitting-error-of-Identity-Column-with-Table-Loader-when-using/m-p/389480#M11767</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2017-08-21T10:19:16Z</dc:date>
    </item>
  </channel>
</rss>

