Dynamics NAV / Business Central Developer Digest - Vol 350
In this edition of Developer Digest, we focus on an issue with a hybrid install of Dynamics 365 Business Central version 13 and cumulative updates for June.
The Dynamics NAV and Business Central community, including the ArcherPoint technical staff, is made up of developers, project managers, and consultants who are constantly communicating, with the common goal of sharing helpful information with one another to help customers be more successful.
As they run into issues and questions, find the answers, and make new discoveries, they post them on blogs, forums, social media…so everyone can benefit. We in Marketing watch these interactions and never cease to be amazed by the creativity, dedication, and brainpower we’re so fortunate to have in this community—so we thought, wouldn’t it be great to share this great information with everyone who might not have the time to check out the multitude of resources out there? So, the ArcherPoint Microsoft Dynamics NAV Developer Digest was born. Each week, we present a collection of thoughts and findings from NAV/BC experts and devotees around the world. We hope these insights will benefit you, too.
Issue With A Hybrid Installation Of Business Central Version 13
Chris is having an issue with BC13: “I have a hybrid solution (I don’t think that’s the issue here) from another solution center and can’t rebuild their app file.
They have added the following field (basically a second copy of the Unit Price field) to the Sales Order Subform Page:
Field(“SBR Unit Price”; “Unit Price”)
DecimalPlaces = 2 : 2;
BlankZero = true;
AutoFormatType = 1;
AutoFormatExpression = “Currency Code”;
ShowMandatory = true;//TypeChosen;
When I update this field on my system, it works. When they update with their current .app, it works. When the customer installs the .app I built and tries to update this field, they get this error:
‘Function ID 2 was called. The object with ID 46 does not have a member with that ID.’
Function 2 is the RedistributeTotalsOnAfterValidate on the Page.
I’m sure I’m missing something simple.”
David offers: “Matt T is the man and can likely help.”
Matt T replies: “Ha, when it comes to hybrids, no one is the man. If it can’t find the function, but it is definitely there, the first thought would be the symbols need to be recreated. The symbols are the ‘connector’ between C/AL and AL and let the AL language communicate with C/AL objects. If I remember right, the first three steps in this blog on Generating Symbols in a Modern Development Environment outline it pretty well.“
Chris responds: “I’m pretty sure I have the correct symbols loaded (in this case, the function isn’t part of the C/AL changes; it’s a base function on the page). I have tried to load them in a new instance as well and get the same result. I have some symbols loaded or it wouldn’t generate the app. If I right click and go to Definition on the function on the custom field, it brings me to the correct function.
Kyle suggests: “Matt’s point is that there are two sets of symbols in play—one set you generate from C/AL so that AL can talk to those objects (one-directionally) and a second you import with Visual Studio Code from your development Docker container. But it works locally for you and fails when you try to install the app on the customer server.
Start by verifying exact app versions, comparing extensions installed on the server (including System and Base) to the extension you have installed locally, as well as to the symbols you have downloaded locally. The other thing to check is app.json. This could also be an extension dependency problem.”
Cumulative Updates For June 2021
June updates for Business Central on-premises and Dynamics NAV cumulative updates have been released:
- Dynamics NAV 2017 CUs -link: 5003470
- Dynamics NAV 2018 CUs – link: 5003471
- Business Central on-premises v 14 – link: 5003472
- Business Central on-premises v 16 – link. 5003473
- Business Central on-premises v 17 – link: 5003474
- Business Central Wave 1 2021 – Update 18.2
If you are interested in Dynamics NAV and Business Central development, be sure to see our collection of NAV/BC Development Blogs.
Read the “How To” blogs from ArcherPoint for practical advice on using Microsoft Dynamics NAV and Dynamics 365 Business Central.