web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Table error from Formu...
Power Apps
Unanswered

Table error from Formula Data type Column - Date and Time

(1) ShareShare
ReportReport
Posted on by 34

Hi, hoping someone can help with this error I'm receiving on a dataverse table:
Sql error: A SQL arithmetic overflow error occurred...

I've traced the error to a Formula column (the new type). The column formula is:

DateAdd(Refresh_Start, Typical_RefreshTime, TimeUnit.Seconds)

Refresh_Start is a Date/Time column, Typical_RefreshTime is a Decimal number column.  This was working fine until tonight, I went to change the value in a record for Typical_RefreshTime from 660 to 1080, and then the table fell over and couldn't load, per error above. After getting the table back working by editing the formula (changed Typical_RefreshTime to 10, then changed it all back to as it was) I started trying different amounts to see what it's breaking point was. It turned out to be 822 obviously 🤨.  Have I discovered the limits of DateAdd when it comes to adding seconds or is it because I'm not using an integer and 822 is the limit to it's decimal truncating skills?  I found this link which may explain it, if I understood what it meant!

Any help greatly appreciated!

I have the same question (0)
  • Kristian_Cole Profile Picture
    195 on at

    Perhaps it might be an option to refresh on minutes rather than seconds. I notice in your link that seconds processes can affect the date, whereas adding seconds will not affect the date. Also the seconds doesn't work off decimal? It needs to be an integer.

     

    There is no 1.5 seconds, you get 1 or 2. now you can calculate milliseconds but that also works in integer only.

     

    if this solves your issue please accept solution.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard