AUS-DOH-Safety-and-Quality / PowerBI-SPC

A free and open-source PowerBI custom visual for SPC charts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Internal Error: t.at is not a function

alex-cplee opened this issue · comments

Hi Andrew and HQIU,

I am trying to get both SPC and funnel plot visuals working in our organisation but they both have the same an error output "t.at is not a function".

PowerBI SPC error

Our Power BI version is 2.107.841.0 64-bit (July 2022) - I know it is old but it is what we are using. I am suspecting the older version of Power BI Desktop may yet to support the .at method, although there might be other reasons (e.g. organisation security settings?) that might cause this issue.

Alex

Which version of the Visual are you using?

Given how old the PBI version is have you tried using the oldapi releases PBISPC.1.4.0.3-oldapi.pbiviz?

Which version of the Visual are you using?

I am using the latest version in the appsource - 1.4.0.2 (https://appsource.microsoft.com/en-us/product/power-bi-visuals/healthdepartmentwa1667894240640.powerbi-spc-charts?tab=DetailsAndSupport)

have you tried using the oldapi releases PBISPC.1.4.0.3-oldapi.pbiviz?
this is difficult because my organisation does not allow Github access. I tried to download one of the pbiviz file and send it to my work inbox but the file got blocked; and we cannot use own USB to transfer file over.

Anyway if I publish a dashboard with a SPC/funnel plot in Power BI service, the visual is working as expected. The error message only appears in our version of Power BI Desktop; luckily I can still drag and drop fields, it's just that I cannot see the output until I publish the dashboard which is inconvenient.

@alex-cplee Sorry about that! It looks like the .at() member function is somewhat new and is only recognised with pretty recent javascript runtimes. I've merged #205 with a fix, can you see if the development version works for you locally now?

@andrjohns Thanks for the fix. Our organisation blocks Github access and does not allow attachment of any file with typescript-like file in email, and we are not allowed to transfer file via USB either. Unfortunately for me the only way I can check if the fix works is for you to push the development version to production. As far as I can see the fix works for my home version Power BI Desktop (2.122.746.0 64-bit (October 2023 release)), so it should be safe to push the fix to PROD without affecting other users. Once you update the PROD version I will let you know if the fix works!

Great! Aiming to submit a new version next week, so should be updated in the new year