cancel
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.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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

ima94
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!

2 REPLIES 2

Kaniz
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.

Anonymous
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!