"cannot convert from 'UserControl Chart: "Microsoft.Dynamics.Nav.Client.BusinessChart"' to '__MissingTypeSymbol__" still present
Describe the bug This is actually just a way to reopen #3423, since it's been locked I cannot comment on that anymore.
But all you need for repro is documented there. Probably @atoader have more information. The error should have been fixed back in September, but it does not work now when I tried on BC14.
To Reproduce Steps and to reproduce the behavior:
- Try to compile below code
// Welcome to your new AL extension.
// Remember that object names and IDs should be unique across all extensions.
// AL snippets start with t*, like tpageext - give them a try and happy coding!
page 50100 MyPage
{
PageType = Card;
ApplicationArea = All;
UsageCategory = Administration;
layout
{
area(Content)
{
group(GroupName)
{
usercontrol(Chart; "Microsoft.Dynamics.Nav.Client.BusinessChart")
{
trigger AddInReady()
begin
gChartIsReady := true;
UpdateChart(false);
end;
}
}
}
}
var
gBusChartBuf: Record "Business Chart Buffer";
gChartIsReady: Boolean;
local procedure UpdateChart(pShowValues: Boolean);
begin
if not gChartIsReady then
exit;
// InitChartData(gBusChartBuf);
gBusChartBuf.Update(CurrPage.Chart);
end;
}
this throws the error:
{
"resource": "/e:/Users/NABJOHWIK/Temp/Test/ChartRepro.al",
"owner": "_generated_diagnostic_collection_name_#0",
"code": "AL0133",
"severity": 8,
"message": "Argument 1: cannot convert from 'UserControl Chart: \"Microsoft.Dynamics.Nav.Client.BusinessChart\"' to '__MissingTypeSymbol__'",
"source": "AL",
"startLineNumber": 39,
"startColumn": 29,
"endLineNumber": 39,
"endColumn": 43
}
Expected behavior No error
Versions:
- AL Language: 3.0.121490
- Business Central:
- Microsoft_Application_14.0.29537.0.app
- Microsoft_System_14.0.29530.0.app
@atoader, any progress to share? Any chance that we could get this fixed before fall release?
Getting same issue with on-prem BC 14 Cumulative Update 1.
This is preventing us from creating or deploying any Business Charts with our add-ins/extensions.
I have this issue - have just downloaded symbols from sandbox (15.0.35903.0 (Preview)) and this is thrown to me as an error too. What can I do - I need to prepare multiple tenant extensions for next month and can't move on :(
I am using the VSIX from the BC Preview 1 DVD. Name: AL Language Id: microsoft.al Description: AL development tools for Dynamics 365 Business Central Version: 4.0.170493 Publisher: Microsoft
@atoader - Any news on this when we can expect it to be fixed ?
The fix for this issue has been checked in to the master branch. It will be available in the bcinsider.azurecr.io/bcsandbox-master Docker image starting from platform build number 35988 and VS Code Extension Version 4.0.172399.
If you don’t have access to these images you need to become part of the Ready2Go program: aka.ms/readytogo
For more details on code branches and docker images please read: https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/ https://blogs.msdn.microsoft.com/freddyk/2018/04/16/which-docker-image-is-the-right-for-you/