cancel
Showing results for 
Search instead for 
Did you mean: 

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

sapwolf
Explorer
0 Kudos

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>}

Accepted Solutions (1)

Accepted Solutions (1)

fjcarrasco
Active Participant
0 Kudos

Hello sapwolf

You are using the action type for update an entity and you aren't using the "Query" property to specify the entity you want to update.Regards,Kiko
sapwolf
Explorer
0 Kudos

Hello Francisco José Carrasco Valverde

Thanks for you answer. I don't understad, the entity is specify in parameter entityset, I don't observe any other parameter where the entity is specified..

Thanks.

sapwolf
Explorer
0 Kudos

Thanks Francisco, in this case, another error occurs.

bill_froelich
Product and Topic Expert
Product and Topic Expert

I would guess that your read link points to QrEquipo instead of ListOrederSet.

sapwolf
Explorer
0 Kudos

Hi,

Thanks bill.froelich and fjcarrasco, so solve this situation.

Answers (0)