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