All Forums Database
saspert 2 posts Joined 10/11
29 Nov 2012
SQL Error

I am running a sql query using SAS EG. It is essentially an explicit sql query that is wrapped within sas commands that make it run on the teradata engine. I need help resolving this error.
NOTE: There were 144405 observations read from the data set XXX.MCID_TMP.
NOTE: The data set XXX.MCID_TMP has 144405 observations and 1 variables.
NOTE: There were 12 observations read from the data set WORK.ZIP_LIST.
NOTE: The data set XXX.ZIPFL has 12 observations and 2 variables.
ERROR: Teradata row not delivered (trget): The format or data contains a bad character.
The entire sql query runs into 40-50 lines - so not sure if I should post the entire query. How do I troubleshoot this query?

Qaisar Kiani 337 posts Joined 11/05
29 Nov 2012

Normally you get this type of error when you are casting a column into non-compatible data types e.g. casting char data into integer or something like that.
But without looking at the query it gets difficult to pin point what exactly is wrong.

Duri83 17 posts Joined 01/12
29 Nov 2012

If you have DBQL enabled, you can troubleshoot it yourself, look into dbc.dbqlogtbl, dbc.dbqlexplaintbl and dbc.dbqlsteptbl and search for your query. From the explain and steptbl you can determine in what operation the error occured and such you could get an idea where is the problem.

You must sign in to leave a comment.