data = JSON.stringify(DBjson)
SQLImport(data, DB, importComplete, NSB.overwriteAlmays)
If everything ok with the “data” then I can import and restore the database. But if “data” content error nothing happen and data not restore. My question is how do we catch the error?. By the way I am using the latest version 8.4.1.5 on Mac.
If the data error is in the JSON formatting, then the stringify will fail. You can catch that error with Try / Catch in javascript. I don’t use the Basic in AppStudio to suggest anything.