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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PatrickHart
Regular Visitor

400 when pushing a date to Power BI

Hi

I am trying to push some data to Power BI.

My json looks like this: 

{
"Backup": "3",
"Restore": "1",
"DateTime": "2016-09-26T20:14:26:047Z"
}

 

The DateTime is a date in Power BI. If i try to post this I get a 400 bad request. If I dont have the DateTime in the json then everything works ok. 

1 ACCEPTED SOLUTION

 
Hey Patrick - 
 
Here is an example of a date string that Power BI expects:
 
"2016-09-30T00:13:00.107Z"
 
You can see this by going to streaming datasets, and creating an API streaming dataset with data of type DateTime.
 
I noticed that in your initial example, you had another colon between seconds and milliseconds - have you tried your initial format but with a period instead of colon?
 

View solution in original post

4 REPLIES 4
PatrickHart
Regular Visitor

@AnkitPatira

@Eric_Zhang

 

Thanks for the replies.

I have tried both:

{
"Backup": "1",
"Restore": "1",
"DateTime": "2016-09-28",
"Mirror": "2"

And
{
"Backup": "2",
"Restore": "1",
"DateTime": "2016-09-28 08:44:39"
}

I am still sure it has something to do with the date. If I remove the date time from the json it sends it up. The cell that is receiving the DateTime is a date on power bi side.

 
Hey Patrick - 
 
Here is an example of a date string that Power BI expects:
 
"2016-09-30T00:13:00.107Z"
 
You can see this by going to streaming datasets, and creating an API streaming dataset with data of type DateTime.
 
I noticed that in your initial example, you had another colon between seconds and milliseconds - have you tried your initial format but with a period instead of colon?
 
Eric_Zhang
Microsoft Employee
Microsoft Employee

@PatrickHart

 

Based on my test, Neither Power BI desktop nor the REST API server(400 in my test) can recognize that format datetime string.

A formated string as "2016-09-26 20:14:26" should work.

ankitpatira
Community Champion
Community Champion

@PatrickHart Maybe its the format of time stamp. Can you just try with Date without time.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.