AL icon indicating copy to clipboard operation
AL copied to clipboard

Issue in Dynamics 365 Business Central

Open olisterr opened this issue 8 years ago • 2 comments

Hi, I've written an extension in NAV 2018 in AL. It works perfectly fine for NAV 2018, but doesn't work in D365 BC giving error 'Error compiling dynamic control expression: '"Contract Type" = "Contract Type" :: "Rental Contract"' at index '34'. The error is: End of expression expected..' There is no error at compile time while building or publishing the package.

olisterr avatar Mar 26 '18 09:03 olisterr

Hi @olisterrcf . This is a duplicate of https://github.com/Microsoft/AL/issues/1800 The should be available soon and the workaround is to store the option constant from the right side into a variable

doivosevic avatar Mar 26 '18 09:03 doivosevic

Thanks, I've resolved it by using a boolean variable.

olisterr avatar Mar 26 '18 10:03 olisterr