web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

COSMovements_Ledger

(0) ShareShare
ReportReport
Posted on by 340

Hi,

i have a problem with the COSMovements_Ledger class.

When it runs as a batch it generate the following errors:

Cannot create a record in Cost balances (COSCostBalances). Dimension: Dimension 1, X.

The record already exists.

Cannot edit a record in Cost balances (COSCostBalances). Dimension: Dimension 1, X.

Deadlock, where one or more users have simultaneously locked the whole table or part of it.

Instead if i run it not in "batch mode" it works but it takes a lot of time.

I did some check and i think that the problem is when the class runs as batch it uses the splitTask method to split the job in more subjobs instead in "normal mode" it executes the copyTransInterval in a single job.

Can somene help me to fix this issue?

Many thanks for your support

Jerry

Env: AX 2012 CU3

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Jerry Lauber Profile Picture
    340 on at

    I changed the method canSplitTask with return false.

    In this way the job isn't splitted in subtasks.

    Regards

    jerry

  • Suggested answer
    AXT Profile Picture
    1,699 on at

    We are still on AX2012 RTM and have applied part of KB2886683 code from R2/3. It works without canSplitTask method return false.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans