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

Resolved
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

11 answers

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

Public
Milena Pechura Milena Pechura Flexmonster February 9, 2021

Hello, Jimmy,
 
We are happy to let you know that the exception when loading JSON data with null values on hierarchy levels was fixed.
This is provided in the 2.8.26 version of Flexmonster: https://www.flexmonster.com/release-notes/.
 
You are welcome to update the component.
Here is our updating to the latest version guide for assistance: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
 
Please contact us in case any questions arise.
 
Best regards,
Milena

Public
Milena Pechura Milena Pechura Flexmonster February 23, 2021

Hi, Jimmy,
 
Our team is wondering whether the recent fix helped.
 
Please let us know if everything works fine.
Looking forward to hearing from you.
 
Kind regards,
Milena

Public
Jimmy February 24, 2021

Hello,
 
Yes it’s working.
 
Jimmy

Public
Jimmy February 25, 2021

Sry i spoke to early.
I’m getteing the following error now when having more then 2 rows:
Uncaught TypeError: Cannot read property ‘vb’ of undefined
at c.ic (<anonymous>:31536:534331)
at c.H8 (<anonymous>:31536:615213)
at c.ic (<anonymous>:31536:614094)
at c.Cpa (<anonymous>:31536:619164)
at c.ic (<anonymous>:31536:614177)
at c.ic (<anonymous>:31536:632775)
at c.insertData (<anonymous>:31536:672505)
at c.mu (<anonymous>:31536:671589)
at Object.ro (<anonymous>:31536:669709)
at Function.Aea (<anonymous>:31536:134848)
 
Jimmy

Public
Milena Pechura Milena Pechura Flexmonster February 26, 2021

Hi, Jimmy,
 
Thank you for notifying us about the issue.
 
Our team would like to inform you that we have not managed to reproduce it – there is no error on our end.
 
Could you please provide us with an example where the issue is reproducible?
This will greatly help us in our further investigation.
 
Waiting for your answer.
 
Best regards,
Milena

Public
Jimmy March 1, 2021

Hello Here is a JSfiddle:
https://jsfiddle.net/edgh93mb/
 
jimmy

Public
Milena Pechura Milena Pechura Flexmonster March 2, 2021

Hello, Jimmy,
 
Thank you for providing us with the example.
 
Our development team will take a look at this issue – the fix will be available with our upcoming release ETA 22 March.
 
Do not hesitate to contact us if any further questions arise.
We will be glad to help you.
 
Kind regards,
Milena

Public
Milena Pechura Milena Pechura Flexmonster March 23, 2021

Hi, Jimmy,
 
We are glad to announce that the exception when a multilevel hierarchy is specified with empty levels was fixed.
 
This is included in the 2.8.29 version of Flexmonster: https://www.flexmonster.com/release-notes/.
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
 
Please let us know if any questions arise.
 
Best regards,
Milena

Public
Milena Pechura Milena Pechura Flexmonster 2 days ago

Hello, Jimmy,
 
We would like to kindly take an interest in whether the recent fix helped.
Please let us know if everything works as expected.
 
Our team will be glad to hear your feedback.
 
Kind regards,
Milena

Public
Jimmy 2 days ago

Yes this is working.
 
/Jimmy

Please login or Register to Submit Answer