Skip to Content
0
Jan 28, 2020 at 08:01 PM

How TO Delete Error Archive Entityset in MDK

147 Views Last edit Jan 28, 2020 at 01:26 PM 3 rev

Hi Everyone,

I am trying to delete Error Archive entityset after getting errors from backend.

for that I am trying to delete whole entityset but it is not working. Create failed is coming.

below are the steps which I am following:

1.In Error Archive Page I have added button for deleting whole entityset :

2. ON Onpress event I am using Trash as system item and it is calling ErrorArchiveDelete.action file which are as follows:

{

"OnFailure": "/SAPAssetManager/Actions/CreateUpdateDelete/DeleteEntityFailureMessage.action",

"OnSuccess": "/SAPAssetManager/Actions/CreateUpdateDelete/DeleteEntitySuccessMessage.action",

"Target": {

"EntitySet": "ErrorArchive",

"QueryOptions": "$filter=HTTPStatusCode eq 400&$orderby=RequestBody",

"ReadLink": "",

"Service": "/SAPAssetManager/Services/AssetManager.service"

},

"_Type": "Action.Type.ODataService.DeleteEntity"

}

But after this it is calling Onfailure event I don’t know why it is calling .

Please anyone can help me on this. It should delete/clear whole errorArchive Entityset.

Thanks.

neha

Attachments

aaa.jpg (63.5 kB)