Hello,
We are using PB 2019 R2 Build 2328 and have been dealing with an issue relating to execute stored procedure.
We are using the nvo like below:
nvo_sqlcadb_log DBapplogs
DBapplogs = CREATE nvo_sqlcadb_applogs
DECLARE addlog procedure for SP_Add_Log
@log = :ls_log
using DBapplogs.sqlcadb;
execute pbsp_update_log; ==> WE ARE GETTING NULL REFERENCE AT THIS LINE
If DBapplogs.sqlcadb.SQLCode = -1 then
// show error
end If
The constructor() event of the "nvo_sqlcadb_log" looks like below:
sqlcaDB = create transaction
Then set sqlca parameters ...
Since the issue "execute pbsp_update_log; ==> WE ARE GETTING NULL REFERENCE AT THIS LINE " happened , we've added a check for transaction "DBapplogs.sqlcadb" -> it showed this transaction is not valid . But it does not happen all time. ( this log is run all the time and every few days , the error "NULL REFERENCE AT "execute pbsp_update_log;" " happens )
Could you guys help me how to resolve this issue ?
Thank you very much!