ICommitTimeEntriesTo3E.Handle

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

var commitTimeEntriesTo3E = Activate<ICommitTimeEntriesTo3E>();
await commitTimeEntriesTo3E.Handle(
    FromJson<CommitTimeEntriesTo3ERequest>("{\"CommitAll\":false,\"TimeEntryIds\":[17986517,17985920,17986429,17986341,17985869,17985876,17986574,17986487,17986818,17986352,17986958,17985963,17986180,17986493,17986783,17986715,17986997,17986675,17985877,17986308,17987045,17986055,17986069,17985916,17986364,17986153,17986627,17986570,17986179,17986307,17986263,17985795,17986840,17986842,17986080,17985837,17986020,17986658,17986672,17987046,17986607,17986601,17986181,17986094,17986088,17986856,17986026,17986292,17986804,17985821,17986413,17985827,17986532,17986016,17986400,17985964,17986451,17985791,17985993,17986763,17985904,17986415,17986806,17986240,17985999,17986465,17986774,17986050,17986660,17986395,17986877,17986101,17986722,17986901,17986457,17986475,17986857,17986306,17986933,17985943,17986164,17986988,17986710,17986453,17986105,17986950,17986597,17986979,17985898,17986852,17986070,17986271,17986620,17986186,17986471,17986784,17986593,17986838,17985862,17986934],\"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.560s) 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)

+36ms Processing

Server:
wn0mdwk00012w:13164
Worker:
b8421e52

+7ms Enqueued

Queue:
a1-billing

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