cancel
Showing results for 
Search instead for 
Did you mean: 

@odata createdAt Null values

damovand
Product and Topic Expert
Product and Topic Expert
0 Kudos

Following Create an SAP Fiori Elements-Based UI | Tutorials for SAP Developers the Fiori list page was missing several data items. The root cause is missing data items. In the following I found null data for createdAT and incorrect data for modifiedAt which seems to have shifted all values. The $metadata is correct, just not the values that should be coming from some oData library! Any ideas what might be the root cause?

{"@odata.context":"$metadata#Risks","value":[
{"createdAt":null,"createdBy":"SYSTEM","modifiedAt":"-4685-04-12T12:00:00.000Z","modifiedBy":"2023-08-08T13:30:01.521Z","ID":"20466922-7d57-4e76-b14c-e53fd97dcb11","title":"CFR non-compliance","prio":"3","descr":"Recent restructuring might violate CFR code 71","miti_ID":null,"impact":"20466921-7d57-4e76-b14c-e53fd97dcb11","criticality":null,"HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":true},
{"createdAt":null,"createdBy":"SYSTEM","modifiedAt":"-4466-04-24T12:00:00.000Z","modifiedBy":"2023-08-08T13:30:01.521Z","ID":"20466922-7d57-4e76-b14c-e53fd97dcb12","title":"SLA violation with possible termination cause","prio":"2","descr":"Repeated SAL violation on service delivery for two successive quarters","miti_ID":null,"impact":"20466921-7d57-4e76-b14c-e53fd97dcb12","criticality":null,"HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":true},
{"createdAt":null,"createdBy":"SYSTEM","modifiedAt":"-4165-06-25T12:00:00.000Z","modifiedBy":"2023-08-08T13:30:01.521Z","ID":"20466922-7d57-4e76-b14c-e53fd97dcb13","title":"Shipment violating export control","prio":"1","descr":"Violation of export and trade control with unauthorized downloads","miti_ID":null,"impact":"20466921-7d57-4e76-b14c-e53fd97dcb13","criticality":null,"HasActiveEntity":false,"HasDraftEntity":false,"IsActiveEntity":true}]}
<EntityType Name="Risks">
<Key>
<PropertyRef Name="ID"/>
<PropertyRef Name="IsActiveEntity"/>
</Key>
<Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
<Property Name="createdBy" Type="Edm.String" MaxLength="255"/>
<Property Name="modifiedAt" Type="Edm.DateTimeOffset" Precision="7"/>
<Property Name="modifiedBy" Type="Edm.String" MaxLength="255"/>
<Property Name="ID" Type="Edm.Guid" Nullable="false"/>
<Property Name="title" Type="Edm.String" MaxLength="100"/>
<Property Name="owner" Type="Edm.String"/>
<Property Name="prio" Type="Edm.String" MaxLength="5"/>
<Property Name="descr" Type="Edm.String"/>
<NavigationProperty Name="miti" Type="RiskService.Mitigations" Partner="risks">
<ReferentialConstraint Property="miti_ID" ReferencedProperty="ID"/>
</NavigationProperty>
<Property Name="miti_ID" Type="Edm.Guid"/>
<Property Name="impact" Type="Edm.Int32"/>
<Property Name="criticality" Type="Edm.Int32"/>
<Property Name="IsActiveEntity" Type="Edm.Boolean" Nullable="false" DefaultValue="true"/>
<Property Name="HasActiveEntity" Type="Edm.Boolean" Nullable="false" DefaultValue="false"/>
<Property Name="HasDraftEntity" Type="Edm.Boolean" Nullable="false" DefaultValue="false"/>
<NavigationProperty Name="DraftAdministrativeData" Type="RiskService.DraftAdministrativeData" ContainsTarget="true"/>
<NavigationProperty Name="SiblingEntity" Type="RiskService.Risks"/>
</EntityType><br>

Accepted Solutions (0)

Answers (0)