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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
hmbedford
Frequent Visitor

Dataflow Refresh Error: DateTime operation failed because the resulting value falls outside the rang

Hi

 

I have a dataflow setup which pulls from an onprem SQL server (Via gateway). The table has a Year, Month and Day column that I am using to build a date string:

 

Table.AddColumn(#"Changed column type", "Date"each #datetime([Year], [Month], [Day], 000)),
Table.TransformColumnTypes(#"Added custom", {{"Date"type datetime}}, "en-GB")
 
I am using this column in the Incremental Refresh Settings, but results in a refresh error that states:
 
Error: PipelineException: The DateTime operation failed because the resulting value falls outside the range of allowed values. .. RootActivityId = e97cd39f-2f6b-415b-b298-788aba85cab2.Param1 = PipelineException: The DateTime operation failed because the resulting value falls outside the range of allowed values. Request ID: be919842-9f3f-bbd6-69eb-596101612cf9.
 
I have the project options set Local 'English (United Kingdom)' and converted the DateTime field to en-GB.
 
Hopefully someone has the anwser 🙂
 
Thanks
Hayden
1 REPLY 1
lbendlin
Super User
Super User

Some questions: why are you specifying datetime but only feed it a date value ? Is that for incremental refresh?

And what's the reason for specifying the en-GB locale?  That shouldn't really be necessary?

Note that you are not creating a string, you are creating a datetime value.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.