Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Cannot read property 'substr' of null

Answered
Jimmy asked on January 7, 2021

Hello Flexmonster,
I’m getting an error: Cannot read property ‘substr’ of null.
And then it just stalls at “Analyzing data…”.
https://jsfiddle.net/t206xcky/
It looks like it happens then I have more then 4 rows in a multilevel hierarchy.
The whole error message:
Uncaught TypeError: Cannot read property ‘substr’ of null
at b.spa (<anonymous>:31867:616186)
at b.lc (<anonymous>:31867:611899)
at b.lc (<anonymous>:31867:630545)
at b.insertData (<anonymous>:31867:670086)
at b.gu (<anonymous>:31867:669170)
at Object.jo (<anonymous>:31867:667290)
at Function.rea (<anonymous>:31867:135013)
at oEa (<anonymous>:31867:134928)
 
Jimmy

Attachments:
Capture.PNG

1 answer

Public
Milena Pechura Milena Pechura Flexmonster January 11, 2021

Hello, Jimmy!
 
Thank you for writing to us and for providing the JSFiddle example, error message, and the screenshot of the pop-up. It greatly helped us to investigate the issue.
 
Testing your example, we have found that the problem occurs due to the fact that the values of ThirdLevel and FourthLevel fields are null.
Our team will provide the fix for this issue in the minor release with the ETA Feb 8. We will notify you as soon as the new version is released.
 
As a temporary workaround, we suggest changing the null values to "" (empty strings).
 
Do not hesitate to contact us in case any questions arise.
 
Kind regards,
Milena

Please login or Register to Submit Answer