HI, I am not able to use Business chart in BC 14, and getting the following error “cannot convert from ‘UserControl Chart: “Microsoft.Dynamics.Nav.Client.BusinessChart”’ to 'MissingTypeSymbol ”
When I searched I found out that, this issue exists in BC 14 as described in this github thread:
opened 12:53PM - 30 Apr 19 UTC
closed 07:00AM - 13 Sep 19 UTC
bug
ships-in-future-update
al-core-compiler
**Describe the bug**
This is actually just a way to reopen #3423, since it's be… en 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:
1. 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
I want to know the resolution for this issue ? Has it been fixed in some version of BC 14? I have tried multiple versions but same issues exists in all versions or there is some other way to fix it like importing of some objects may be ? thanks