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

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

Reply
PDKing
Regular Visitor

API timing issues

Is there any relevance to 10am (central) when trying to send data to a Semantic Dataset through the PowerBi API?

 

I have a script monitoring a log file on multiple machines. When the script sees the log file change it pulls the relevant data from the log file and sends the data to to post in a streaming dataset via the API (and an email to me). Each day I get multiple emails with data for events from the log file prior to 10am, but that data never shows in my PowerBi report. Any data sent after 10am from the same script loads fine. My firewall team has confirmed that the traffic is leaving our firewall.

1 ACCEPTED SOLUTION
PDKing
Regular Visitor

The 10am mystery has been resolved.

 

I was creating the DateTime input for the dataset from the log time value being written to the log I am monitoring. Hours before 10am are being written as a single digit to the log and that does not meet the format requirements for the dataset. If anyone else is having a similar issue below is how I resolved mine (PS script).

 

    $Year = Get-Date -Format yyyy
    $Day = Get-Date -Format dd
    $Month = Get-Date -Format MM
    $H = Get-Date -Format HH
    $M = Get-Date -Format mm
    $S = "00"
    $MS = "000"
    $DateTime = $Year + "-" + $Month + "-" + $Day + "T" + $H + ":" + $M + ":" + $S + "." + $MS + "Z"

View solution in original post

4 REPLIES 4
PDKing
Regular Visitor

The 10am mystery has been resolved.

 

I was creating the DateTime input for the dataset from the log time value being written to the log I am monitoring. Hours before 10am are being written as a single digit to the log and that does not meet the format requirements for the dataset. If anyone else is having a similar issue below is how I resolved mine (PS script).

 

    $Year = Get-Date -Format yyyy
    $Day = Get-Date -Format dd
    $Month = Get-Date -Format MM
    $H = Get-Date -Format HH
    $M = Get-Date -Format mm
    $S = "00"
    $MS = "000"
    $DateTime = $Year + "-" + $Month + "-" + $Day + "T" + $H + ":" + $M + ":" + $S + "." + $MS + "Z"
lbendlin
Super User
Super User

 sends it off to the API

Please elaborate. Are you pushing rows into a streaming dataset or are you requesting a dataset semantic model refresh ?  The latter is subject to throttling/discarding if you issue too many requests, or if you issue a request while a refresh is already in progress.

This issue is when attempting to push data into a streaming dataset.

There are some limitiations on the push frequency but I wouldn't think they would cause your situation. Check them out anyway.

 

Power BI REST APIs push semantic model limitations - Power BI | Microsoft Learn

Helpful resources

Announcements
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.

Top Solution Authors