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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vicngo
New Member

Date values out of bounds causing dataset refresh to be cancelled

We are getting an error refreshing our PowerBI datasets against our SQL database tables.
   

     "Cancellation occurred when sending or receiving a request"

 

Tracking down the issue, it looks like some of our date column values are out of range.  Removing the rows that have out of range values unblocks the refresh.

 

Our SQL tables have datetime2 columns, which in some cases we populated with the .NET DateTime.MinValue value of '01/01/0001'.  This is out of range for a datatype of datetime, but not of datetime2 and we suspect that is causing the issue when refreshing.

Is there a way we can configure our dataset refresh job to allow dates within the datetime2 time range?

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @vicngo,

 

>>Is there a way we can configure our dataset refresh job to allow dates within the datetime2 time range?

Nope, I don't think it is possible. Perhaps you can consider to change column type to store these unsupported data.

 

Based on test, power bi default min date is 1/1/1900, available min date is 1/1/0100 when you use date function.

It is impossible to setting date less than 100, if you try to do it, power bi will re-format as 1900+x year.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors