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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.