Console error "Cannot set property 'totalsuccess' of null" when trying to save

  • 1
  • Problem
  • Updated 3 years ago
  • Acknowledged
When trying to save changes, the page freezes for about a minute, eventually returning a console error of "Cannot set property 'totalsuccess' of null". I've attached screenshots of the error, stack trace and the point of the script where the error is being thrown.

Any ideas? The action the script is trying to perform is updating a single boolean field to true on one of our models.

If I could get a quick answer on this, it'd be much appreciated. Thanks!


Photo of Kathryn Castle

Kathryn Castle

  • 814 Points 500 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Pablo Martinez

Pablo Martinez

  • 2,468 Points 2k badge 2x thumb
Can you post the code of the save action? or you are using the Action Framework action save?
Photo of Kathryn Castle

Kathryn Castle

  • 814 Points 500 badge 2x thumb
Bingo! I updated the standard record and got "The record couldn’t be saved because it failed to trigger a flow..." Thanks Pablo. Gonna look into this further.
Photo of Pablo Martinez

Pablo Martinez

  • 2,468 Points 2k badge 2x thumb
Glad to be helpful.

But, is weird, that error should appear as a red band at the top of your skuid page instead of throw a js error (open call to devs xD)
Photo of Kathryn Castle

Kathryn Castle

  • 814 Points 500 badge 2x thumb
Yeah, that would have been a lot easier to diagnose :)
Photo of Josh Cutler

Josh Cutler, Official Rep

  • 864 Points 500 badge 2x thumb
You've found an uncaught Javascript error. Sorry about that!

We prefer to have errors displayed where can see them. Skuid did not "catch" the error and there were no visual indicators on the page to point out an error. The standard behavior for Javascript errors is the dreaded red band. You knew to look in the console for errors, but, as you can imagine, plenty of people wouldn't know where to look.

We've added this to our bug report and will release the fix as part of a patch (no comment on release date, sorry!).

Thanks for reporting this! Glad Pablo helped identify the root cause of the error.
Photo of Kathryn Castle

Kathryn Castle

  • 814 Points 500 badge 2x thumb
Thanks!
Photo of Irvin Waldman

Irvin Waldman, Champion

  • 9,006 Points 5k badge 2x thumb
Can you post your script?