ICommitTimeEntriesTo3E.Handle

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

var commitTimeEntriesTo3E = Activate<ICommitTimeEntriesTo3E>();
await commitTimeEntriesTo3E.Handle(
    FromJson<CommitTimeEntriesTo3ERequest>("{\"CommitAll\":false,\"TimeEntryIds\":[17985835,17985912,17986645,17986684,17986438,17987042,17986348,17986498,17985820,17987037,17986761,17986797,17986324,17986724,17986629,17986542,17987006,17986321,17986303,17986511,17987032,17986337,17986174,17985817,17986108,17985977,17986793,17985990,17987059,17985992,17986085,17986500,17986655,17986588,17986512,17986890,17986497,17986059,17986139,17986828,17986619,17986525,17986018,17986329,17986367,17986008,17986716,17986540,17986757,17986747,17985991,17986923,17986224,17986401,17985971,17986699,17986878,17986686,17986528,17986407,17986920,17986198,17986311,17986220,17986633,17985885,17985884,17985932,17986285,17986994,17985939,17985803,17986014,17986436,17985785,17986849,17986368,17986274,17986766,17986711,17986665,17986228,17985796,17987005,17986714,17986095,17986718,17985844,17986420,17986926,17986555,17986092,17987054,17986613,17985897,17986676,17986027,17986210,17985841,17986946],\"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:45 PM (+32.580s) 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)

+40ms Processing

Server:
wn0mdwk00012w:13164
Worker:
63fcf372

+6ms Enqueued

Queue:
a1-billing

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