Hello guys i am trying to use BatchJobs. And in recurring jobs i am adding another job to a batch job.
But at the end i get an error. Actually i am not doing anything this was just a test job.
Here is the screenshot:
And here is the code block of import method:
And here is how i generate the batch job:
System.FormatException
Input string was not in a correct format.
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt)
at Hangfire.SqlServer.SqlServerConnection.<>c__DisplayClass11_0.<GetJobParameter>b__0(DbConnection connection)
at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
at Hangfire.SqlServer.SqlServerConnection.GetJobParameter(String id, String name)
at Hangfire.Batches.CachedStateConnection.GetJobParameter(String id, String name)
at Hangfire.Batches.CachedStateConnection.GetJobParameter(String id, String name)
at Hangfire.ContinuationsSupportAttribute.GetContinuations(IStorageConnection connection, String jobId)
at Hangfire.ContinuationsSupportAttribute.AddContinuation(ElectStateContext context, AwaitingState awaitingState)
at Hangfire.ContinuationsSupportAttribute.OnStateElection(ElectStateContext context)
at Hangfire.States.StateMachine.ApplyState(ApplyStateContext initialContext)
at Hangfire.Batches.States.BatchStateMachine.ApplyStates(ApplyBatchStateContext context, List`1 createdItems, Dictionary`2& appliedJobStates, Dictionary`2& appliedBatchStates)
at Hangfire.Batches.States.BatchStateMachine.RunStateAction(ApplyBatchStateContext context)
at Hangfire.Batches.States.BatchStateMachine.ApplyState(ApplyBatchStateContext context)
at Hangfire.Batches.States.BatchStateChanger.ChangeState(BatchStateChangeContext context)
at Hangfire.Batches.BatchContinuationsSupportAttribute.ExecuteContinuationsIfExist(ApplyBatchStateContext context)
at Hangfire.Batches.BatchContinuationsSupportAttribute.OnStateApplied(ApplyBatchStateContext context)
at Hangfire.Batches.States.BatchStateMachine.ApplyState(ApplyBatchStateContext context)
at Hangfire.Batches.States.BatchStateChanger.ChangeState(BatchStateChangeContext context)
at Hangfire.Batches.BatchJobSupportAttribute.TryFinishBatch(JobStorage storage, JobStorageConnection connection, JobStorageTransaction transaction, String batchId, String setToExpire)
at Hangfire.Batches.BatchJobSupportAttribute.OnStateApplied(ApplyStateContext context, IWriteOnlyTransaction outerTransaction)
at Hangfire.States.StateMachine.ApplyState(ApplyStateContext initialContext)
at Hangfire.States.BackgroundJobStateChanger.ChangeState(StateChangeContext context, BackgroundJob backgroundJob, IState toState, String oldStateName)