PostSapJobs.PostOrderToSap

// Job ID: #3633312
using OOP.BackgroundJobsManager.Jobs;

var postSapJobs = Activate<PostSapJobs>();
postSapJobs.PostOrderToSap(1862245, 1889253, 1930619);

Properties

CurrentCulture
"en-IN"
CurrentUICulture
"en-US"
RetryCount
2

State

8/8/2025 9:02:33 AM (+20ms) Failed

An exception occurred during performance of the job.

System.InvalidOperationException

The 'Areacode' property on 'SP_GetPostOrder_head_Result' could not be set to a 'System.Int32' value. You must set this property to a non-null value of type 'System.String'.

System.InvalidOperationException: The 'Areacode' property on 'SP_GetPostOrder_head_Result' could not be set to a 'System.Int32' value. You must set this property to a non-null value of type 'System.String'. 
   at System.Data.Entity.Core.Common.Internal.Materialization.Shaper.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal)
   at lambda_method(Closure , Shaper )
   at System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)
   at System.Data.Entity.Core.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext()
   at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at OOP.BackgroundTask.Orders.PostOrderToSap.<>c__DisplayClass34_0.<PostOrderToSapDivisionWise>b__1(PostOrderToSapDto post) in D:\Source\GitHub\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 131
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at OOP.BackgroundTask.Orders.PostOrderToSap.PostOrderToSapDivisionWise(Int32 OrderId, Int32 DivisionOrderID, Int32 OrderAmendmentID) in D:\Source\GitHub\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 110
   at OOP.BackgroundJobsManager.Jobs.PostSapJobs.PostOrderToSap(Int32 OrderId, Int32 DivisionOrderID, Int32 OrderAmendmentID) in D:\Source\GitHub\OOP\OOP.BackgroundJobsManager\Jobs\PostSapJobs.cs:line 22

+46ms Processing

Server:
ooptest:12428
Worker:
40d7d542

+5m 134ms Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

Retry attempt 2 of 2: The 'Areacode' property on 'SP_GetPostOrder_head_…

Enqueue at:
8/8/2025 9:02:33 AM

+10ms Failed

An exception occurred during performance of the job.

System.InvalidOperationException

The 'Areacode' property on 'SP_GetPostOrder_head_Result' could not be set to a 'System.Int32' value. You must set this property to a non-null value of type 'System.String'.

System.InvalidOperationException: The 'Areacode' property on 'SP_GetPostOrder_head_Result' could not be set to a 'System.Int32' value. You must set this property to a non-null value of type 'System.String'. 
   at System.Data.Entity.Core.Common.Internal.Materialization.Shaper.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal)
   at lambda_method(Closure , Shaper )
   at System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)
   at System.Data.Entity.Core.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext()
   at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at OOP.BackgroundTask.Orders.PostOrderToSap.<>c__DisplayClass34_0.<PostOrderToSapDivisionWise>b__1(PostOrderToSapDto post) in D:\Source\GitHub\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 131
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at OOP.BackgroundTask.Orders.PostOrderToSap.PostOrderToSapDivisionWise(Int32 OrderId, Int32 DivisionOrderID, Int32 OrderAmendmentID) in D:\Source\GitHub\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 110
   at OOP.BackgroundJobsManager.Jobs.PostSapJobs.PostOrderToSap(Int32 OrderId, Int32 DivisionOrderID, Int32 OrderAmendmentID) in D:\Source\GitHub\OOP\OOP.BackgroundJobsManager\Jobs\PostSapJobs.cs:line 22

+13ms Processing

Server:
ooptest:12428
Worker:
aba6facd

+3m 3.763s Enqueued

Triggered by DelayedJobScheduler

+97ms Scheduled

Retry attempt 1 of 2: The 'Areacode' property on 'SP_GetPostOrder_head_…

Enqueue at:
8/8/2025 8:57:29 AM

+157ms Failed

An exception occurred during performance of the job.

System.InvalidOperationException

The 'Areacode' property on 'SP_GetPostOrder_head_Result' could not be set to a 'System.Int32' value. You must set this property to a non-null value of type 'System.String'.

System.InvalidOperationException: The 'Areacode' property on 'SP_GetPostOrder_head_Result' could not be set to a 'System.Int32' value. You must set this property to a non-null value of type 'System.String'. 
   at System.Data.Entity.Core.Common.Internal.Materialization.Shaper.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal)
   at lambda_method(Closure , Shaper )
   at System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)
   at System.Data.Entity.Core.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext()
   at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at OOP.BackgroundTask.Orders.PostOrderToSap.<>c__DisplayClass34_0.<PostOrderToSapDivisionWise>b__1(PostOrderToSapDto post) in D:\Source\GitHub\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 131
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at OOP.BackgroundTask.Orders.PostOrderToSap.PostOrderToSapDivisionWise(Int32 OrderId, Int32 DivisionOrderID, Int32 OrderAmendmentID) in D:\Source\GitHub\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 110
   at OOP.BackgroundJobsManager.Jobs.PostSapJobs.PostOrderToSap(Int32 OrderId, Int32 DivisionOrderID, Int32 OrderAmendmentID) in D:\Source\GitHub\OOP\OOP.BackgroundJobsManager\Jobs\PostSapJobs.cs:line 22

+16ms Processing

Server:
ooptest:12428
Worker:
4b799b2d

+14ms Enqueued

8/8/2025 8:54:29 AM Created