AL icon indicating copy to clipboard operation
AL copied to clipboard

REP295 Combine Shipments - OnAfterShouldFinalizeSalesInvHeader event gives ErrorParameterMismatch

Open BertDeTemmerman opened this issue 7 years ago • 2 comments

Describe the bug Trying to subscribe on OnAfterShouldFinalizeSalesInvHeader in REP295 Combine Shipments. Even with the correct subscriber event, the Event Subscriptions keeps giving ErrorParameterMismatch, although the AL-compiler gives no errors.

To Reproduce Steps and to reproduce the behavior:

  1. Create subscriber on OnAfterShouldFinalizeSalesInvHeader` in REP295 Combine Shipments
  2. Place a function in it with a breakpoint or an UI element.
  3. Debugger won't stop at that point or show the UI

AL Code to reproduce the issue Subscriber

Expected behavior Event triggers

Screenshots Publisher

Publisher2

EventSubscription

Versions:

  • AL Language: al-3.0.106655
  • Business Central: Microsoft_Application_14.0.29537.31808 Microsoft_System_14.0.29530.31705
  • Docker: BCSandbox:be

BertDeTemmerman avatar Jun 19 '19 09:06 BertDeTemmerman

Hi Same issue here. Exception "ErrorParameterMismatch" is raised when adding "Finalize" parameter. But it works if you add a C/AL subscriber with finsql.

Something like a parameter called like a c# reserved word? (Object.Finalize() ?)

AL Language 3.0.145991 BC14 W1 RTM

Matteo

matteomontanari avatar Jul 15 '19 13:07 matteomontanari

Hi! We believe this issue has been fixed in the 2019 Wave 2 release and in any CU7 and later of the 2019 Spring release. Please feel free to reopen the issue if you can still reproduce it.

atoader avatar Nov 13 '19 17:11 atoader