Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / delete batch job with ...
Finance forum
Unanswered

delete batch job with status "cancel"

(1) ShareShare
ReportReport
Posted on by
Hi,

I got this error in a batch that i ran
"Cannot delete a record in table lines1 (TableLine1 ). order: XX-00, 55. A time-out occurred in the database while the query was executing".
what would cause this error to happen?

So i cancelled this batch job and ran it again. Then i got this error below: what does this error mean?
Error in collecting infolog Microsoft.Dynamics.Ax.Xpp.TransientSqlConnectionError at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue, interpret* ip) at Microsoft.Dynamics.Ax.MSIL.cqlCursorIL.DeleteAll(IntPtr table) at Microsoft.Dynamics.Ax.Xpp.Common.DeleteAll() in D:\dbs\sh\l23t\0503_210906\cmd\7\Source\Kernel\xppil\XppSupport\Common.cs:line 659 at Dynamics.AX.Application.DeleteOrderService.`deleteOrder() in xppSource://Source/XX\AxClass_DeleteOrderService.xpp:line 20 at Dynamics.AX.Application.DeleteOrderService.deleteOrder() at DeleteOrderService::deleteOrder(Object , Object[] , Boolean& ) at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(Object instance, String MethodName, Object[] parameters) in D:\dbs\sh\l23t\0503_210906\cmd\7\Source\Kernel\xppil\XppSupport\ReflectionCallHelper.cs:line 2056 at Microsoft.Dynamics.Ax.Xpp.DictClass.Callobject(String _methodName, XppObjectBase _Called, Object[] varArgs) in D:\dbs\sh\l23t\0120_000230\cmd\7\Source\Kernel\xppil\XppSupport\DictClass.cs:line 183 at Dynamics.AX.Application.SysOperationServiceController.runOperationInstance(SysOperationServiceController controller) at Dynamics.AX.Application.SysOperationServiceController.runOperationSynchronously() at Dynamics.AX.Application.SysOperationServiceController.`run() at Dynamics.AX.Application.SysOperationServiceController.run() at Dynamics.AX.Application.BatchRun.runJobStaticCodeFromBuffer(Batch buffer) at Dynamics.AX.Application.BatchRun.runJobStaticFromBuffer(Batch buffer) at Microsoft.Dynamics.AX.Batch.BatchRunAction.Run() at Microsoft.Dynamics.AX.Batch.Batch.ExecuteOneBatchJobTask(BatchTaskInfoWrapper taskInfo).

i cancelled this batch job, and it's stuck at cancelling -- how can i delete this batch job record? or make it cancelled instead of cancelling
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,622 Super User 2024 Season 2 on at
    delete batch job with status "cancel"
    Hi,
     
    Have you tried setting up the batch job from scratch? The error can indicate that temporary the connection with the database was lost. Do you get this error now each time you run the
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,622 Super User 2024 Season 2 on at
    delete batch job with status "cancel"
    Hi,

    Can you tell us what batch job you run? Is it a standard job or custom code? Did this work correctly before? Please provide more relevant background information so we can possibly have an idea about a relation between the job and the error message.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans