Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Export to Datalake. Power BI refreshes in service, periodically fail.

(0) ShareShare
ReportReport
Posted on by 158

Our situation: 

  • Microsoft Dynamics F&O Setup with Export to (Synapse) Datalake.  i.e. it's constantly updating the files in the Datalake
  • Synapse Serverless DB, with views that hit those CSV files in the datalake
  •  
 
Refreshes with either Power BI desktop, or in the Power BI service, will intermittently fail.  I think the most relevant bits of the error message are: 

'Unexpected end-of-input within record... '  <--- This part is always the same
Tables/General/Miscellaneous/PMIPBillingScheduleTable/PMIPBILLINGSCHEDULETABLE_00001.csv'. <--- This part will change to a different table each time. 
 
I think the issue is the files being constantly updated by Microsoft Dynamics FO, because: 
  • Last at night updates: 100% go through fine
  • Evening updates: 90% go through
  • Middle of day: 70% go through - i.e. when those CSV files are getting the most updates
  • Every failure is the same error, but tends to reference a different high-activity CSV file
 
I've posted over in the Power BI forums, but not gotten any info. 

But given this is a MS ERP, going into an MS cloud produce, then read by MS's premier reporting product -surely there must be best practices? 
  • Verified answer
    bbb0777 Profile Picture
    158 on at
    Export to Datalake. Power BI refreshes in service, periodically fail.
    OK, this is not specific to Power BI - was able to recreate the error in SSMS. 

    Also found some documentation from Microsoft
     
     

    Q: When I read data files by using Synapse serverless, I notice an intermittent error: "Unexpected end-of-input within record at...."
    A: When tables records are frequently updated or deleted in finance and operations apps, you might notice a read/write contention on CSV files, and this error might occur. This issue occurs when the Synapse serverless SQL service queries a CSV file as it's being updated. In many cases, you might be able to fix this issue by retrying the query.
     
    So this isn't a specific to Power BI error. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,961 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,801 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans