We are in the process of implementing a new version of Dynamics NAV 2016 CU1, and during testing are having a few issues with subscriptions. I have a codeunit which has a number of new functions which are subscriptions to events in the standard tables and codeunits. I have noticed that these subscribers are not always being fired, and when I look at the Subscription Events from the debugger, none of my events are listed. Re-compiling the codeunit, and they re-appear.
Has anyone else experienced similar behaviour?
0
Answers
I am not sure but it seems an issue that is resolved with Latest Cumulative Updates. At Least Apply the Platform Hotfix (Exe Fix) of the Latest Cumulative Update.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
Today I may have experienced the same problem. Does anyone know which Hotfix may solve this issue.
Kind regards, Henry
Had the same problem today using the latest NAV 2017 cumulative update 2 (build 14767).
Updated some objects in the database, and the subscriptions was disabled. Recompile fixed the problem.
The missing event subscriptions resulted in data not being updated correctly in the database. In this case the data could be recalculated.
But we had a similar problem two months ago at a customer using NAV 2016. In this case the data had to be recreated manually!
Best regards,
Lars Peter
(Last event fix before that was in CU11 as far as I remember)
Unfortunately it did not make it into NAV 2017 CU3, I will ensure that it hits NAV2017 CU4.
Bug description:
The problem show's if you open a page A with source table B, in which there is a flow field against another table C. You then make a event subscription in Codeunit D towards page A.
If you recompile C, it will start stailing object for reload, but here was a bug where the parenting objects could end in a situation, where events was not rebound to the objects.
So Codeunit D events would stop being fired
If you don't compile objects in you live environments, you are not hit by the issue
Workaround:
If you are on CU11 or later then a restart is enough to make all events rebind
Best Regards,
Torben Wind Meyhoff
[MSFT]
Can you tell exactly what was fixed in CU11 regarding events? We find that sometime events are not firing in Nav 2016 CU10.
And what is meant by restart? Restart of all service tiers? Clients? SQL-server?
On some of the previous build of NAV 2016/2017 when I trigger a table change, this error occurred.
Try compiling the subscriber objects, it is usually a fix until you can update the customer to newere CU
Your solution is "Try compiling the subscriber objects (in the live environment)", which contridicts the comment from Torben "If you don't compile objects in you live environments, you are not hit by the issue".
I would very much like to try and recreate your scenario.
Is it a specific type of change on the table that triggers this?
Do you release the table and the subscriber object in the same file, or just the table?
Is it possible to see the wrongfully unbound events in the events-list page and do they show an error?