// Job ID: #21747
using AG.A1.Scheduler.Billing.Contracts.Contracts;
var commitTimeEntriesTo3E = Activate<ICommitTimeEntriesTo3E>();
await commitTimeEntriesTo3E.Handle(
FromJson<CommitTimeEntriesTo3ERequest>("{\"CommitAll\":false,\"TimeEntryIds\":[17986410,17985891,17986034,17986247,17986243,17986702,17986966,17986906,17986211,17986879,17985864,17986642,17986507,17986908,17986201,17986169,17986788,17986680,17986002,17986959,17986320,17986847,17986957,17986202,17986730,17986340,17985881,17986366,17986231,17986825,17985970,17986931,17986171,17986408,17986335,17986113,17986899,17986603,17986968,17986942,17987061,17986402,17986481,17985857,17986898,17987044,17986184,17986052,17986752,17986980,17986363,17985892,17986543,17986277,17986531,17986516,17985874,17986650,17986354,17986450,17986921,17986928,17986017,17985838,17985903,17986157,17986912,17986428,17985782,17986978,17986469,17986764,17985825,17986855,17986687,17986272,17986467,17986973,17986485,17986822,17986197,17985934,17985768,17986079,17986031,17986036,17987050,17986869,17986554,17986314,17986893,17986565,17986287,17986089,17986298,17987055,17986120,17986541,17986628,17986646],\"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 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)