Skip to Content
0
Mar 01, 2021 at 05:19 PM

MDK Offline Model - error data initialize Reason: -840 (BAD_ENCRYPTION_KEY)

120 Views Last edit Mar 01, 2021 at 05:33 PM 2 rev

Hi MDK- Expert,

We Using MDK- Offline Model in our APP. From time to time we get failure with error Reason: -840 (BAD_ENCRYPTION_KEY)

After that is not possible to use this offline model anymore. Even restart of devices without effect. This does not happen on all devices at the same time and i can't see any rhythm for this behavior. Only deleting the MDK- client (app) and reinstalling solves this error.

We have a few hundred devices in use. It is not possible to remove and reinstall these APPs again and again. Do you have any idea what the reason for this behavior is and how it can be solved?

thank you very much,

+robert

mdk.trace.action: Error running action propagating error Action.Type.OfflineOData.Initialize.1: Error: [-10005] An error occurred connecting to the database using connection string "UID=dba;PWD="sql";DBKEY="tw7sP/HnpYtWSd23UNOdu+HWSW94PqI+TbvaeXCwA/g=";DBF="/storage/emulated/0/Android/data/app.dev.mde.device/files/PMDE001.udb"".  Reason: -840 (BAD_ENCRYPTION_KEY) : Error: [-10005] An error occurred connecting to the database using connection string "UID=dba;PWD="sql";DBKEY="tw7sP/HnpYtWSd23UNOdu+HWSW94PqI+TbvaeXCwA/g=";DBF="/storage/emulated/0/Android/data/ap.dev.mde.device/files/P_MDE001.udb"".  Reason: -840 (BAD_ENCRYPTION_KEY)
JS:     at Function.ODataServiceProvider.toJSError (file:///data/data/app.dev.mde.device/files/app/tns_modules/mdk-sap/OData/ODataServiceProvider.js:71:27)
JS:     at Object.call (file:///data/data/app.dev.mde.device/files/app/tns_modules/mdk-sap/OData/ODataServiceProvider.js:238:57

(error log, android - mdk client 5.1 )