Hi,
When running an MS SQL Query, I get this error when the stored procedure of SQL does not return any dataset. The stored procedure only runs a query and has no select at the end. This is intended, it needs no output !
Then I get the error:
Exception: Linenr. 61 - WL call: Process of 'Method Call' (soSQL.Call), line 61, thread 0 'HReadFirst' function, syntax 3 What happened? System error handling threads. System error handling threads. The <clConfirmKey#m_dsResults> data source is not initialized. - If it is a data file, the file was not found in the <C:\Projects\DomusAdmin\DA-Sync\DA-Sync.wdd> analysis or it was not described by HDeclare/HDeclareExternal. - If it is a query or a view, the execution may have failed. To retrieve the corresponding error, check the result of HExecuteQuery/HExecuteSQLQuery/HCreateView. Error code: 2901 Level: fatal error WD55 error code: 18 System error code: 8 System error message: Not enough storage is available to process this command. Dump of the error of 'wd220vm.dll' module
This is a general class that is used to call any kind of stored procedure, returning data or not. in WD21, this was functioning correctly !
The code I use to call the SQL is:
The error is at the HREADFIRST
Is there a way to detect that the data source is not initialized and skip the READFIRST ?
The error is cached in the WHEN EXCEPTION block, but itw only a matter of time before the Windows service just stops ! And always with this error as the latest in my log.
Any suggestions ?
Thanks
Danny
When running an MS SQL Query, I get this error when the stored procedure of SQL does not return any dataset. The stored procedure only runs a query and has no select at the end. This is intended, it needs no output !
Then I get the error:
Exception: Linenr. 61 - WL call: Process of 'Method Call' (soSQL.Call), line 61, thread 0 'HReadFirst' function, syntax 3 What happened? System error handling threads. System error handling threads. The <clConfirmKey#m_dsResults> data source is not initialized. - If it is a data file, the file was not found in the <C:\Projects\DomusAdmin\DA-Sync\DA-Sync.wdd> analysis or it was not described by HDeclare/HDeclareExternal. - If it is a query or a view, the execution may have failed. To retrieve the corresponding error, check the result of HExecuteQuery/HExecuteSQLQuery/HCreateView. Error code: 2901 Level: fatal error WD55 error code: 18 System error code: 8 System error message: Not enough storage is available to process this command. Dump of the error of 'wd220vm.dll' module
This is a general class that is used to call any kind of stored procedure, returning data or not. in WD21, this was functioning correctly !
The code I use to call the SQL is:
bRunResult = HExecuteSQLQuery(m_dsResults,pCon,hQueryWithoutCorrection,m_SQLCommand) if bRunResult then IF HReadFirst(m_dsResults) THEN m_NumberOfRecords = GetNumberOfRecords(m_dsResults) END ... The rest of the code
The error is at the HREADFIRST
Is there a way to detect that the data source is not initialized and skip the READFIRST ?
The error is cached in the WHEN EXCEPTION block, but itw only a matter of time before the Windows service just stops ! And always with this error as the latest in my log.
Any suggestions ?
Thanks
Danny