We were trying to post Item Arrivals. Upon validating the journal, validation is ok. But when we were posting it, this error occurred:
It will be appreciated if you please post complete details of the stack trace error
the information which you have given is not enough
Here is the complete error:
Error Message (01:44:37 pm) Error executing code: Overflow in internal run stack.
(S)\Classes\SysCountryRegionCode\isLegalEntityInCountryRegion - line 16
(S)\Classes\InventMovement\new - line 15
(S)\Classes\InventMov_Journal\new - line 6
(S)\Classes\InventMov_Jour_TransferIssue\newFromInventJournalTrans - line 13
(S)\Classes\InventMovement\constructNoThrow - line 162
(S)\Classes\InventMovement\construct - line 6
(S)\Data Dictionary\Tables\InventTransOrigin\Methods\inventMovement - line 114
(S)\Data Dictionary\Tables\InventTrans\Methods\inventMovement - line 41
(S)\Classes\InventUpdate\updateTransDimTransferReceipt - line 34
(S)\Classes\InventUpdate\updateDimReserveChange - line 82
(S)\Classes\InventUpdate\writeInventTrans - line 100
(S)\Classes\InventUpdate\updateTransDimReceipt - line 22
(S)\Classes\InventUpdate\updateTransDimTransferReceipt - line 105
(S)\Classes\InventUpdate\writeInventTransAutoDim - line 274
(S)\Classes\InventUpd_Registered\updateRegisterInventTrans - line 52
(S)\Classes\InventUpd_Registered\updateRegisterMore - line 29
(S)\Classes\InventUpd_Registered\updateNow - line 28
(S)\Classes\WMSJournalCheckPostReception\postTrans - line 188
(S)\Classes\JournalCheckPost\postJournal - line 13
(S)\Classes\WMSJournalCheckPostReception\postJournal - line 5
(S)\Classes\JournalCheckPost\runPost - line 5
(S)\Classes\JournalCheckPost\run - line 38
(C)\Classes\WMSJournalCheckPost\main - line 22
You can see that there is a loop of calls (writeInventTrans -> updateDimReserveChange -> updateTransDimTransferReceipt -> updateTransDimReceipt -> writeInventTrans). It would be an infinite loop if the stack storing method calls had infinite capacity.
Unfortunately it's not clear to me why the loop happens. If you have any customizations there, try removing them. Then analyze what transaction AX is triying to create.
We were able to post the Item Arrival Journal using a different user and different computer. Any ideas why? Thanks!
Did you ever receive a response on why the overflow in internal flow error was received when you were trying to post Item Arrival journals. We are experiencing the same problem when doing payment reversals through the Cash and Bank Management module. Just like you we are finding by going to a different user and different computer it will work. Were you able to have any one respond on why going to a different user and computer will work?
One reason for it to work fro different user would be difference in user options to enable/disable execution of code in CIL. Pleae make sure your application is fully complied and CIL is generated after that.
Another reason related to computer can be local user cache files *.auc located in Appdata\bin folder. You can try to delete them and run the process again.
Business Applications communities