Error querying with material ID

Hi,
When I am using the MPRester.get_entry_by_material_id(), I got error index out of the range, any ideas how to fix this issue?

Hi Diana,

Perhaps the database has been updated such that the task_id you are using now has different material_id now associated with it? (this has happened to me before) Try MPRester.get_material_id_from_task_id() and see if the material_id is identical to the task_id you are using; if not, then rerun MPRester.get_entry_by_material_id() with the new material_id.

Also see this forum thread for more details: Error querying for a specific material ID

Rachel

2 Likes

This is the error I got it now:
…site-packages/pymatgen/ext/matproj.py in get_entry_by_material_id(self, material_id, compatible_only, inc_structure, property_data, conventional_unit_cell)
479 property_data=property_data,
480 conventional_unit_cell=conventional_unit_cell)
→ 481 print(data)
482 return data[0]
483

IndexError: list index out of range