ICommitTimeEntriesTo3E.Handle

// Job ID: #21749
using AG.A1.Scheduler.Billing.Contracts.Contracts;

var commitTimeEntriesTo3E = Activate<ICommitTimeEntriesTo3E>();
await commitTimeEntriesTo3E.Handle(
    FromJson<CommitTimeEntriesTo3ERequest>("{\"CommitAll\":false,\"TimeEntryIds\":[17985918,17986491,17986373,17986648,17986145,17985926,17985946,17986551,17986647,17985845,17986431,17986412,17986383,17987034,17986257,17987021,17986521,17986981,17986572,17986667,17986110,17985981,17986780,17986494,17985800,17985880,17985883,17986129,17986846,17985913,17986111,17986749,17985797,17986369,17986505,17986195,17986596,17986046,17986694,17986638,17986192,17986563,17986406,17986357,17986463,17986737,17985989,17986478,17986011,17986881,17986731,17986425,17986803,17985895,17986397,17987053,17986951,17986776,17986252,17987056,17986961,17986592,17986246,17986053,17985765,17986866,17987025,17986700,17986249,17986218,17986355,17985823,17985802,17986900,17986830,17986762,17986255,17986414,17985952,17986545,17985929,17986835,17986577,17986771,17986740,17985983,17986472,17986143,17986905,17985826,17986156,17986009,17985833,17986244,17986152,17986848,17986954,17986086,17986735,17985861],\"UserId\":3964,\"UserFullName\":\"Katherine Pinto\",\"UserWindowsId\":\"AG\\kgpinto\",\"InputSource\":\"alliantONE\",\"SubmittedBy\":3964,\"IsAGTalent\":false}"),
    null,
    null);

Parameters

CurrentCulture
"en-US"
CurrentUICulture
"en-US"

State

7/25/2023 9:21:46 PM (+33.527s) Failed

An exception occurred during performance of the job.

Newtonsoft.Json.JsonSerializationException

Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[AG.A1.Core.Models.Billings.BillingTotalTimeUnitModel]' 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.Core.Models.Billings.BillingTotalTimeUnitModel]' 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.GetTotalTimeUnitsForDate(IEnumerable`1 projectDetailRequests) in C:\agent\_work\1\s\A1Solution\src-integrations\AG.Integrations.RESTClients\BillingApiREST\BillingControllers\BillingA1ApiClientController.cs:line 119
   at AG.A1.Scheduler.Billing.Application.Features.CommitTimeTo3E.Commands.CommitTimeEntryTo3ECommandHandler.GetTotalTimeUnitsForDate(IEnumerable`1 timeEntries, Int32 userId) in C:\agent\_work\1\s\A1Solution\src-schedulers\AG.A1.Scheduler.Billing.Application\Features\CommitTimeTo3E\Commands\CommitTimeEntryTo3ECommandHandler.cs:line 810
   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 138
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

+80ms Processing

Server:
wn0mdwk00012w:13164
Worker:
9f56c393

+7ms Enqueued

Queue:
a1-billing

7/25/2023 9:21:13 PM Created