Forum Discussion
In the copy activity RestMoreThanOneObjectsReturned Issue.
In the ADF copy activity i am using the TraceGains API that return the data directly in the top level array collection of json like -
[
{
"id": xxx,
"supplierId": 1,
"supplierHid": "c",
"supplierName": "c",
"itemId": 3648,
"itemHid": "h",
"itemName": "j",
"idCoa": "1",
"idSupplierAudit": "",
"action": 1,
"status": 0,
"attributes": [
{
"id": 42,
"hid": "CAR 1",
"value": "False"
I want to implement the pagination in the copy activity then i am getting the error below
Operation on target Copy data1 failed: Failure happened on 'Source' side. ErrorCode=RestMoreThanOneObjectsReturned,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=More than one object returned.\r\n'System.Collections.Generic.List`1[Newtonsoft.Json.Linq.JObject]',Source=Microsoft.DataTransfer.ClientLibrary,'
How i can use this so that i can use the copy activity for the pagination.