Hi,
wie have problems with EventSubsribers.
For example:
[EventSubscriber(ObjectType::Table, Database::"Item Reference", 'OnBeforeModifyEvent', '', true, false)]
local procedure OnItemReferenceOnBeforeModifyEvent(var Rec: Record "Item Reference")
begin
Rec.Validate(MyDateField, Today);
end;
We are still in the test phase and we believe that it worked until recently. I'm not sure if it might have something to do with the update from 21.3 OnPrem to 21.6 OnPrem?
It seems that all standard table EventSubscribers are now ignored without errors. The problem seems to affect all table subscribers.
Does anyone have any ideas as to what could be causing this, or is there perhaps even something related to this?
regards
Ralf
Thanks for the update.
We found the problem :-)
It was a license problem! The object numbers used were not included in the BC-OnPrem license. Due to the first parameter of the EventSubsriber, this was ignored without an error messages.
Until recently we were still programming and testing in the test license and everything was OK there.
Then the customer licenses were imported and the key users only now noticed that.
regards
Ralf
Hi, I'm sorry that I don't have the environment of BC21.6 at present, but I tested it in BC22.1 and it seems that there is no problem.
If this is a standard environment and there are no license issues. I suggest you submit an SR to Microsoft and ask them to assist with the investigation.
Hope this helps.
Thanks.
ZHU
No! As described above: without the message being displayed.
So the message is not displayed and the code is not run through!
so your message is displaying?
I simply added a message box to various EventSubcribers, e.g.: Message('Test1');
If changes are made, they are accepted without the message being displayed.
Did you try to debug the problem?
Sorry - that was a typo in the post and I'll correct it right away. Of course, it's correct...event and not...trigger.
Unfortunately, this does not solve the problem and it also affects many event subscribers, all of which worked before.
Hi,
Can you try this Event?
[EventSubscriber(ObjectType::Table, Database::"Item Reference", 'OnBeforeModifyEvent', '', true, false)]
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... 291,188 Super User 2024 Season 2
Martin Dráb 230,030 Most Valuable Professional
nmaenpaa 101,156