An unexpected error occurred after a database command was cancelled..
Have you added this field in a particular role center, if yes then are you trying to calculate all sales invoice amount or for a specific period.
I don't see any date filter in you calcformula.
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.