We are getting a 3158 error when trying to run an insert through a stored Proc

General
Enthusiast

We are getting a 3158 error when trying to run an insert through a stored Proc

We are trying to do an inserting into a table using a stored proc.

The procedure gets to the last step, throws a 3158 error and then dies.

I have tried looking up the 3158 error but the descirition is not that detailed. 

can anyone please shed some light on what exactly error this message relates to?

2 REPLIES
Junior Supporter

Re: We are getting a 3158 error when trying to run an insert through a stored Proc

Hi.

TDWM related. It seems your request is affected by some TASM rule.

HTH

Cheers.

Carlos.

Teradata Employee

Re: We are getting a 3158 error when trying to run an insert through a stored Proc

Adding to the Calos's point.. 

Check the WDName and FinalWDName in your DBQL log table, in case its different, session may get demoted or 

requalified to some other group or as in your case its dying then may be it gets impacted by a TASM rule being implied.