c.getTime is not a function

  • 1
  • Problem
  • Updated 2 years ago
  • Not a Problem
Getting a console error and blank page. This is on an opportunity. We use Account as a 'borrower' record related to an Opportunity via a join object. This error only occurs when the Account's record type is Borrower Entity, but not when it's Borrower Individual. We don't have any time-related conditions based on these borrower accounts. Any ideas?

Photo of Jack Sanford

Jack Sanford, Champion

  • 8,322 Points 5k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Do you have rendering conditions that are different for Borrower Entity record types? From the call stack, I'd start there.
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,322 Points 5k badge 2x thumb
Fixed. There was a rogue model that didn't seem to do anything anyway. No fields were even being queried. Setting that to not load on page load made everything work. 
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,260 Points 5k badge 2x thumb
Jack~

Glad you were able to figure it out!

Thanks for the update :)
Karen