Developer

Finding Entities or Links in the Error State

There are two methods for locating entities or links that are in the error state.

sap.inerrorstate() method

A custom $filter method called sap.inerrorstate() can be used on read requests against the Offline Store. Using this method filters for only entities and links that are in the error state. For example,

GET /Customers?$filter=sap.inerrorstate()
GET /Customers/$links/Orders?$filter=sap.inerrorstate()

AffectedEntity navigation property

A new navigation property called AffectedEntity is available on each entry in the ErrorArchive. This navigation property links to the entity affected by the corresponding failed request. For example,

GET /ErrorArchive(1L)/AffectedEntity
The navigation property is read-only and cannot be used to modify the affected entities directly. For example, the following request will fail:
PUT ErrorArchive(1L)/AffectedEntity
The AffectedEntity navigation property cannot be expanded using the $expand query parameter. For example, the following request will fail:
GET /ErrorArchive?$expand=AffectedEntity