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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
tperzz
New Member

How to create a dataset with datasource using API call

I have tried this https://docs.microsoft.com/en-us/rest/api/power-bi/push-datasets/datasets-post-dataset
but only able to create dataset with tables but not datasource.
Getting error:
{
"error": {
"code": "InvalidRequest",
"message": "TOM deserialization failed for database sobe_wowvirtualserver|, Exception: <pi>Unrecognized JSON property: datasources. Check path 'datasources', line 1, position 6112.</pi>"
}
}

2 REPLIES 2
lbendlin
Super User
Super User

In my experience Push datasets don't even support multiple tables. There's only a single table "RealTimeData"  that is created for you. All you can do is specify column names and types.  

 

There is not really a data source either - you just push rows.

 

What kind of streaming dataset are you trying to create?

I am able to push multiple tables in a single dataset.

I am using streaming mode as Push  "defaultMode": "Push"

Still not able to create datasources along with dataset, on the contrary the API states that it can.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.