Rock, Rock, Rockaway... Uncaught TypeError: Cannot read property 'length' of undefined

  • 2
  • Problem
  • Updated 2 years ago
  • Solved
Who doesn't like an Uncaught TypeError after installing a new package?

Photo of Irvin Waldman

Irvin Waldman, Champion

  • 9,006 Points 5k badge 2x thumb

Posted 3 years ago

  • 2
Photo of J.

J., Official Rep

  • 7,690 Points 5k badge 2x thumb
Official Response
I see the issue, and it's a bug in Rockaway. It has to do with model subquery conditions that have no sub conditions. Basically, if you don't have any, you'll get the error. Adding a sub condition that always returns true (e.g. Id != null) is a workaround. I've replicated the issue in my dev org, and logged the bug. The fix looks pretty easy, so I think we can get this turned around pretty quickly. Thanks for helping find issues like this!

Edit: This issue has been resolved in Rockaway Point Release - Iteration 1 (and subsequent releases), available from the Skuid Releases page.
(Edited)