Hello i am getting this strange error upon desilirization, it worked before and i get 200 from the server so the response its all good. But for some reason uipath has decided to fail me upon this on some random occation. Yes the input its string and output its jsonobject. typeargument its newsoft.json.linq.jobject
this its the error
Deserialize JSON: Cannot deserialize the current JSON object (e.g. {“name”:“value”}) into type ‘Newtonsoft.Json.Linq.JToken’ because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path ‘insuranceCase.id’, line 1, position 23.
“{"insuranceCase":{"id":"60eb3086c1f95700011a047b","caseNumber":"BS105410","vehicle":{"vehicleLicenseNumber":"EV78049","brandName":"TESLA","model":"Model X","firstRegistered":"2019-06-24T00:00:00","vehicleType":"PERSONBIL","vin":"5YJXCCE20KF146601","color":null,"vehicleGroupType":null,"isCommercialVan":true,"vehicleGroupTypeName":null},"legalOwner":{"name":"Håndverkskompaniet AS","phoneNumber":null,"address":"Brobekkveien 115 B","postalCode":"0582","postalArea":"Oslo","email":null,"organizationNumber":null,"externalReference":null},"caseWorker":{"name":"Hurtigruta Carglass","id":"5e82f456870c460001377477","organizationName":"CARGLASS AS","caseWorkerRole":"Workshop"},"status":"Draft","dateOfIncident":"2021-04-23T09:44:03.082Z","placeOfIncident":null,"cause":null,"mileage":0,"mileageUnit":null,"jobType":"Windshield","contactPerson":"Håndverkskompaniet AS","contact":{"name":"Håndverkskompaniet AS","phoneNumber":null,"address":null,"postalCode":null,"postalArea":null,"email":null,"organizationNumber":null,"externalReference":null},"requiresVAT":false,"registrationDate":"2021-07-11T17:55:18.1013525+00:00","caseDeductible":2000.0,"caseDeductibleCurrency":"NOK","deductiblePercentage":0.0,"isDeductiblePercentage":false,"minDeductible":0.0,"workshop":{"name":"CARGLASS AS","organizationNumber":"985 758 220","organizationId":"5df8c1074d65550001e8d6df","organizationMembership":{"organizationNumber":"985 758 220","organizationId":"59f17f2e975dec0001479e03","name":"CARGLASS AS","organizationType":"Organization"}},"insuranceInformation":{"id":null,"insuranceOwner":{"name":"Håndverkskompaniet AS","phoneNumber":null,"address":"Brobekkveien 115 B","postalCode":"0582","postalArea":"OSLO","email":null,"organizationNumber":"969030357","externalReference":null},"insuranceProvider":{"id":"59e73a8f56717ef6dd196dfd","name":"Codan Forsikring","organizationNumber":"991 502 491","key":"CODAN","settings":{"personalGlassDeductible":2000.0,"personalGlassDeductibleCurrency":"NOK","commercialGlassDeductible":0,"commercialGlassDeductibleCurrency":"NOK"},"coverageResponseId":1},"policyNumber":"489139","coverage":{"coverageLevel":null,"deductible":2000.0,"deductibleCurrency":"NOK","hasGlassCoverage":true},"insuranceObjectIdentifier":"EV78049","insuranceStart":"0001-01-01T00:00:00","insuranceEnd":"0001-01-01T00:00:00","customerCategory":"Commercial","insuranceProduct":null},"actionLog":[{"id":"60eb3086c1f95700011a047a","entryTime":"2021-07-11T17:55:18.1013552+00:00","action":"Register","performedBy":{"name":"Hurtigruta Carglass","id":"5e82f456870c460001377477","organizationName":"CARGLASS AS","caseWorkerRole":"Workshop"},"data":null}],"images":,"attachments":,"orderLines":,"orderLineProposedChanges":,"caseManagerNotes":null,"adasInformation":null,"lastModified":"2021-07-11T17:55:18.1013552+00:00","invoice":null,"wear":0,"tradeIn":false,"lastCaseManager":null,"isDeductibleConfirmed":false,"coverageStatus":"Approved","imagesStatus":"MustBeChecked","orderStatus":"MustBeChecked","invoiceStatus":"MustBeChecked","isCaseFromIRIS":false,"coverageId":79680,"isBisnodeData":false},"legalActions":["SetCaseDetails","AddAttachment","AddOrderLine","DeleteOrderLine","UpdateOrderLine","DeleteCase","UpdateStatus","RejectProposedOrderLineChange","AcceptProposedOrderLineChange","AddComment","UpdateLegalOwner","UpdateInsuranceInformation","DeleteAttachment","UpdateVehicleInformation","UpdateInvoice","RetractApproved","UpdateImage","DeleteImage","AddPredefinedImage","AddImage","DeletePredefinedImage","UpdateRequiresVAT"],"legalTransitions":["ReadyForApproval","RejectedArchived"]}”