// Job ID: #156328
using AG.A1.Scheduler.Billing.Contracts.Contracts;
var commitTimeEntriesTo3E = Activate<ICommitTimeEntriesTo3E>();
await commitTimeEntriesTo3E.Handle(
FromJson<CommitTimeEntriesTo3ERequest>("{\"CommitAll\":false,\"TimeEntryIds\":[19124317,19124318,19124319,19124320,19124321,19124322,19124323,19124324,19124325,19124326,19124327,19124308,19124309,19124310,19124311,19124312,19124313,19124314,19124315,19124316,19124328,19124329,19124331,19124332,19124333,19124334,19124335,19124295,19124296,19124297,19124298,19124299,19124300,19124301,19124302,19124303,19124304,19124305,19124306,19124307,19124336,19124337,19124339,19124340,19124341,19124342,19124343,19124352,19124353,19124355,19124356,19124357,19124358,19124359,19124344,19124345,19124347,19124348,19124349,19124350,19124351],\"UserId\":545,\"UserFullName\":\"Antranik Dajadian\",\"UserWindowsId\":\"AG\\adajadian\",\"InputSource\":\"alliantONE\",\"SubmittedBy\":545,\"IsAGTalent\":false}"),
null,
null);
| CurrentCulture | |
| CurrentUICulture | |
An exception occurred during performance of the job.
Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[AG.A1.Application.Contracts.DTO.Billings.TimeEntryDto]' 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<T>) 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 'result', line 1, position 10.
Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[AG.A1.Application.Contracts.DTO.Billings.TimeEntryDto]' 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<T>) 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 'result', line 1, position 10.
at AG.A1.Framework.Rest.RESTClient.HandleResponse[T](RestResponse restResponse) in C:\agent\_work\1\s\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 354
at AG.A1.Framework.Rest.RESTClient.ExecutePOSTAsync[T](IRESTEndpoint apiEndpoint, IDictionary`2 headers, IDictionary`2 bodyParameters, IDictionary`2 urlParameters) in C:\agent\_work\1\s\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 251
at AG.Integrations.RESTClients.BillingApiREST.BillingControllers.BillingA1ApiClientController.GetListByUserIdAndIds(CommitTimeEntryListWithUserIdRequestDto requestModel) in C:\agent\_work\1\s\A1Solution\src-integrations\AG.Integrations.RESTClients\BillingApiREST\BillingControllers\BillingA1ApiClientController.cs:line 30
at AG.A1.Scheduler.Billing.Application.Features.CommitTimeTo3E.Commands.CommitTimeEntryTo3ECommandHandler.Handle(CommitTimeEntriesTo3ERequest request, CancellationToken cancellationToken, PerformContext performContext) in C:\agent\_work\1\s\A1Solution\src-schedulers\AG.A1.Scheduler.Billing.Application\Features\CommitTimeTo3E\Commands\CommitTimeEntryTo3ECommandHandler.cs:line 68
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)