HI,
I am trying to use an event subscriber functionality of 'Gen. Journal Line Table' on my On-Prem Business Central Environment ( v19).
Code EX:
HI,
I am trying to use an event subscriber functionality of 'Gen. Journal Line Table' on my On-Prem Business Central Environment ( v19).
Code EX:
HI,
I am trying to use an event subscriber functionality of 'Gen. Journal Line Table' on my On-Prem Business Central Environment ( v19).
Code EX:
Thank you all for your Guidance. Finally, Above issue got resolved after regenerating the license by our Partner, and then re-imported the new key to BC Instance.
Hello,
Looks like a license issue. Please raise a ticket to operations center via your partner / CSP (don't choose technical support as CSS / support does not generate / refresh licenses).
Thanks.
HI Zhu,
I generated Permission set and republished the extension. but i still get the same error.
is there anyway to check which object range is assigned to the Business central license ?
Thanks,
Hi, Have you ever run the following command before Package or Publish? If it still doesn't work, I think it may be that the Object Range has not be assigned.
Hope this will help.
Thanks.
ZHU
HI Zhu,
Thank you for the reply.
I tried changing the Flags to false . and now it shows the below error.
"You do not have the following permissions on CodeUnit JI Test Code Unit: Execute. To view details about your permissions, see the Effective Permissions page. To report a problem, refer to the following server session ID: '342'."
is this error related to license or permissions ?
Thanks,
Nishantha.
I would recommend checking the actual Publisher function name and parameters in the on-prem "Gen. Journal Line" table object. Any differences there from your Subscriber will cause your Subscriber to not work.
Hi, as Inge said, if you are tesing on the same version, it shouldn't be a problem. But, to rule out License and permission issues, can you try the following?
Change true to false and try again.
<SkipOnMissingLicense> |
Set to true to skip the event subscriber method call if the user's license doesn't cover the event subscriber codeunit. If false , an error is thrown and the code execution stops. false is the default. |
yes |
<SkipOnMissingPermission> |
Set to true to skip the event subscriber method call if the user doesn't have the correct permissions the event subscriber codeunit. If false , an error is thrown and the code execution stops. false is the default. |
Hope this will help.
Thanks.
ZHU
If you are doing this the exact same way and you are on the exact same version with the exact same extensions installed there should really not be any difference.
I would suggest your run the event recorder on your on-prem installation to figure out what events are really triggered.
Sohail Ahmed
2,655
Mansi Soni
1,574
YUN ZHU
1,453
Super User 2025 Season 1