IOfflineCommitLeadToSF.Run

// Job ID: #1114373
using AG.A1.Scheduler.Project.Contracts.Contracts.SFLead;

var offlineCommitLeadToSF = Activate<IOfflineCommitLeadToSF>();
await offlineCommitLeadToSF.Run(null, null);

Parameters

CurrentCulture
"en-US"
CurrentUICulture
"en-US"
RecurringJobId
"[DEBUG]-Offline-Commit-Lead-To-SF-Task"
RetryCount
10
Time
1763132702

State

11/17/2025 12:41:39 PM (+967ms) Failed

An exception occurred during performance of the job.

Newtonsoft.Json.JsonSerializationException

Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'AG.Integrations.RESTClients.SalesforceREST.Models.Lead' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. Path '', line 1, position 1.

Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'AG.Integrations.RESTClients.SalesforceREST.Models.Lead' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path '', line 1, position 1.
   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 389
   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 273
   at AG.Integrations.RESTClients.SalesforceREST.SalesforceApiClientController.CreateLead(IDictionary`2 param, SalesforceToken token) in C:\agent\_work\1\s\A1Solution\src-integrations\AG.Integrations.RESTClients\SalesforceREST\SalesforceApiClientController.cs:line 295
   at AG.A1.Scheduler.Project.Application.Helpers.SalesforceHelper.CreateLead(Lead lead, Boolean bypassTokenValidation) in C:\agent\_work\1\s\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Helpers\SalesforceHelper.cs:line 125
   at AG.A1.Scheduler.Project.Application.Features.LeadToSF.Commands.OfflineCommitLeadToSFCommandHandler.Run(PerformContext performContext, IJobCancellationToken cancellationToken) in C:\agent\_work\1\s\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\OfflineCommitLeadToSFCommandHandler.cs:line 50
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

-63ms Processing

Server:
dw0sdwk000fbp:7164
Worker:
537c197c
+42msSubmission to Salesforce - Started at 11/17/2025 12:41:38 PM
+145msSubmitting for RavingFan Record Id: 44684
+922msCannot deserialize the current JSON array (e.g. [1,2,3]) into type 'AG.Integrations.RESTClients.SalesforceREST.Models.Lead' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. Path '', line 1, position 1.

+1h 55m Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+7ms Scheduled

Retry attempt 10 of 10: Request failed with status code BadRequest

Enqueue at:
11/17/2025 12:39:05 PM

+13.846s Failed

An exception occurred during performance of the job.

System.Net.Http.HttpRequestException

Request failed with status code BadRequest

System.Net.Http.HttpRequestException: Request failed with status code BadRequest
   at AG.A1.Framework.Rest.RESTClient.HandleResponse[T](RestResponse restResponse) in C:\Users\MSailaja\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, Nullable`1 requestDataFormat, Nullable`1 responseDataFormat) in C:\Users\MSailaja\Source\Repos\alliantOne\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 281
   at AG.Integrations.RESTClients.SalesforceREST.SalesforceApiClientController.GetToken() in C:\Users\MSailaja\Source\Repos\alliantOne\A1Solution\src-integrations\AG.Integrations.RESTClients\SalesforceREST\SalesforceApiClientController.cs:line 41
   at AG.A1.Scheduler.Project.Application.Helpers.SalesforceHelper.CreateLead(Lead lead, Boolean bypassTokenValidation) in C:\Users\MSailaja\Source\Repos\alliantOne\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Helpers\SalesforceHelper.cs:line 72
   at AG.A1.Scheduler.Project.Application.Features.LeadToSF.Commands.OfflineCommitLeadToSFCommandHandler.Run(PerformContext performContext, IJobCancellationToken cancellationToken) in C:\Users\MSailaja\Source\Repos\alliantOne\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\OfflineCommitLeadToSFCommandHandler.cs:line 50
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+154ms Processing

Server:
wvdappdevv2-19:22680
Worker:
9c9f6bb8
+759msSubmission to Salesforce - Started at 11/17/2025 4:45:56 AM
+10.247sSubmitting for RavingFan Record Id: 44684
+13.608sRequest failed with status code BadRequest

+1h 10m Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+3ms Scheduled

Retry attempt 9 of 10: Request failed with status code BadRequest

Enqueue at:
11/17/2025 10:44:20 AM

+2.544s Failed

An exception occurred during performance of the job.

System.Net.Http.HttpRequestException

Request failed with status code BadRequest

System.Net.Http.HttpRequestException: Request failed with status code BadRequest
   at AG.A1.Framework.Rest.RESTClient.HandleResponse[T](RestResponse restResponse) in C:\Users\MInnamuri\Documents\Projects\Aone\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, Nullable`1 requestDataFormat, Nullable`1 responseDataFormat) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 281
   at AG.Integrations.RESTClients.SalesforceREST.SalesforceApiClientController.GetToken() in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-integrations\AG.Integrations.RESTClients\SalesforceREST\SalesforceApiClientController.cs:line 41
   at AG.A1.Scheduler.Project.Application.Helpers.SalesforceHelper.CreateLead(Lead lead, Boolean bypassTokenValidation) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Helpers\SalesforceHelper.cs:line 72
   at AG.A1.Scheduler.Project.Application.Features.LeadToSF.Commands.OfflineCommitLeadToSFCommandHandler.Run(PerformContext performContext, IJobCancellationToken cancellationToken) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\OfflineCommitLeadToSFCommandHandler.cs:line 50
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+23ms Processing

Server:
wvdappdevv2-16:136
Worker:
3447e262
+37msSubmission to Salesforce - Started at 11/17/2025 3:05:29 PM
+311msSubmitting for RavingFan Record Id: 44684
+2.441sRequest failed with status code BadRequest

+41m 8.423s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+4ms Scheduled

Retry attempt 8 of 10: Request failed with status code InternalServerErr…

Enqueue at:
11/17/2025 9:35:24 AM

+7.426s Failed

An exception occurred during performance of the job.

System.Net.Http.HttpRequestException

Request failed with status code InternalServerError

System.Net.Http.HttpRequestException: Request failed with status code InternalServerError
   at AG.A1.Framework.Rest.RESTClient.HandleResponse[T](RestResponse restResponse) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 392
   at AG.A1.Framework.Rest.RESTClient.GetInternalAsync[T](IRESTEndpoint apiEndpoint, IDictionary`2 headers, String expectedRootElement, IDictionary`2 parameters) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 209
   at AG.Integrations.RESTClients.AlliantOneApiREST.ClientControllers.RavingFanA1ApiClientController.GetRavingFanDetailsById(Int32 id) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-integrations\AG.Integrations.RESTClients\AlliantOneApiREST\ClientControllers\RavingFanA1ApiClientController.cs:line 51
   at AG.A1.Scheduler.Project.Application.Features.LeadToSF.Commands.OfflineCommitLeadToSFCommandHandler.Run(PerformContext performContext, IJobCancellationToken cancellationToken) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\OfflineCommitLeadToSFCommandHandler.cs:line 32
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+50ms Processing

Server:
wvdappdevv2-16:4140
Worker:
44a09bbc
+342msSubmission to Salesforce - Started at 11/17/2025 2:24:13 PM
+2.859sSubmitting for RavingFan Record Id: 41494
+7.375sRequest failed with status code InternalServerError

+29m 4.074s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+3ms Scheduled

Retry attempt 7 of 10: Request failed with status code InternalServerErr…

Enqueue at:
11/17/2025 8:47:14 AM

+897ms Failed

An exception occurred during performance of the job.

System.Net.Http.HttpRequestException

Request failed with status code InternalServerError

System.Net.Http.HttpRequestException: Request failed with status code InternalServerError
   at AG.A1.Framework.Rest.RESTClient.HandleResponse[T](RestResponse restResponse) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 392
   at AG.A1.Framework.Rest.RESTClient.GetInternalAsync[T](IRESTEndpoint apiEndpoint, IDictionary`2 headers, String expectedRootElement, IDictionary`2 parameters) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 209
   at AG.Integrations.RESTClients.AlliantOneApiREST.ClientControllers.RavingFanA1ApiClientController.GetRavingFanDetailsById(Int32 id) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-integrations\AG.Integrations.RESTClients\AlliantOneApiREST\ClientControllers\RavingFanA1ApiClientController.cs:line 51
   at AG.A1.Scheduler.Project.Application.Features.LeadToSF.Commands.OfflineCommitLeadToSFCommandHandler.Run(PerformContext performContext, IJobCancellationToken cancellationToken) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\OfflineCommitLeadToSFCommandHandler.cs:line 32
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+5.416s Processing

Server:
wvdappdevv2-16:4140
Worker:
af19f057
+47msSubmission to Salesforce - Started at 11/17/2025 1:55:08 PM
+332msSubmitting for RavingFan Record Id: 41494
+836msRequest failed with status code InternalServerError

+12m 43.874s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+3ms Scheduled

Retry attempt 6 of 10: Request failed with status code InternalServerErr…

Enqueue at:
11/17/2025 8:24:53 AM

+670ms Failed

An exception occurred during performance of the job.

System.Net.Http.HttpRequestException

Request failed with status code InternalServerError

System.Net.Http.HttpRequestException: Request failed with status code InternalServerError
   at AG.A1.Framework.Rest.RESTClient.HandleResponse[T](RestResponse restResponse) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 392
   at AG.A1.Framework.Rest.RESTClient.GetInternalAsync[T](IRESTEndpoint apiEndpoint, IDictionary`2 headers, String expectedRootElement, IDictionary`2 parameters) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 209
   at AG.Integrations.RESTClients.AlliantOneApiREST.ClientControllers.RavingFanA1ApiClientController.GetRavingFanDetailsById(Int32 id) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-integrations\AG.Integrations.RESTClients\AlliantOneApiREST\ClientControllers\RavingFanA1ApiClientController.cs:line 51
   at AG.A1.Scheduler.Project.Application.Features.LeadToSF.Commands.OfflineCommitLeadToSFCommandHandler.Run(PerformContext performContext, IJobCancellationToken cancellationToken) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\OfflineCommitLeadToSFCommandHandler.cs:line 32
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+30ms Processing

Server:
wvdappdevv2-16:21764
Worker:
7c5b64b7
+37msSubmission to Salesforce - Started at 11/17/2025 1:42:18 PM
+163msSubmitting for RavingFan Record Id: 41494
+619msRequest failed with status code InternalServerError

+6m 48.180s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+3ms Scheduled

Retry attempt 5 of 10: Request failed with status code InternalServerErr…

Enqueue at:
11/17/2025 8:12:11 AM

+1.524s Failed

An exception occurred during performance of the job.

System.Net.Http.HttpRequestException

Request failed with status code InternalServerError

System.Net.Http.HttpRequestException: Request failed with status code InternalServerError
   at AG.A1.Framework.Rest.RESTClient.HandleResponse[T](RestResponse restResponse) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 392
   at AG.A1.Framework.Rest.RESTClient.GetInternalAsync[T](IRESTEndpoint apiEndpoint, IDictionary`2 headers, String expectedRootElement, IDictionary`2 parameters) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 209
   at AG.Integrations.RESTClients.AlliantOneApiREST.ClientControllers.RavingFanA1ApiClientController.GetRavingFanDetailsById(Int32 id) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-integrations\AG.Integrations.RESTClients\AlliantOneApiREST\ClientControllers\RavingFanA1ApiClientController.cs:line 51
   at AG.A1.Scheduler.Project.Application.Features.LeadToSF.Commands.OfflineCommitLeadToSFCommandHandler.Run(PerformContext performContext, IJobCancellationToken cancellationToken) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\OfflineCommitLeadToSFCommandHandler.cs:line 32
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+293ms Processing

Server:
wvdappdevv2-16:21764
Worker:
16a39e27
+290msSubmission to Salesforce - Started at 11/17/2025 1:35:29 PM
+716msSubmitting for RavingFan Record Id: 41494
+1.455sRequest failed with status code InternalServerError

+6m 25.217s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+3ms Scheduled

Retry attempt 4 of 10: Could not load file or assembly 'AG.A1.Scheduler.…

Enqueue at:
11/17/2025 8:00:55 AM

+140ms Failed

Can not change the state to 'Processing': target method was not found.

System.IO.FileNotFoundException

Could not load file or assembly 'AG.A1.Scheduler.Project.Contracts, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

System.IO.FileNotFoundException: Could not load file or assembly 'AG.A1.Scheduler.Project.Contracts, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'AG.A1.Scheduler.Project.Contracts, Culture=neutral, PublicKeyToken=null'
   at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at Hangfire.Common.TypeHelper.AssemblyResolver(String assemblyString)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at System.TypeNameParser.ResolveAssembly(String asmName, Func`2 assemblyResolver, Boolean throwOnError, StackCrawlMark& stackMark)
   at System.TypeNameParser.ConstructType(Func`2 assemblyResolver, Func`4 typeResolver, Boolean throwOnError, Boolean ignoreCase, StackCrawlMark& stackMark)
   at System.TypeNameParser.GetType(String typeName, Func`2 assemblyResolver, Func`4 typeResolver, Boolean throwOnError, Boolean ignoreCase, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName, Func`2 assemblyResolver, Func`4 typeResolver, Boolean throwOnError)
   at Hangfire.Common.TypeHelper.DefaultTypeResolver(String typeName)
   at Hangfire.Storage.InvocationData.DeserializeJob()

+1m 14.033s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+7ms Scheduled

Retry attempt 3 of 10: Request failed with status code InternalServerErr…

Enqueue at:
11/17/2025 7:58:46 AM

+5.783s Failed

An exception occurred during performance of the job.

System.Net.Http.HttpRequestException

Request failed with status code InternalServerError

System.Net.Http.HttpRequestException: Request failed with status code InternalServerError
   at AG.A1.Framework.Rest.RESTClient.HandleResponse[T](RestResponse restResponse) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 392
   at AG.A1.Framework.Rest.RESTClient.GetInternalAsync[T](IRESTEndpoint apiEndpoint, IDictionary`2 headers, String expectedRootElement, IDictionary`2 parameters) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 209
   at AG.Integrations.RESTClients.AlliantOneApiREST.ClientControllers.RavingFanA1ApiClientController.GetRavingFanDetailsById(Int32 id) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-integrations\AG.Integrations.RESTClients\AlliantOneApiREST\ClientControllers\RavingFanA1ApiClientController.cs:line 51
   at AG.A1.Scheduler.Project.Application.Features.LeadToSF.Commands.OfflineCommitLeadToSFCommandHandler.Run(PerformContext performContext, IJobCancellationToken cancellationToken) in C:\Users\MInnamuri\Documents\Projects\Aone\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\OfflineCommitLeadToSFCommandHandler.cs:line 32
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+8.417s Processing

Server:
wvdappdevv2-16:21764
Worker:
01fca125
+46msSubmission to Salesforce - Started at 11/17/2025 1:27:43 PM
+2.278sSubmitting for RavingFan Record Id: 41494
+5.336sRequest failed with status code InternalServerError

+2d 16h 44m Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+4ms Scheduled

Retry attempt 2 of 10: Cannot deserialize the current JSON array (e.g. […

Enqueue at:
11/14/2025 3:13:08 PM

+1m 39.320s Failed

An exception occurred during performance of the job.

Newtonsoft.Json.JsonSerializationException

Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'AG.Integrations.RESTClients.SalesforceREST.Models.Lead' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. Path '', line 1, position 1.

Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'AG.Integrations.RESTClients.SalesforceREST.Models.Lead' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path '', line 1, position 1.
   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 389
   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 273
   at AG.Integrations.RESTClients.SalesforceREST.SalesforceApiClientController.CreateLead(IDictionary`2 param, SalesforceToken token) in C:\agent\_work\1\s\A1Solution\src-integrations\AG.Integrations.RESTClients\SalesforceREST\SalesforceApiClientController.cs:line 295
   at AG.A1.Scheduler.Project.Application.Helpers.SalesforceHelper.CreateLead(Lead lead, Boolean bypassTokenValidation) in C:\agent\_work\1\s\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Helpers\SalesforceHelper.cs:line 125
   at AG.A1.Scheduler.Project.Application.Features.LeadToSF.Commands.OfflineCommitLeadToSFCommandHandler.Run(PerformContext performContext, IJobCancellationToken cancellationToken) in C:\agent\_work\1\s\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\OfflineCommitLeadToSFCommandHandler.cs:line 50
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

+4m 59.973s Processing

Server:
dw0sdwk000ewl:1512
Worker:
b0eb15aa
+56msSubmission to Salesforce - Started at 11/14/2025 3:11:09 PM
+11.060sSubmitting for RavingFan Record Id: 44684
+1m 39.273sCannot deserialize the current JSON array (e.g. [1,2,3]) into type 'AG.Integrations.RESTClients.SalesforceREST.Models.Lead' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. Path '', line 1, position 1.

+13ms Processing

Server:
wvdappdevv2-19:16516
Worker:
3422a1f9

+39.614s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+3ms Scheduled

Retry attempt 1 of 10: Request failed with status code BadRequest

Enqueue at:
11/14/2025 3:05:57 PM

+19.513s Failed

An exception occurred during performance of the job.

System.Net.Http.HttpRequestException

Request failed with status code BadRequest

System.Net.Http.HttpRequestException: Request failed with status code BadRequest
   at AG.A1.Framework.Rest.RESTClient.HandleResponse[T](RestResponse restResponse) in C:\Users\MSailaja\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, Nullable`1 requestDataFormat, Nullable`1 responseDataFormat) in C:\Users\MSailaja\Source\Repos\alliantOne\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 281
   at AG.Integrations.RESTClients.SalesforceREST.SalesforceApiClientController.GetToken() in C:\Users\MSailaja\Source\Repos\alliantOne\A1Solution\src-integrations\AG.Integrations.RESTClients\SalesforceREST\SalesforceApiClientController.cs:line 41
   at AG.A1.Scheduler.Project.Application.Helpers.SalesforceHelper.CreateLead(Lead lead, Boolean bypassTokenValidation) in C:\Users\MSailaja\Source\Repos\alliantOne\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Helpers\SalesforceHelper.cs:line 72
   at AG.A1.Scheduler.Project.Application.Features.LeadToSF.Commands.OfflineCommitLeadToSFCommandHandler.Run(PerformContext performContext, IJobCancellationToken cancellationToken) in C:\Users\MSailaja\Source\Repos\alliantOne\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\OfflineCommitLeadToSFCommandHandler.cs:line 50
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+8.017s Processing

Server:
wvdappdevv2-19:16516
Worker:
51c4fab8
+5.191sSubmission to Salesforce - Started at 11/14/2025 9:05:15 AM
+12.724sSubmitting for RavingFan Record Id: 44684
+19.070sRequest failed with status code BadRequest

+10ms Enqueued

Triggered by recurring job scheduler

11/14/2025 3:05:02 PM Created