Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
Showing results for 
Search instead for 
Did you mean: 

read cdm error: java.util.NoSuchElementException: None.get

New Contributor II

Hi all, I'm trying to read cdm file and get the error in the image (I replaced the names in uppercase). Any ideas on how to solve it?

Thank you!


Community Manager
Community Manager

Hi @imma marra​, The error message "java.util.NoSuchElementException: None.get" suggests that the code is trying to access an element that does not exist. Various reasons, such as an empty file or incorrect formatting, could cause this.

To solve this issue, you could try the following steps:

  1. Check that the file path is correct and that the file exists.
  2. Verify that the file is formatted correctly and contains the expected data.
  3. Check the code that reads the file and ensure it handles empty files or missing data gracefully.
  4. Make sure that all required dependencies are included and up to date.

Not applicable

Hi @imma marra​ 

Thank you for posting your question in our community! We are happy to assist you.

To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?

This will also help other community members who may have similar questions in the future.

Thank you for your participation and let us know if you need any further assistance! 

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!