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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

PowerShell REST APIs and cmdlets - sometimes get duplicate results

Hi,

 

I've just started using PowerShell and the REST APIs / cmdlets to pull Power BI data...and I'm finding cases where a command returns duplicate records. For example, if I run the following commands (where $workspace.Id is the value for a given workspace):

 

Connect-PowerBIServiceAccount

Get-PowerBIDataset -Scope Organization -WorkspaceId $workspace.Id

 

I sometimes see the same dataset listed twice. Every attribute on both listing is exactly the same including the Dataset ID...and I don't see two datasets with the same names when looking through the Power BI service.

 

Does anyone know why I might be getting duplicates? It's not just on datasets, I think I've seen this behavior on other types of objects as well. This is making some of the PowerShell scripting more complicated (especially as I know very little Powershell...)

 

Thanks!

Scott

1 REPLY 1
dpombal
Post Partisan
Post Partisan

I am having same issue , how to filter and get only 1?

Regards

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.