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

3 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 6 days ago

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 6 days ago

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

Please login or Register to Submit Answer