2024 Nov 06 2:11 PM - edited 2024 Nov 06 2:14 PM
Hello experts! Hope you all are doing well!
Today I would like to share a problem that I've been facing when I open my app and it starts to build offline odata for the first time.
I have a simple main page, with a contact table that retrieves an odata entity. The backend is working, I can retrieve the data from the url generated by Mobile Services cockpit.
However, it was not possible to client mobile services build the database and this is the error in client upload.
I appreciate any comments/thoughts/suggestions
Technical details:
Main error:
Error running action propagating error Action.Type.ODataService.Initialize.0: Error: [-10340] The download failed due to an error on the server: -857 (SERVER_SYNCHRONIZATION_ERROR) ([-10225] Message: User exception: [-100036] Failed to build the Offline OData client database.\n Error caused by: UltraLiteJ Error[-685]: Resource governor for 'parse stack' exceeded 2 4096\n Error caused by: UltraLiteJ Error[-685]: Resource governor for 'parse stack' exceeded 2 4096). : Error: [-10340] The download failed due to an error on the server: -857 (SERVER_SYNCHRONIZATION_ERROR) ([-10225] Message: User exception: [-100036] Failed to build the Offline OData client database.\n Error caused by: UltraLiteJ Error[-685]: Resource governor for 'parse stack' exceeded 2 4096\n Error caused by: UltraLiteJ Error[-685]: Resource governor for 'parse stack' exceeded 2 4096).\n at ODataServiceProvider.toJSError (file:///data/data/com.sap.mobileservices.client/files/app/vendor.js:2:2484347)\n at com.sap.cloud.mobile.odata.core.Action1.call (file:///data/data/com.sap.mobileservices.client/files/app/vendor.js:2:2489165)
InitializeOffline.action
main.page
Main.page
{
"Controls": [
{
"FilterFeedbackBar": {
"ShowAllFilters": false,
"_Type": "Control.Type.FilterFeedbackBar"
},
"_Type": "Control.Type.SectionedTable",
"_Name": "SectionedTable0",
"Sections": [
{
"_Type": "Section.Type.ContactCell",
"Target": {
"Service": "/SF1/Services/SF1.service",
"EntitySet": "cust_Cursos"
},
"_Name": "SectionContactCell0",
"Visible": true,
"EmptySection": {
"FooterVisible": false
},
"Separators": {
"TopSectionSeparator": false,
"BottomSectionSeparator": true,
"HeaderSeparator": true,
"FooterSeparator": true,
"ControlSeparator": true
},
"ContactCell": {
"Visible": true,
"ContextMenu": {
"PerformFirstActionWithFullSwipe": true
},
"DetailImage": "res://contact.png",
"Headline": "Headline",
"Subheadline": "Subheadline",
"Description": "Description"
},
"DataPaging": {
"ShowLoadingIndicator": false,
"PageSize": 50
}
}
]
}
],
"_Type": "Page",
"_Name": "Main",
"Caption": "Main",
"PrefersLargeCaption": true,
"ActionBar": {
"Items": [
{
"_Name": "ActionBarItem0",
"Caption": "User Menu",
"Icon": "sap-icon://customer",
"Position": "Right",
"IsIconCircular": false,
"Visible": true,
"OnPress": "/SF1/Actions/Application/UserMenuPopover.action"
}
],
"_Name": "ActionBar1"
}
}
InitializeOffline.action
{
"_Type": "Action.Type.ODataService.Initialize",
"ActionResult": {
"_Name": "init"
},
"OnFailure": "/SF1/Actions/SF1/Service/InitializeOfflineFailureMessage.action",
"ShowActivityIndicator": true,
"ActivityIndicatorText": "Downloading...",
"Service": "/SF1/Services/SF1.service",
"DefiningRequests": [
{
"Name": "cust_Cursos",
"Query": "cust_Cursos"
}
]
}
DownloadOffline.action
{
"_Type": "Action.Type.OfflineOData.Download",
"ActionResult": {
"_Name": "sync"
},
"OnFailure": "/SF1/Actions/SF1/Service/SyncFailureMessage.action",
"OnSuccess": "/SF1/Rules/SF1/ErrorArchive_CheckForSyncError.js",
"Service": "/SF1/Services/SF1.service",
"DefiningRequests": [
{
"Name": "cust_Cursos",
"Query": "cust_Cursos"
}
]
}
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Let me bring an important information.
The backend metadata is pretty big, with a lot of entities. But I would like to use only one, which is cust_Cursos. In fact I'll need 6 entities, but I'm starting with only one.
I have tried with full metadata and modified metadata (only with cust_Cursos entity information). It hasn't worked.
I hope this information helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
41 | |
15 | |
10 | |
9 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.