Skip to Content
0
Dec 12, 2021 at 08:19 PM

MDK SAP Error: "The Query should have returned only one entity. It returned XX"

148 Views

Hi Experts.

I am trying to perform an upload of an entity, but the error is generated: "The Query should have returned only one entity. It returned XX". My key Field is Id.

{<br>    "_Type": "Action.Type.ODataService.UpdateEntity",<br>    "ActionResult": {<br>        "_Name": "result"<br>    },<br>    "OnFailure": "/MiticaMtto/Actions/Messages/MessageError.action",<br>    "ShowActivityIndicator": true,<br>    "Target": {<br>        "Service": "/MiticaMtto/Services/MiticaMovil.service",<br>        "EntitySet": "ListOrdenSet"<br>    },<br>    "Properties": {<br>        "Id": "#Page:IniciarOrden/#Control:fc_id_IniciarOrden/#Value",<br>        "Aufnr": "#Page:IniciarOrden/#Control:IniciarOrdenOrden/#Value",<br>        "Sttxu": "Ejecución"<br>    }<br>}