Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
FXFelix
Resolver I
Resolver I

Teradata refresh issue

Hello,

 

I have been using Power BI dataset refresh with Powershell for a long time, and everything works like a charm...but I am facing a new problem.

 

I have created two datasource with the same server Teradata, but with different users (and differents access rights).

I have a dataset connected to datasource1, and another dataset connected to datasource2.


When I try to refresh the second dataset from the service, everything is ok, but when I try to do it from our Powershell scripts, the refresh fails because it uses datasource1 rather than datasource2...

 

Does anybody face the same issue and find a workaround ?

 

Thanks for your help

1 ACCEPTED SOLUTION

Hello and thanks for the answer.

 

I found what was wrong in my api calls.

I was using the api "Datasets - Bind To Gateway"  (Datasets - Bind To Gateway - REST API (Power BI Power BI REST APIs) | Microsoft Docs) but by design :

Binds the specified dataset from the workspace to the specified gateway, optionally with a given set of data source IDs. If you don’t supply a specific data source ID, the dataset will be bound to the first matching data source in the gateway.

That was the explanation !

 

Maybe it will help future usages.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @FXFelix,

According to your decision, it seems like PowerShell has cached the credentials that you inputted at the first operations. When you work with the second operation which requires different credentials, PowerShell uses the cached one for authorization and it failed due to credentials not matching.

If that is the case, I think you may need to do some cache clear or sign-out operations before you do the second one.

Regards,

Xiaoxin Sheng

Hello and thanks for the answer.

 

I found what was wrong in my api calls.

I was using the api "Datasets - Bind To Gateway"  (Datasets - Bind To Gateway - REST API (Power BI Power BI REST APIs) | Microsoft Docs) but by design :

Binds the specified dataset from the workspace to the specified gateway, optionally with a given set of data source IDs. If you don’t supply a specific data source ID, the dataset will be bound to the first matching data source in the gateway.

That was the explanation !

 

Maybe it will help future usages.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.