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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard