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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!

Data Gateway - Direct Access. Initial validation for ODBC crashes

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
NadiaB
Support
Support

Data Gateway - Direct Access. Initial validation for ODBC crashes

Last Update:

Nov 26, 2024 11:49:32 AM

Updated By:

NadiaB

Created date:

May 9, 2024 9:35:07 AM

When working with Data Gateway - Direct Access, odbc drivers can have unexpected behaviors that can lead to crashes. 

Note: For more information about how to enable dump file creation and Isolation capability for Data Gateway - Direct Access, please review the links included in the "Related Content" at the end of this article. 

One known reason to cause crashes is the use of malformed SQL query statement.  

Resolution

After configuring the dump file generation and Process Isolation, dump files will be created under the folder configured during the setup. 

Once a crash occurs the file will include the process id associated to the reload:

dotnet.exe.XXXXX.dmp

Where XXXX will be the process id. 

With that process id and looking for the date and time when the file was created, in the odbc connector log, is possible to find the ProcessId associated to the Id of the dump file and get the reload ID.

Once the reload id was identified, in order to get the query there are two options:

1. From the QMC get the reload script associated to the reload id to verify the query that was triggered.

2. Enable ODBC debug level in the configuration.properties located under C:\ProgramData\Qlik\Gateway\ folder

ODBC_LOG_LEVEL=DEBUG

The change requires restart of the DAG service. 

This will record in the odbc-connector logs the queries, it will be necessary to search for the reload id and the last "GetTableMetadata" recorded for the given reload, a sample of this entry in the logs would be:

2024-11-15 13:05:15,399 [ 11] [DEBUG] oracle ProcessId=10804 RequestId=bda86421-258b-4d42-868c-bd4108d97a51 ClientSessionId= ReloadId=6737b783fe0a7d476b7ebaf1 Message=gRPC - GetTableMetadata() call... SELECT * 
FROM ResidentialData

 

If the query is executed from a third party tool (outside of Qlik products) and doesn't work, the problem is a malformed SELECT statement. 

If the issue is not related to a malformed SELECT query, collect the dump file and contact Qlik Support for further analysis.

Cause 

Malformed SQL query statement.

Related Content 

Mitigating connector crashes during reload

How to collect dump files for the Qlik Data Gateway - Direct Access ODBC connector crashes.

Environment

  • Data Gateway - Direct Access 
Labels (1)
Contributors
Version history
Last update:
‎2024-11-26 11:49 AM
Updated by: