Performance in posting general ledger journal

I have a general ledger journal with 1500 lines. Each of these is related to a custtrans with settlemettype specifc and is marked against a record in custtrans.

The posting of this journal varies from 4 hours to 48 hours.

There is not made any modifications to any of the posting engines

The user is set to use CIL code.

The version is AX2012 R3 CU13

If the number of transactions is set to 800 lines the posting in 8 out of 10 times is perfomed in 4-5 minutes yes minutes, but in the last 2 postings it is the same as before > 4 hours.

The database is with newly rebuilded indexes and shows no long running queries.

The problem occours both in online and and in batch posting.

The traceparser is only showing that a lot of time is used in posting the customer transactions but there is no clear indication of any problems.

I am running out of ideas so I therefore sending it out to all you experts to see if you can help.

Regards

Erik Kornerup