on 02-24-2021 8:08 PM
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:
Any ideas on why this might be happening and how to work around it?
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.