‎2021 Jun 09 1:44 PM
Hi,
Can anyone help to fix the following issue.
I am getting "undefined entity type exception" when i try to fetch data from offline odata. Write operation is is working properly.
com.sap.cloud.mobile.odata.json.JsonException; Caused by: com.sap.cloud.mobile.odata.core.UndefinedException: Undefined entity type: mm_my_service_srv.Customer.
Entity set Name : Customers
Entity Type :Customer
This issue occurs when there is records in the Entity and after declaring Entity in OfflineODataProvider as "addDefiningQuery("Customers","Customers",false)
If i remove AddDefiningQuery("Customers","Customers",false) then it returns empty result. Please Help.
Thanks in advance.
‎2021 Jun 09 11:17 PM
A full stack trace would help, and the metadata (at least the "Schema" element showing the Namespace attribute) and the EntityType definition.