// Job ID: #16641
using AG.A1.Scheduler.Billing.Contracts.Contracts;
var commitTimeEntriesTo3E = Activate<ICommitTimeEntriesTo3E>();
await commitTimeEntriesTo3E.Handle(
FromJson<CommitTimeEntriesTo3ERequest>("{\"CommitAll\":false,\"TimeEntryIds\":[17950473,17950395,17949934,17950488,17949808,17950706,10378938,17949630,17950615,17949787,17950207,17950823,17950699,17950032,17950444,17949746,17950103,17950748,17950434,17950163,17949883,17950868,17949738,17950129,17949842,17950711,17950638,17949918,17950356,17949613,17950057,7486506,17950515,17950441,17949730,17950183,17950052,6363798,17949885,17950802,17950561,17949689,17950783,17950009,17950132,17950852,17950887,17950138,17950673,17950398,4962817,17949904,17950318,17950856,17949652,17950324,17949811,17949612,17949966,17950383,17950581,17950026,17950276,17950074,17950763,17950354,17950090,17950220,17950048,17950072,17769544,17950498,17950284,17950506,17950118,9126073,17950152,17950848,17950674,17949967,17949823,17950392,17949676,17950773,17950596,14204192,17950300,17949865,17949702,17949615,17950557,17950423,17950445,17950563,17949724,17950427,17949699,17950014,17950753,17950322],\"UserId\":3964,\"UserFullName\":\"Katherine Pinto\",\"UserWindowsId\":\"AG\\kgpinto\",\"InputSource\":\"alliantONE\",\"SubmittedBy\":3964,\"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.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 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 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)