I am making a GET call to the API to retrieve data, which works fine, but when I try to push to another API, I am getting an error.
`Failure happened on ‘Sink’ side. ErrorCode=RestCallFailedWithClientError,’Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Rest call failed with client error, status code 400 BadRequest, please check your activity settings.
Request URL: https://192.168.202.184/Unit4ERP-web-api/v1/employees.
Response: {“code”:1010,”message”:”Cannot deserialize the current JSON array (e.g. [1,2,3]) into type ‘Agresso.HRMS.Employee.PublicApi.Web.Http.Dto.Employee.EmployeeDto’ because the type requires a JSON object (e.g. {“name”:”value”}) to deserialize correctly.rnTo fix this error either change the JSON to a JSON object (e.g. {“name”:”value”}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.rnPath ”, line 1, position 1.rn”},Source=Microsoft.DataTransfer.ClientLibrary,
I am using the copy activity to push the data, and I need to use only the copy activity.
Please let me know where I am going wrong, as this is my first time working on this.
here is the file which i need to Push
Load File