// Job ID: #1198461
using AG.A1.Scheduler.Billing.Contracts.Contracts;
var pendingSubmissionTimeEntriesTask = Activate<IPendingSubmissionTimeEntriesTask>();
await pendingSubmissionTimeEntriesTask.Run(null, null);
| CurrentCulture | |
| CurrentUICulture | |
| RecurringJobId | |
| RetryCount | |
| Time | |
Retry attempt 1 of 10: Cannot deserialize the current JSON object (e.g. …
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.Application.Contracts.DTO.Billings.BillingDto]' 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.Application.Contracts.DTO.Billings.BillingDto]' 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:\Users\rkuruvilla\Source\Repos\alliantOne\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 392
at AG.A1.Framework.Rest.RESTClient.ExecutePOSTAsync[T](IRESTEndpoint apiEndpoint, IDictionary`2 headers, IDictionary`2 bodyParameters, IDictionary`2 urlParameters) in C:\Users\rkuruvilla\Source\Repos\alliantOne\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 273
at AG.Integrations.RESTClients.BillingApiREST.BillingControllers.BillingA1ApiClientController.GetPendingSubmissionTimeEntries(GetPendingSubmissionTimeEntriesRequestModelDto requestModel) in C:\Users\rkuruvilla\Source\Repos\alliantOne\A1Solution\src-integrations\AG.Integrations.RESTClients\BillingApiREST\BillingControllers\BillingA1ApiClientController.cs:line 226
at AG.A1.Scheduler.Billing.Application.Features.CommitTimeTo3E.Commands.PendingSubmissionTimeEntriesTask.Run(PerformContext performContext, IJobCancellationToken cancellationToken) in C:\Users\rkuruvilla\Source\Repos\alliantOne\A1Solution\src-schedulers\AG.A1.Scheduler.Billing.Application\Features\CommitTimeTo3E\Commands\PendingSubmissionTimeEntriesTask.cs:line 22
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()