Quantcast
Channel: Developer topics
Viewing all 17937 articles
Browse latest View live

Power BI integration with IoT Central and Azure ML - End-to-End

$
0
0

Hello Forum,

Good Day !

I am new to this Forum. Can anyone help me in implementing below use case, integrating Power BI, Azure ML and IoT Central.

 

Use-case:

IoT Central --> Power BI --> Azure ML Web Service

Basically, I need to feed real time / periodical IoT Data from IoT Central to Power BI, and in Power BI, it can call predefined Azure ML Web Service, with taking incoming data as INPUT and visualize ML's output in Power BI itself.

 

Could anyone please guide me on this thing, whether this can be possible or not? And if yes, then How?

If not, is there any way around this, to call Azure ML service from IoT Central itself while visualizing or via Power BI?

I really appreciate your help. Thank you in advance.

 

P.S. I checked integration between IoT Central and Power BI, using Stream Analytics and Blob Storage.

Also checked how to invoke Azure ML model from Power BI (which is in Preview right now, I think), but ahead of both these,

I didn't find anything regarding real-time integration between all 3, IoT Central, Power BI and Azure ML.


Why does developer visual work in one report but not in another?

$
0
0

Hi, I have built a double-histogram as a custom visual. I can preview fine using the developer visual in Power BI Service. 

 

Now I try to pull the same developer visual into a different report, with the server serving the same visual from the same location. I'm using the same browser (Chrome). I've tried logging in and out etc. But the visual won't work properly. The Formatting pane doesn't show any of my "objects" from capabilities.json, for example. And the data roles in the Fields pane show, but won't let me drag and drop any fields into them. Initially I got an error saying "The visual isn't configured correctly to render the visual". But this error no longer displays.

 

The second report has an updated data model. However I'm not even getting to the point where I can pull altered data into the report. I'm getting no particular errors in the console, apart from some 404 and 500 server errors when I switch reports (which i think is normal).

 

The visual compiles fine and I have packaged to a pbiviz file. When imported, this file won't work in either report.

 

Does anyone have any idea what the cause can be? I'm really confused.

Power Bi Javascript Embed - Error event handler not firing on access token expiry

$
0
0

Hi,

My embeded report will fire errors for issues such as trying to load an incorrect page but it won't fire off an event when the access token has expired. I have seen this error get displayed in the past with a message such as below : 

`

message: "VisualErrorSeeDetails_TokenExpired_pivotTable"

`

When the token expires the subscribe api call fails - shouldn't the error event handler be picking that up? (POST https://wabi-north-europe-redirect.analysis.windows.net/powerbi/refresh/subscribe 401)

 

the event handler:

  report.on('error', (error=> {
                console.error(error);
                showDisplayError('Report error'error.message);
});

 

 

Error running Powershell Get-PowerBITable

$
0
0

Hello,

I've experienced an error while running the following command:


Get-PowerBITable -DatasetId [My Dataset ID Here] -WorkspaceId [My Workspace ID here] . Error is as follows:

Get-PowerBITable : Operation returned an invalid status code 'NotFound'
At C:\Powershell Tests\Test.ps1:6 char:1
+ Get-PowerBITable -DatasetId ..... -Wor ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Microsoft.Power...GetPowerBITable:GetPowerBITable) [Get-PowerBITable], HttpOperationException
+ FullyQualifiedErrorId : Operation returned an invalid status code 'NotFound',Microsoft.PowerBI.Commands.Data.GetPowerBITable

 

Please kindly assist.

 

Regards,

Joe

The XML for Analysis request timed out before it was completed. Timeout value: 225 sec

$
0
0

Hi - I am using Power BI Embedded and am all the way up to the A5 dedicated resources (50gb) because I thought that was the issue with some of my visuals "exceeding memory resources".  However, it seems to be a time based issue.

 

I get this message on the technical details: "The XML for Analysis request timed out before it was completed. Timeout value: 225 sec"

 

The PBI file itself is only 70mb, but there are dozens of measures/algorithms running to perform multi-year scenarios.  Some of the visuals may take 5 minutes or so to render in my PBI Desktop app and top out at like 16gb of memory usage, but I can't get them to load on A5 dedicated resources because they exceed 225 sec.  

 

Is there some place to change this setting?

 

FYI - most people chime in on problems like this saying "filter your data, optimize your queries, etc...." I'm not looking for that kind of advice, but rather how to exceed this 225 sec timeout.

 

Thanks!

Invitation to my PowerBI (Advanced) LiveWebinar

$
0
0

Hi PowerBIFolks,

 

FotoJet.jpg

 

I'm very happy to invite you all for my upcoming Live Webinar on Nov 23rd 5 PM IST. 💻

 

I answered and replied lots to questions in this Forum who are having issues with automating their PowerBI Report either using REST API/PowerShells. So I thought why not deliver a webinar which will help many of our community members. 😊

 

So here is the registration link

http://bit.ly/dearazdevops

 

 

Here is the agenda:

  • Need of CICD Power BI 
  • Defining Environments in Power BI 
  • Best Practices 
  • Power BI Authentication
  • Power BI Action and PowerShell way of deployment

 

I hope to see you all there at the event !

 

Thanks !

Jay

Unable To See Connect with dataflows From Power Bi Desktop

$
0
0

Hi ,

While I am trying to connect  with dataflows(using Blank Query to call API) from PowerBi Desktop , I could see Workspace & dataflows Name but could not find datasets under the name.Note I am using Power Bi service  Pro account .

dataflows.PNG

 

 

Can anyone help me on this or Suggest me how to solve this withing this scope .Or i need a Premimum Workspace for this. or Azure Datalake Storage Gen 2  Subscriptions??

 

Thanks

Nasrin

Inconsistance (and bug?) in API - "Datasets - Get Refresh History In Group"

$
0
0
Via web interfave -- status "In progress"
 
 
Via api -- status "Unknown" and missing(!) endTime attribute
{"id": 2764425337,"refreshType": "OnDemand","startTime": "2019-11-22T12:38:02.067Z","status": "Unknown","requestId": "4ec74f57-3a79-53e1-acee-34b9ecec2207""id": 2697968141,"refreshType": "OnDemand","startTime": "2019-11-06T13:01:17.167Z","endTime": "2019-11-06T13:29:55.317Z","status": "Completed","requestId": "e027da75-a160-77f7-b59f-0b29ca6efed3"

 

aaa.png


customer journey visualisation in 3D?

REST API {id} does not generate valid appURL. Bug?

$
0
0

Hi!

 

At the moment we have a PowerShell script that uses a username and password to authenticate to Power BI REST API and then calls "Get Groups" to get all workspaces the user has access to and then "Get Reports in Group" for each workspace, to generate a list of reports with ID, Name, WorkspaceID, WorkspaceName and URL.

The URLs link to the reports just fine and look like this:

https://app.powerbi.com/groups/{workspaceID}/reports/{reportID}/

 

Now we want to update the script to link to our Apps rather than our workspaces. App URLs look like this:
https://app.powerbi.com/groups/me/apps/{appID}/reports/{newID}/

 

What is this {newID} and why can't I get it from the REST API? The embedUrl returned from "Apps - Get Reports" returns an error, probably because it uses {reportID} rather than {newID}

 

How can I get {newID} another way than manually copying from the URLs in Power BI Service?

Row Level security in Power Bi Report Builder

$
0
0

I am trying to find a way to implement Row Level Security in Power BI Report Builder. Can someone help with the same. It seems the feature is not yet in the Power BI Report Builder, then in that case can someone help to provide workaround for the same?

 

Thanks !!

Cannot disable both nav content pane and filter pane when embedding report with JS API

$
0
0

When I use powerbi-client (2.10.2) in JavaScript to embed a report, I can't hide the filter pane when the nav content pane is also hidden

If I pass

filterPaneEnabled: false, navContentPaneEnabled: true

the nav content pane is shown, but the filter pane is successfully hidden.

But for

filterPaneEnabled: false, navContentPaneEnabled: false

the nav pane is hidden, but the filter pane shows.

 

Unable to get property 'powerBiEmbed' of undefined or null reference

$
0
0

i'm using embed power bi script > html file 

code >>

var embedContainer = $('#embedContainer')[0];
var report = powerbi.embed(embedContainer, config); ( >> thr error ) 

 

error >>

the error on debug window (F12)   

Unable to get property 'powerBiEmbed' of undefined or null reference

 

i can view the report with >> <div id="reportContainer"> </div>

 but can't define report element 

 

ref >>

<script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/jquery/dist/jquery.js"></script>
<script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/powerbi-client/dist/powerbi.js"></script>

 

 

 

 

parameter after parameter

$
0
0

lets say i have 2 parameters in paginated pwoer bi report builder, when i select a value in the first paramter, does it automatically filter it down to only values that is related to the first paramter to display in the drop down list in the 2nd paramter ? if not, is there a way to do it ?

Can't figure how to configure a primary key for push datasets I created using the REST API

$
0
0

When testing out the REST API, I created a push dataset with a table called Contacts. This table was given two columns: "id" as an Int64 and "name" as a string. If I insert two rows with the same name value, I end up with one row containing an id value which is the sum of the value from both records. This appears to implicitly make the "name" column a primary key, with the implicit behavior of adding any numeric fields together. To make matters worse, I can't find any way to view the rows after they are inserted. Not from the API, the service, or the desktop app. How am I supposed to know if the ids are even being added together or if this is just how every visualization chooses to display the data? This black-box style of storage and configuration is quite unappealing compared to any SQL database experience.

I've spent a lot of time reading documentation for Power BI, including the information for push datasets (which is what I set the "defaultMode" to). I did not find anything mentioning this sort of behavior. I'm really hoping there is some sort of reference explaining how to control the primary key (if there is one?) and what happens for duplicate key inserts. For my use case, I need the primary key to be a number and, if possible, replace values if a row is inserted with duplicate key, not add them together.


Custom Data Connector OAuth2 refresh token not updated

$
0
0

I have created a custom connector for an online ERP web service. The data refreshing works fine for the first 10 minutes and after 10 minutes the access_token is expired and a new access token is requested using the last stored refresh_token. The first call to get an access_token succeeds and the response contains the new access_token and a new refresh_token. This should be enough but for some reason, immediately after this request, another access_token request is done with the same refresh_token as the first call and, because the OAuth service as strict refresh_token checking, this fails. I checked the timing using Fiddler and the requests come one after another so it should be possible to use the new refresh_token.

 

So my first question could there be something wrong with my code (my code is similar to that of the MyGraph example) that causes the new refresh_token not being used?

And secondly why do the refresh_token calls happen so often? I found out that number refresh_token requests that it tries depend on the number of tables in the pbix file. But to my knowledge, it shouldn't be necessary to request a new token for each REST call right?

 

Can someone please let me know whether I'm doing something wrong or that it is a problem in the SDK.

Thanks!

Unable to load data from Access DB

$
0
0

Hello,

 

Power BI crashes when I load data from an Access DB.

 

I have lost an entire day trying to fix it.

 

Can you please help me please? 

 

My colleagues have the same issue. 

 

Nory

Dashboard doesnt update when Excel database is modified

$
0
0

So, the "live" dashboard doesnt update by itself, I have to do ctrl + f5 och refresh the page in order for the dashboard to show the new values

Dataflow refresh status - API

$
0
0

Hi,

 

I am trying to get a refresh status of a Dataflow through API.

 

I can look to see if the last refresh time is "today" so i know it has successfully completed, howerver, if the refresh fails the last refresh time stays at the last successful refresh time. So is there a way to pull back the Status of the latest refresh like there is with Datasets?

 

Thanks all

How do I listen for onReportRendered when opening an embedded report with Puppeteer?

$
0
0

Hi.

 

I am trying to set up a way to get uniform, good-looking screenshots of our entire collection of reports. So far everything works perfectly, but at the moment the script just waits 16 seconds before taking the screenshots assuming the report has completed rendering. The problem is that some reports finish rendering in a couple seconds, whereas some of our heaviest reports take several minutes to render. The render times differ each time as well, since they depend on the current load on our backend. 

 

I noticed in DevTools that function onReportRendered is called when the report finishes rendering. Is there any way to tie into that function, so that my script will wait until either the report says it is rendered or a hardcoded timeout is reached before taking the screenshot?

 

onReportRendered in DevTools:

onReportRendered.png

onReportRendered2.png

 

Working script, but with hardcoded sleep():

 

 

const username = "user@company.org"; const password = "hardcoded"; const puppeteer = require('puppeteer'); const options = {headless: false}; const sleep = ms => new Promise((resolve) => { setTimeout(resolve, ms); }); (async () => { const browser = await puppeteer.launch(options); const page = await browser.newPage(); const screenshotFull = fileName => page.screenshot({ path: `./images/${fileName}.png`, }); await page.setViewport({ width: 1920, height: 1080 }); await page.goto('https://app.powerbi.com/?noSignUpCheck=1', { waitUntil: 'networkidle0', timeout: 60000 }); await page.waitForSelector('input[type="email"]'); await page.type('input[type="email"]', username); await page.click('input[type="submit"]'); await page.waitForSelector('#loginArea'); await page.type('input[type="password"]', password); await page.click('#submitButton'); await page.waitForSelector('#idSIButton9'); await page.click('#idSIButton9'); await sleep(15*1000); await page.goto('https://app.powerbi.com/reportEmbed?reportId={reportID}&groupId={workspaceID}&autoAuth=true&filterPaneEnabled=false&navContentPaneEnabled=false'); await sleep(16*1000); // This is the line I want to replace by something smarter await screenshotFull('report-1'); browser.close(); process.exit(0); })();

 

 

 

Viewing all 17937 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>