Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

AX2012 R2 Number seqeunce Continuous option

$
0
0

Hi all,

I am confused on how this suppose to work. Any advice is appreciated. I've found 3 different scenarios so far...

1) Purchase Requisition ID - PurchReqTable is has SaveDataPerCompany = No. So it's a shared number sequence. I assigned a continuous number sequence to it.
When I create a new PR (e.g. PR-001), a respective line will be generated in the numberSequenceList table. Then I close my client and log back in, run a manual clean up. After that, PR-001 is freed. The problem is I have never delete the PR created earlier. And when generating new PR system will try to use PR-001 and generate a duplicate key error.
[The cleanup code checks whether the session is still active before allowing the record in numberSequenceList to be freed, which is the reason I needed to close the client and log back in. I can't find logic that checks whether the ID is in use.]

2) Sales Quotation ID - It uses a company specific number sequence. When I create a new SQ (e.g. SQ-001), nothing gets created in numberSequenceList table. Now I deleted SQ-001, still nothing in NumberSequenceList table. Manual clean up -> nothing. As a result, SQ-001 is lost unless I manually change the "next" back to 1. 

3) Journal Batch ID - This one is similar to 2), but the delete method in LedgerJournalTable include a line of code which explicitly release the batch number code. It generates a "free" record in NumberSequenceList table. And when creating a new journal system will correctly pick up the free journal batch ID.

Thanks in advance.


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>