Symptom
User is using offline capability of Kapsel with a EDM.DateTime after method sap.OData.applyHttpClient(). Data is read and saved in a store the first time they run the application and processed succesfully. After closing the store and calling a new store (from a different service in a application), they try to read the same data again and are receiving the following error:
09-08 13:12:29.466: I/chromium(13600): [INFO:CONSOLE (1059)] "processMessage failed: Stack: RangeError: Invalid time value
09-08 13:12:29.466: I/chromium(13600): at Date.toISOString (native)
09-08 13:12:29.466: I/chromium(13600): at sap.ui.controller._stringToUTC (file:///android_asset/www/views/DispatchExecution/Main/DispatchExecutionMain.controller.js:111:23)
09-08 13:12:29.466: I/chromium(13600): at sap.ui.controller._processLoads
(file:///android_asset/www/views/DispatchExecution/Main/DispatchExecutionMain.controller.js:101:42)
09-08 13:12:29.466: I/chromium(13600): at sap.ui.controller._loadPlansSuccess
(file:///android_asset/www/views/DispatchExecution/Main/DispatchExecutionMain.controller.js:123:25)
09-08 13:12:29.466: I/chromium(13600): at p(file:///android_asset/www/resources/sap-ui-core.js:16:4269)
09-08 13:12:29.466: I/chromium(13600): at _(file:///android_asset/www/resources/sap/ui/core/library-preload.json/sap/ui/model/odata/ODataModel.js:6:17799)
09-08 13:12:29.466: I/chromium(13600): at eval (file:///android_asset/www/resources/sap/ui/core/library-reload.json/sap/ui/model/odata/ODataModel.js:6:35155)
09-08 13:12:29.466: I/chromium(13600): at eval(file:///android_asset/www/resources/sap/ui/thirdparty/datajs.js:17:12670)
09-08 13:12:29.466: I/chromium(13600): at successCallback(file:///android_asset/www/plugins/com.sap.mp.cordova.plugins.odata/www/OData.js:132:21)
09-08 13:12:29.466: I/chromium(13600): at Object.cordova.callbackFromNative(file:///android_asset/www/cordova.js:292:54)", source:file:///android_asset/www/cordova.js (1059)
They found that the error is occurring because date fields are being populated with different values (see attached file Data Comparison) fields are defined as:
<(><<)>Property Name="Date_Of_Creation" sap:filterable="false"
sap:sortable="false" sap:updatable="false" sap:creatable="false"
Type="Edm.DateTime" Precision="7"/>
Read more...
Environment
- SAP Mobile Platform Server 3.0 SP07
- SAP Mobile Platform SDK 3.0 SP08
- Kapsel
- Offline
Product
Keywords
- Kapsel
- Edm.DateTime
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.