Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Riya07
Contributor II
Contributor II

Complete ODBC error Message which we get when we run the SQL query

Hi,

 

Would need your help in displaying the complete error Message which i get if data is not found

In my code, my errorMode is set to 0

and then ScriptError just gives the generic error like File Has Wrong Format. i have ScriptErrorDetails and ScriptErrorList also specified in my code to capture the complete database error but they are returned as null

 

Is there a way, we can get the complete error message from DB.

 

1 Reply
mpc
Partner Ambassador
Partner Ambassador

Hi, 

Since setErrorMode = 0, you'll note have this info. without scripting. 
Maybe you can try something like this:

if ScriptError=3 then

setErrorMode = 0;

//Retry your SQL Query

end if

It should display the full ODBC error

Regards

mpc