We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')

Answered
Jose asked on November 1, 2022

Hello! I'm getting this error when I wanna export a report as CSV. It is ONLY happenning with csv format. I can export it normally as excel. I've uploaded flexmonster to its last version and still the error remains. Could you help me to identify the error? It appears to be a value that is coming undefined to the Javascript library.

12 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster November 2, 2022

Hello, Jose!

Thank you for reporting this issue.
Our team would like to have more details so we can reproduce this behavior. Could you please provide us with the following information:

  • Your report object configuration.
  • Export type, e.g., default export embedded in the Toolbar or via the exportTo(). If you are using the second approach, please provide us with the exportTo() method's configuration.
  • Example of the data used. If there is any confidential information, you can replace it and/or send it via email.

We are looking forward to hearing from you.

Best Regards,
Maksym

Public
Jose November 2, 2022
Public
Jose November 2, 2022

This is the csv file in order you can check the data. We exported it on excel and then transformed manually to csv

Public
Maksym Diachenko Maksym Diachenko Flexmonster November 4, 2022

Hello, Jose!

Thank you for providing additional information.
We were still unable to reproduce the export issue. Could you please provide us with a functioning code example where this issue is reproducible? 
You can do it on this JSFiddle template.
Looking forwards to hearing your feedback.

Best Regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster November 15, 2022

Hello, Jose!

Hope you are doing well.
We would like to know if you could solve the issue with exporting to CSV.
Please let us know if further assistance is needed.

Best Regards,
Maksym

Public
Jose November 16, 2022

Hello, Maksym! Unfortunately, we couldn't solve the problem yet. we are investigating if the error comes with our VM, that brings the data to us. But beyond that, we are still with the problem. 

Public
Maksym Diachenko Maksym Diachenko Flexmonster November 17, 2022

Hi, Jose!

Thank you for your reply.
Our team is ready to help you with the issue. Could you please send us the sample project or provide us with access to your environment, where the issue is reproducible? Any sensitive info can be sent to us through email for privacy.
Looking forward to hearing from you.

Kind Regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster November 29, 2022

Hello, Jose!

Just checking in to ask if you were able to check our reply. Since we could not reproduce this issue, we would like you to provide an example or access to your environment where the issue is reproducible.
Looking forward to hearing your feedback.

Kind Regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster December 7, 2022

Hi, Jose!

Hope you are doing well.
We would like to know if you were able to solve the issue or find any additional details, that may help us to research.
Looking forward to hearing from you.

Kind Regards,
Maksym

Public
Jose December 13, 2022

Hello Maksym! we were able to find that the file csv file has a line break, and we think that is breaking the js library of  flexmonster.

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster December 14, 2022

Hello,

Thank you for providing us with the details.

Are you able to remove the mentioned line break and resolve the export issue? Is there still anything we can help you with? 

Looking forward to hearing from you.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster December 27, 2022

Hello, Jose,

Hope you are doing well

We were wondering if you had a chance to check our previous response. Is there still anything we can help you with?

Looking forward to hearing your feedback.

Kind regards,
Nadia

Please login or Register to Submit Answer