ICommitTimeEntriesTo3E.Handle

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

var commitTimeEntriesTo3E = Activate<ICommitTimeEntriesTo3E>();
await commitTimeEntriesTo3E.Handle(
    FromJson<CommitTimeEntriesTo3ERequest>("{\"CommitAll\":false,\"TimeEntryIds\":[17947826,17948263,17948264,17948265,17948266,17948267,17948268,17948269,17948270,17947512,17948271,17948272,17948273,17948274,17948275,17948276,17948277,17948278,17947983,17947669,17948140,17947402,17947873,17947559,17948030,17947716,17948187,17947388,17947859,17947545,17948016,17947702,17948173,17947315,17947316,17947786,17947787,17947472,17947473,17947943,17947944,17947629,17947630,17948100,17948101,17947272,17947743,17947429,17947900,17947586,17948057,17947391,17947862,17947548,17948019,17947705,17948176,17947298,17947299,17947769,17947770,17947455,17947456,17947926,17947927,17947612,17947613,17948083,17948084,17947370,17947841,17947527,17947998,17947684,17948155,17947296,17947297,17947767,17947768,17947453,17947454,17947924,17947925,17947610,17947611,17948081,17948082,17947346,17947817,17947503,17947974,17947660,17948131,17947356,17947827,17947513,17947984,17947670,17948141],\"UserId\":6069,\"UserFullName\":\"Sameer Sheikh\",\"UserWindowsId\":\"AG\\ssheikh\",\"InputSource\":\"alliantONE\",\"SubmittedBy\":6069,\"IsAGTalent\":false}"),
    null,
    null);

Parameters

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

State

7/21/2023 6:27:59 PM (+32.693s) 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 318
   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 215
   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 117
   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 930
   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 136
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

+114ms Processing

Server:
wn1mdwk0000yr:980
Worker:
84922a99

+6ms Enqueued

Queue:
a1-billing

7/21/2023 6:27:27 PM Created