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

Range Error: Invalid Array Length

Answered
Ravi Kumar asked on October 14, 2020

Hi,
 
I’m trying to set a proper data source but still, flexmonster returning with an error “ERROR RangeError: Invalid array length”.
Full Error:
ERROR RangeError: Invalid array length
at b.TH (flexmonster.full.js:1024)
at b.j6 (flexmonster.full.js:1021)
at b.i6 (flexmonster.full.js:1086)
at b.load (flexmonster.full.js:1081)
at h.connect (flexmonster.full.js:2137)
at a.uwa (flexmonster.full.js:2109)
at a.YE (flexmonster.full.js:2107)
at a.Xaa (flexmonster.full.js:2107)
at a.naa (flexmonster.full.js:2107)
at f.Ne (flexmonster.full.js:2106)
Please provide any solution to overcome this issue.
Sharing you the flexmonster.full.js file.
 
Regards,
Ravi

7 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster October 14, 2020

Hello,
 
Thank you for reaching out to us.
 
Our team wants to inform you that we did not manage to reproduce the issue.
 
Please provide us with a data set (dummy data can be used), which loading leads to the exception. It would allow us to investigate the issue on our side.
 
Our team is looking forward to hearing from you.
 
Kind regards,
Illia

Public
Ravi Kumar October 16, 2020

Hi Illia,
 
Thanks for the quick response.
Please find the below dummy data to reproduce the scenario in your end.
 
[{
“currency_Code”:72,
“currency_Desc”:”Indian rupee”,
“batch_Shipment_Qty”:0,
“pin”:null,
“address”:null,
“dimension_Type”:null,
“schedule_Type”:null,
“schedule_No”:null,
“lot_Number”:null,
“length”:0,
“width”:0,
“unit_Weight”:0,
“dimension_Qty”:0,
“uoM_Desc”:null
}]
 
Regards,
Ravi

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster October 16, 2020

Hello, Ravi,
 
Thank you for providing the data set.
This helped to reproduce the issue on our side.
 
It seems the exception is caused by the specific field name used in the data set: "length".
The fix is going to be provided with a minor update ETA Nov 16.
Our team will notify you as soon as the version with a fix is released.
 
As a temporary workaround, we suggest renaming the "length" field in your data set.
Feel free to reach out in case any other questions arise.
 
Kind regards,
Illia

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 3, 2020

Hello, Ravi,
 
We are happy to let you know that we have managed to fix the issue with the fields named “length” earlier.
 
This is available in the 2.8.19 version of Flexmonster.
 
You are welcome to update the component.
Here is our updating to the latest version tutorial for guidance. 
 
Please let us know if everything works fine for you.
We are looking forward to your feedback.
 
Best regards,
Illia

Public
Ravi Kumar November 5, 2020

Hi Illia,
 
Thank you for the updating the component.
 
Regards,
Ravi

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 10, 2020

Hello, Ravi,
 
Our team would like to clarify whether the recent fix works for you.
 
We are looking forward to your feedback.
 
Best regards,
Illia

Public
Ravi Kumar November 13, 2020

Hi Illia,
Yes, your fix is working fine.
If i encounter any same issue, definitely i will inform you.
 
Regards,
Ravi
 

Please login or Register to Submit Answer