As a beginner in Power BI , above is a simple chart I created using Speckle.
Iāve installed version 0.0.7 of the Power BI connector, and I get this with my own streams, but can connect to a stream created by someone else.
Iāve tried creating two public streams, each from a separate (and very simple) Revit model. The streams looks OK in the browser. If I try to connect to them in Power BI I get āyou are not authorizedā.
Someone else in my organisation can connect to my stream using the same URL, and I can connect to their stream using their URL, I just canāt connect to my own streams!
An example stream that Iām unable to connect to is: Stream | Speckle (arup.com)
Hi @colin.magner!
Welcome to the community! Feel free to Introduce yourself š if you havenāt already!
I tried reproducing the issue in my computer but everything seems to be working fine. I can:
- Fetch the example stream you provided with no issues (thx for sharing it)
- Fetch my own created streams anonymously and using a token
- Fetch streams that are public anonymously and using a token
It occurs to me that it may have something to do with your credential settings in PowerBI
Then clear any existing entries referring to Speckle from the window that will pop up.
This will force PowerBI to re-request your credential strategy the next time you fetch data. I suggest you try both:
- Accessing the data without providing a token (the Public Stream option).
- Accessing the data by providing a token (the Private Stream option).
Since auth tokens do expire (@dimitrie please correct me on this one?), make sure you create a new token when you try this.
Let us know how it goes!
Hey @colin.magner , since youāre on the Arup server it might be worth trying with ours as well to at least remove that variable: https://speckle.xyz/
Thanks for the suggestions Alan, Tecocomi.
Working on the Arup v2 server, after clearing the source settings:
- The public option still gives me āyou are not authorisedā. I tried applying at all three levels (I assume normally youād do this at the specific stream level).
- The private option worked after generating a new personal token (set to āStreams:readā).
I created a new public stream with the same data on your server ( Stream | Speckle), and I can connect to this OK.
This is all very strange, as another colleague is able to connect to my stream with Power BI when itās set to public, itās just that I canāt! But I can connect to one of their public streams on our server.
Hey @colin.magner, is the stream you provided still public? I canāt seem to access it anymore.
Not pointing any fingers here, but it seems like the problem may be on the Arup server?
Just for clarification, you can set your credentials at the server level instead of āper-streamā and any streams you fetch will use the same credentials. Given your server is kind of privateā¦ I would just default to fetching everything with your token (public or private). I find this handier than setting the credentials on a āper-streamā basis.
Fetching any stream with a token will also provide the server with information on who is receiving the data. If you fetch it without a token, your commitās wonāt be tagged as received.
So Iād recommend, in general, using āPrivate Streamā option with your token and set it to the server url level.
Anyway, do let me know if the stream remains set to public, since iām now getting āYour are not authorisedā messages too! There may be some lurking bug that we need to look into!
Thanks Alan. The stream is still private, so itās not a problem at your end!
Takeaways from this:
- Iād prefer to use private streams rather than public, so using private and an access key by default sounds good.
- Iāll find out who our server admin is and let them know about this anyhow, in case thereās an underlying issue thatās causing this behavior
- Youāve also shown me how to reset the credentials for a Power BI source, so thanks for that!
Thanks again.
Hi,
Resurrecting an old thread, as Iāve found new issues with connector version 0.0.7 and 0.0.6.
I get the following errors for both private and public streams (all on Arup server):
and if I use a specific commit I get this error:
This all works fine on version 0.0.5.
Hi @Joe_Landers , before we dig into this, can you please tell us if you have the same issue on XYZ? Unfortunately, we cannot debug things on servers other than ours.
Thanks!
I just had a call with our internal Speckle team to discuss this, and prior to the meeting I got my streams loaded up and tested connecting them into Power BIā¦ and they worked.
As far as we are all aware nothing has changed. We havenāt changed any Speckle server configuration (that those of us on the call are aware of), and I havenāt changed the Power BI connector (which is still 0.0.7) but I can now connect to both my public and private test streams.
Hi, managed to find some free time this evening to test this.
Yes, can confirm the same data on XYZ works and streams into PBI 0.0.5 and 0.0.7 connector (didnāt try 0.0.6).
But now 0.0.5 has stopped work on the Arup server. Very frustrating. @colin.magner did you have any more updates? I will make contact with our internal Speckle team to inquire.
Hi @Joe_Landers, I just tried and itās still working. I honestly have no idea why it started working, and was unable to identify anything that changed in terms of software/configuration etc.
Iāve using the v0.0.7 connector, Power BI desktop 2.100.1182.0 64-bit (December 2021), and our v2 Speckle server.
After Joe and I cleared our Speckle related data source settings, the PowerBI connector is able to receive again! I had the same issues as Joe. We are both using the James Bond (0.0.7) version.
Would it be an option to have the connector handle this automatically? Maybe first try to fetch the stream using any existing PowerBI data source settings and in a second attempt ignore any PowerBI data source settings?
(or maybe just a message in the āUnable to connectā pop up that the user could try to clear their data source settings via File > Options > Data source settings)
Hi all! Iām trying to deal with with connecting data from speckle.xyz server to PowerBi using v0.0.7 connector. I think Iāve used all combinations listed above - the message remains - for commit and stream
Each time I remove Data source settings, but still with no luck
However, I havenāt tested the private link, because I donāt know from where should I get the activation token. Where shall I look for it?
Hey @oliwer,
you can create new tokens from your profile page at the Speckle server (Speckle in this case). You can find out more about it here: Personal Access Tokens | Speckle Docs
Weāve recently changed the UI so the screenshots may be a little outdated, but its basically the same process. This is the section youāre looking for:
It helped! Private stream does the trick. Thanks a million!
Hey all,
I am waking up this thread, cause this happened to me today, but not with every streamā¦
Here is the stream:
It works when I give the link of a commitā¦ but not of the stream itselfā¦ Of course, I want my data to be updated every time a new commit is uploadedā¦
(Just as a temporary solution, how to switch the commit address to another one? To make a āmanualā update of the data ?)
Thanks again for your great work Speckle Team !!!
Hey @BaudouinNP ,
This is the same issue @Mohamed_Elmasri had and it can be solved by adding your token to PowerBI. This is how you do:
-
Go to you Profile on Speckle server. https://speckle.xyz/profile
-
Under Developer Setting Create a
New Token
-
Set its name as
PowerBI Connector
and check every option underScopes
and clickSAVE
. -
This will create a token for you. Make sure you copied it. It is the first and last time youāll be able to see this token. Treat it as a Password and do not share with anyone.
-
Go to Power BI > Options and Settings > Data source settings.
-
Go to Global Permissions and select your Speckle server.
-
After selecting server, follow Edit Permissions > Edit > Private Stream. Paste your Token into
Personal Access Token
input. -
Thatās it. It should work now.
If you have trouble seeing your server under Data sources, simply delete existing servers. Go back to Speckle connector and try to receive the same stream/branch/commit. Youāll have the option to add it from there.
Normally you should be able to receive public streams without adding any token and this is a bug. Weāll fix this in the coming releases (hopefully).
Let me know if this helps.
This has been resolved with v0.0.12 of our PowerBI connector.
We have fixed this issue where users were not able to connect to public streams without a token. You can now connect to public streams without a token.