Hi,
Yesterday a customer found that clicking Preview Posting in the Payment Journal caused the RTC to crash. They have been using NAV2017 for several months and this was the first time they have seen this error. The error affected more than one user. After restarting the NAV service, they were able to use Preview Posting again. We cannot reproduce the error on a replica system, hence are unable to test any potential fixes.
Details
From my understanding of this error, it occurs when setting up an event subscriber in codeunit 231 for the event OnRunPreview() in codeunit 19.
Has anyone seen this error?
NAV 2017 CU15 has a fix (ID 254648) for a similar error, but the object ID mentioned is different (8, not 5 231). Does anyone know whether this would also fix our customer's problem?
Thanks & regards,
Chris
Hi Alfredo,
Many thanks for your reply - what you are saying makes sense to me and if/when it happens again, we will definitely scrutinize the sessions before going for the restart. If it's possible to isolate the issue to a few long-running sessions, maybe it would be possible to implement job queue process to kill long-running sessions automatically. But obviously this would only worth doing if the issue happens often and in the absence of a permanent solution !
Chris
Chris
I have not experienced this behavior, but the event log message: <ii>(InvalidOperationException): <ii>An internal error has occurred. Cannot assign a scope id. The maximum number of methods for 5 231 has been exceeded and the fact you had to restart the NAV instance leads me to believe you have a "cache" situation. I would suggest taking a look at the open sessions and "killing" those which have opened for many days. They may be "orphaned". Look at this blog from Olof Simren on creating a "Kill Session" on the page 9506 (Sessions) www.olofsimren.com/kill-sessions-in-dynamics-nav
Good Luck!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,524 Super User 2024 Season 2
Martin Dráb 228,493 Most Valuable Professional
nmaenpaa 101,148