The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I am using an embedded powerBI report in one of my Angular projects. I have a few reports, where I am using a date slicer and get an error when loading a report. The error occurs during the 'load' phase. The report renders correctly, but some of funcionalities, especially those connected to the slicer seem to not work. See the error below:
CustomEvent {isTrusted: false, detail: TypeError: Cannot read properties of undefined (reading 'selector')
at a.<anonymous> (https://c…, type: 'error', target: div.content-container, currentTarget: div.content-container, …}
isTrusted: false
bubbles: true
cancelBubble: false
cancelable: true
composed: false
currentTarget: null
defaultPrevented: false
detail: TypeError: Cannot read properties of undefined (reading 'selector') at a.<anonymous> (https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.slicer-api.min.a7547ea825d041780dfa.js:1:8861) at https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.min.a909023638f6ddcd868b.js:1:3057 at Object.next (https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.min.a909023638f6ddcd868b.js:1:3169) at https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.min.a909023638f6ddcd868b.js:1:2076 at new qr (https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.min.a909023638f6ddcd868b.js:1:1623688) at p (https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.min.a909023638f6ddcd868b.js:1:1801) at a.persistSlicer (https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.slicer-api.min.a7547ea825d041780dfa.js:1:8701) at a.<anonymous> (https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.slicer-api.min.a7547ea825d041780dfa.js:1:7954) at https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.min.a909023638f6ddcd868b.js:1:3057 at Object.next (https://content.powerapps.com/resource/powerbiwfe/scripts/reportEmbed.min.a909023638f6ddcd868b.js:1:3169)
eventPhase: 0
path: (8) [div.content-container, app-pbi-report.ng-star-inserted, app-shell.ng-star-inserted, app-root, body.mat-typography, html, document, Window]
returnValue: true
srcElement: div.content-container
target: div.content-container
timeStamp: 6489.699999999255
type: "error"
[[Prototype]]: CustomEvent
It seems to be an error in the slicer API on powerBI's side. Can you please help?
What is the code of angular project? Is there a default initial value when defining XX selector?