Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
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!

  • Kristian_Cole Profile Picture
    195 on at
    Re: Table error from Formula Data type Column - Date and Time

    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 19

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 15 Super User 2025 Season 1

Overall leaderboard

Featured topics