BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
imdickson
Quartz | Level 8

Dear everyone.

 

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.

 

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 :

 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.

Here is the screenshot of the table loader mapping:

table loader mapping.PNG

 

ID is not mapped as it is set to identity column in MS SQL.

I have tried to switch the option of SQL Pass thru to on and off and im still getting this same error.

 

Do take note that I do not map to the ID column in any way. 

 

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.

 

 

I would like to thanks everyone here for reading my post and hopefully this problem will be resolved soon.

1 ACCEPTED SOLUTION

Accepted Solutions
LinusH
Tourmaline | Level 20

I think that there have been a couple of threads with similar issues.

As I recall it I have solved this by setting the option IGNORE_READ_ONLY_COLUMNS=YES (works both as a libname and as a data set option).

Data never sleeps

View solution in original post

2 REPLIES 2
LinusH
Tourmaline | Level 20

I think that there have been a couple of threads with similar issues.

As I recall it I have solved this by setting the option IGNORE_READ_ONLY_COLUMNS=YES (works both as a libname and as a data set option).

Data never sleeps
imdickson
Quartz | Level 8
Added that statement in the library configuration. Thanks alot

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1978 views
  • 0 likes
  • 2 in conversation