on 2021 Dec 12 8:19 PM
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>}
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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,KikoYou must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I meant QueryOptions, or the Readlink.

I would guess that your read link points to QrEquipo instead of ListOrederSet.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.