Hello,
PB 2022 B 1892
In one of my projects, ImportJSONByKey fails to import data when run from exe. The same JSON string imports successfully when run from the IDE. The command used to import JSON is
li_rc = ids_setup.ImportJSONByKey(ls_ret_json, ls_error)
If Trim(ls_error) <> '' Then MessageBox('Error', ls_error)
No error gets displayed and li_rc returns 0 [zero].
This issue is only when running from exe.
Verified:
1. That the runtime path points to the correct PB runtime folder.
2. Installed the runtime and application in another computer. The same issue.
3. Replacing ImportJSONByKey To ImportJSON(ls_ret_json) works successfully in both Exe mode and IDE mode.
4. Created a separate test project, with the same JSON string and datawindow. It imports successfully.
5. Tried importing one single record [original returns 20 records]. It also fails with ImportJSONByKey command.
Any idea how to debug this issue?
Happiness Always
BKR Sivaprakash
Update : Same JSON could be imported into a datawindow successfully. It fails when importing it into a datastore.