<?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: Inserting into SQL (Auto Identity Columns / Auto Date colums) in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153268#M2651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diane - Yes i logged a SAS technical support track yesterday for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linus - I've just looked into deleting the column in metadata with my current setup, and although this hasn't corrected the issue, having deleted the ID column from the metadata within SAS MC, changed the table loader style to replace entire table (as per the section Maintaining Metadata - 'Perform Additional Operations on Column Metadata' in the &lt;A href="http://support.sas.com/documentation/cdl/en/etlug/60948/HTML/default/viewer.htm#n0gj6rs6dc6cn3n1c8jdnliybcak.htm" title="http://support.sas.com/documentation/cdl/en/etlug/60948/HTML/default/viewer.htm#n0gj6rs6dc6cn3n1c8jdnliybcak.htm"&gt;SAS(R) Data Integration Studio 4.2: User's Guide&lt;/A&gt;) - the error has changed to&amp;nbsp; 'ERROR: During insert: Data was not set for one or more columns.'&lt;/P&gt;&lt;P&gt;This i feel is a little more promising and i'm going to continue to look into this error today.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 09:30:36 GMT</pubDate>
    <dc:creator>mrtball</dc:creator>
    <dc:date>2014-01-29T09:30:36Z</dc:date>
    <item>
      <title>Inserting into SQL (Auto Identity Columns / Auto Date colums)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153265#M2648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;r SQL Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp; getting a similar problem to (&lt;A _jive_internal="true" href="https://communities.sas.com/thread/12940"&gt;https://communities.sas.com/thread/12940&lt;/A&gt;) attempting to use a table loader in SAS DI 4.4 (9.3) to populate a SQL table with an identity / auto generate ID column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially i was getting the error: &lt;A&gt;Line 650:&lt;/A&gt; ERROR: During insert: Data value violated the schema for column Vehicle_ID Data was not set for one or more columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However after following the update in the link to include ignore_read_only_columns=yes in the libname - I managed to do this in the advanced library properties &amp;gt; other options within SAS MC 9.3.&lt;/P&gt;&lt;P&gt;After doing this the error changed to the below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A name="18485233"&gt;&lt;/A&gt;&lt;IMG class="jiveImage" /&gt;&amp;nbsp; &lt;A&gt;Table Loader&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" /&gt; &lt;A&gt;Line &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,328:&lt;/A&gt; ERROR: An exception has been encountered. Please contact&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; technical support and provide them with the following traceback&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; information: The SAS task name is [APPEND (2)]&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" /&gt; &lt;A&gt;Line &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,328:&lt;/A&gt; ERROR: Read Access Violation APPEND (2) Exception occurred at&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (05B2C17F) Task Traceback Address Frame (DBGHELP API Version 4.0 rev 5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000005B2C17F 0000000009EABC90 sasioole:tkvercn1+0x1B13F&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000005B802D9 0000000009EABC98 sasxdbi:tkvercn1+0xF299 0000000006C74203&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000009EABD48 sasyoio:tkvercn1+0x31C3 00000000096A6870 0000000009EAC098&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sasqutil:tkvercn1+0x45830 000000000966D65D 0000000009EAF7D0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sasqutil:tkvercn1+0xC61D 000000000967EEC1 0000000009EAFAC0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sasqutil:tkvercn1+0x1DE81 00000000036C059F 0000000009EAFAC8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sasxshel:tkvercn1+0x4F55F 00000000096B2EA8 0000000009EAFBE0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sasqutil:tkvercn1+0x51E68 00000000096614D5 0000000009EAFCB0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sasqutil:tkvercn1+0x495 0000000002128AF7 0000000009EAFCB8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sashost:Main+0xF427 000000000212D12D 0000000009EAFF50 sashost:Main+0x13A5D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0000000076FE652D 0000000009EAFF58 kernel32:BaseThreadInitThunk+0xD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000000007711C541 0000000009EAFF88 ntdll:RtlUserThreadStart+0x21&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" /&gt;&lt;A&gt;Line &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,328:&lt;/A&gt; ERROR: ROLLBACK issued due to errors for data set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAMSUM.Vehicle.DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The ID column in question is unmapped.&lt;/LI&gt;&lt;LI&gt;I also tried to user your code as hand-written code within the table loader (proc append base=target.my_target(drop=SQL_ID) etc..) - this didn't work, and seems to then pass the error onto the next table column (even columns which are not auto generate identity columns)&lt;/LI&gt;&lt;LI&gt;I've so far struggled to find detail on the pre/post script sequencing steps&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering if you have any ideas of how to correct this?,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 14:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153265#M2648</guid>
      <dc:creator>mrtball</dc:creator>
      <dc:date>2014-01-27T14:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting into SQL (Auto Identity Columns / Auto Date colums)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153266#M2649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! Have you submitted this question to SAS Technical Support? You can copy and paste what you posted into the form available here: &lt;A href="http://support.sas.com/ctx/supportform/createForm" title="http://support.sas.com/ctx/supportform/createForm"&gt;Technical Support Form&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 20:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153266#M2649</guid>
      <dc:creator>Diane_SAS</dc:creator>
      <dc:date>2014-01-28T20:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting into SQL (Auto Identity Columns / Auto Date colums)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153267#M2650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Posting the part of the log that tries to insert data would help.&lt;/P&gt;&lt;P&gt;I can recall that we had a similar problem. Maybe I remeber wrong, but I think we had to unregister the columns in question from SAS metadata to make it work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 21:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153267#M2650</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-01-28T21:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting into SQL (Auto Identity Columns / Auto Date colums)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153268#M2651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diane - Yes i logged a SAS technical support track yesterday for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linus - I've just looked into deleting the column in metadata with my current setup, and although this hasn't corrected the issue, having deleted the ID column from the metadata within SAS MC, changed the table loader style to replace entire table (as per the section Maintaining Metadata - 'Perform Additional Operations on Column Metadata' in the &lt;A href="http://support.sas.com/documentation/cdl/en/etlug/60948/HTML/default/viewer.htm#n0gj6rs6dc6cn3n1c8jdnliybcak.htm" title="http://support.sas.com/documentation/cdl/en/etlug/60948/HTML/default/viewer.htm#n0gj6rs6dc6cn3n1c8jdnliybcak.htm"&gt;SAS(R) Data Integration Studio 4.2: User's Guide&lt;/A&gt;) - the error has changed to&amp;nbsp; 'ERROR: During insert: Data was not set for one or more columns.'&lt;/P&gt;&lt;P&gt;This i feel is a little more promising and i'm going to continue to look into this error today.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 09:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153268#M2651</guid>
      <dc:creator>mrtball</dc:creator>
      <dc:date>2014-01-29T09:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting into SQL (Auto Identity Columns / Auto Date colums)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153269#M2652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like this is now working through a combination of revisiting how the SQL table was setup (removing columns that do not allow nulls and not including other auto date columns). The ID column is auto populating and the Date_Inserted date is also auto-populating in the SQL table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is also working &lt;SPAN style="text-decoration: underline;"&gt;without&lt;/SPAN&gt; removing the ID column from metadata (the column remains in metadata but is not mapped in the table loader)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using these load settings:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="4814" alt="table_loader settings.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4814_table_loader settings.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;And also including REREAD_EXPOSURE=yes in the libname (as prompted when moving from the 'load technique' tab to the 'mappings' tab in DI):&lt;IMG __jive_id="4815" alt="re-read.jpg" class="jive-image" height="120" src="https://communities.sas.com/legacyfs/online/4815_re-read.jpg" width="332" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 13:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153269#M2652</guid>
      <dc:creator>mrtball</dc:creator>
      <dc:date>2014-01-29T13:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting into SQL (Auto Identity Columns / Auto Date colums)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153270#M2653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is fantastic! Thanks for posting your resolution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 14:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153270#M2653</guid>
      <dc:creator>Diane_SAS</dc:creator>
      <dc:date>2014-01-29T14:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting into SQL (Auto Identity Columns / Auto Date colums)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153271#M2654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Also to add to the resolution of this&lt;/P&gt;&lt;P&gt;- I've just identified that within the Library settings - &amp;gt; options &amp;gt; advanced options &amp;gt; output&lt;/P&gt;&lt;P&gt;Setting the &lt;STRONG&gt;'Whether to use DBMS's bulk load'&lt;/STRONG&gt; option to Yes displays this error again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 17:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153271#M2654</guid>
      <dc:creator>mrtball</dc:creator>
      <dc:date>2014-01-30T17:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting into SQL (Auto Identity Columns / Auto Date colums)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153272#M2655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="9924" data-username="mrtball" href="https://communities.sas.com/people/mrtball" id="jive-99246492455027934711"&gt;mrtball&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; , I'm glad you found the solution to your problem! Thank you for marking the answer as "correct." This allows other community members to benefit from reading your solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Anna-Marie &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Inserting-into-SQL-Auto-Identity-Columns-Auto-Date-colums/m-p/153272#M2655</guid>
      <dc:creator>anna_holland</dc:creator>
      <dc:date>2014-01-30T20:13:11Z</dc:date>
    </item>
  </channel>
</rss>

