Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
Getting Power BI error Level in custom Error Handling
Post Flair (click to view more posts with a particular flair)
Post Body

We have implemented custom error handling in Power Bi component in our angular app from here Docs .Something like this:

this.report.on('error', (event: any) => {               
const error = event.detail;               
console.log("event",event)               
//If error is not Fatal log the error and continue              
if (error.level !== pbi.models.TraceType.Fatal) {                 
console.error(error);                  
if (this.retryCount < this.maxRetryCount) {                   
this.retryCount  ;                   
this.isReady = false;                   
setTimeout(() => {                     
this.loadReport(ReportDashboardConfig);                   }, 
this.retryCount * 500);                 } 
else {                   
this.isError = true;                 }                } 

But when we encounter error we don't receive any level property in our detail property in event object. This is the event.detail object:

{     "message": "QueryUserError",     "detailedMessage": "Can't display the visual.. Could not render a report visual titled: undefined",     "technicalDetails": {         "requestId": "Some value here"     } 

How to get the level of the error.
Thanks.

Author
Account Strength
100%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
17,687
Link Karma
4,641
Comment Karma
12,444
Profile updated: 1 day ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago