cancel
Showing results for 
Search instead for 
Did you mean: 

Unknown empty object in my app's store for one of my Entity Sets.

FranciscoSAP
Advisor
Advisor
0 Kudos

I recently noticed that a particular entity set in my project always has an unknown empty entity object in my offline store, even when it wasn't explicitly created nor fetched from the backend. This constitutes an issue when binding and displaying this entity because, naturally, it always displays this empty object in my controls as shown in this following screenshot:

I performed a read operation to my store from a debugging session to check the content of this particular entity, and this was the outcome:

So far I've tried:

  • Both having and not having the Entity Set included in my initialize offline action.
  • Clearing and re-initializing my offline store.
  • Both uninstalling and logging out to repeat the onboarding process to my app after having performed any of these previously mentioned tests.

Any ideas on why this might be happening and how to work around it?

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

franciscoo_a9475

Were you able to resolve your issue? If any of the below responses helped you, then please mark the helpful answer by accepting it OR post an answer so others might benefit from your findings and then close this discussion.

Regards,
Jitendra (SAP Community Moderator)

Accepted Solutions (0)

Answers (2)

Answers (2)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Have you tried fetching the Entity Set directly in the browser using the same query options used in your offline initialization to see if the backend is always returning that empty record?

FranciscoSAP
Advisor
Advisor
0 Kudos

Hi bill.froelich, yes I have and it does not return it. But the curious part is that the empty record is there in the store even when I remove the entity set from the initialization action and then clear and re-initialize the store all together.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

When you removed it from the initialize query did you logout (or uninstall / reinstall) the client to rebuild the offline db again from scratch?

FranciscoSAP
Advisor
Advisor
0 Kudos

I'll leave the entity's metadata here in case it helps:

<EntityType Name="NotificationHeader" sap:content-version="1">
                <Key>
                    <PropertyRef Name="NotificationID"/>
                </Key>
                <Property Name="Aufnr" Type="Edm.String" Nullable="false" MaxLength="12" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Ausbs" Type="Edm.String" Nullable="false" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Ausvn" Type="Edm.String" Nullable="false" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Auszt" Type="Edm.Decimal" Nullable="false" Precision="32" Scale="16" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Auztb" Type="Edm.String" Nullable="false" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Auztv" Type="Edm.String" Nullable="false" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Eqktx" Type="Edm.String" Nullable="false" MaxLength="40" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Equnr" Type="Edm.String" Nullable="false" MaxLength="18" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Fecod" Type="Edm.String" Nullable="false" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Fegrp" Type="Edm.String" Nullable="false" MaxLength="8" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Fetxt" Type="Edm.String" Nullable="false" MaxLength="40" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="IdTemp" Type="Edm.String" Nullable="false" MaxLength="50" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Iloan" Type="Edm.String" Nullable="false" MaxLength="12" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Ktext" Type="Edm.String" MaxLength="40" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Maueh" Type="Edm.String" Nullable="false" MaxLength="3" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Msaus" Type="Edm.Boolean" Nullable="false" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="NotificationID" Type="Edm.String" Nullable="false" MaxLength="12" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="NotificationIDAux" Type="Edm.String" Nullable="false" MaxLength="12" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Orderid" Type="Edm.String" Nullable="false" MaxLength="12" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Oteil" Type="Edm.String" Nullable="false" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Otgrp" Type="Edm.String" Nullable="false" MaxLength="8" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Pltxt" Type="Edm.String" Nullable="false" MaxLength="40" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Priok" Type="Edm.String" Nullable="false" MaxLength="1" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Priokx" Type="Edm.String" Nullable="false" MaxLength="20" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Qmart" Type="Edm.String" Nullable="false" MaxLength="2" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Qmartx" Type="Edm.String" Nullable="false" MaxLength="20" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Qmdat" Type="Edm.String" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Mzeit" Type="Edm.String" Nullable="false" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Qmnam" Type="Edm.String" Nullable="false" MaxLength="12" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Qmtxt" Type="Edm.String" Nullable="false" MaxLength="40" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Qmtxtlong" Type="Edm.String" Nullable="false" MaxLength="400" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Swerk" Type="Edm.String" Nullable="false" MaxLength="4" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="SysStatus" Type="Edm.String" Nullable="false" MaxLength="40" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Tplnr" Type="Edm.String" Nullable="false" MaxLength="40" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Urcod" Type="Edm.String" Nullable="false" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Urgrp" Type="Edm.String" Nullable="false" MaxLength="8" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="Urtxt" Type="Edm.String" Nullable="false" MaxLength="40" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <Property Name="TransactionID" Type="Edm.String" MaxLength="50" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false"/>
                <NavigationProperty Name="NotificationToMediaNav" Relationship="ZPM_ODATA_SRV.NotificationToMediaAsoc" FromRole="FromRole_NotificationToMediaAsoc" ToRole="ToRole_NotificationToMediaAsoc"/>
                <NavigationProperty Name="NotificationToEquipmentNav" Relationship="ZPM_ODATA_SRV.NotificationToEquipmentAsoc" FromRole="FromRole_NotificationToEquipmentAsoc" ToRole="ToRole_NotificationToEquipmentAsoc"/>
                <NavigationProperty Name="NotificationToMCNotifTypeNav" Relationship="ZPM_ODATA_SRV.NotificationToMCNotifTypeAsoc" FromRole="FromRole_NotificationToMCNotifTypeAsoc" ToRole="ToRole_NotificationToMCNotifTypeAsoc"/>
                <NavigationProperty Name="NotificationToNotificationPriorityNav" Relationship="ZPM_ODATA_SRV.NotificationToNotificationPriorityAsoc" FromRole="FromRole_NotificationToNotificationPriorityAsoc" ToRole="ToRole_NotificationToNotificationPriorityAsoc"/>
                <NavigationProperty Name="NotificationToMFunctLocationNav" Relationship="ZPM_ODATA_SRV.NotificationToMFunctLocationAsoc" FromRole="FromRole_NotificationToMFunctLocationAsoc" ToRole="ToRole_NotificationToMFunctLocationAsoc"/>
                <NavigationProperty Name="NotificationToMEquipmentNav" Relationship="ZPM_ODATA_SRV.NotificationToEquipmentAsoc" FromRole="FromRole_NotificationToEquipmentAsoc" ToRole="ToRole_NotificationToEquipmentAsoc"/>
                <NavigationProperty Name="NotificationToMObjectPartNav" Relationship="ZPM_ODATA_SRV.NotificationToMObjectPartAsoc" FromRole="FromRole_NotificationToMObjectPartAsoc" ToRole="ToRole_NotificationToMObjectPartAsoc"/>
                <NavigationProperty Name="NotificationToMCausesNav" Relationship="ZPM_ODATA_SRV.NotificationToMCausesAsoc" FromRole="FromRole_NotificationToMCausesAsoc" ToRole="ToRole_NotificationToMCausesAsoc"/>
                <NavigationProperty Name="NotificationToMDamageNav" Relationship="ZPM_ODATA_SRV.NotificationToMDamageAsoc" FromRole="FromRole_NotificationToMDamageAsoc" ToRole="ToRole_NotificationToMDamageAsoc"/>
            </EntityType>