diff --git a/nomad/parsing/tabular.py b/nomad/parsing/tabular.py index 668e6c523b81ac421c003679d471dc888d51c8ac..4146d8b6fba2e193f45219239a55821a15dd452b 100644 --- a/nomad/parsing/tabular.py +++ b/nomad/parsing/tabular.py @@ -439,7 +439,7 @@ class TableData(ArchiveSection): ref_entry_name: str = child_section.m_def.more.get( 'label_quantity', None ) - filename = f'{ref_entry_name}_{index}.{child_section.m_def.name}.archive.{file_type}' + filename = f'{getattr(child_section, ref_entry_name, None)}_{index}.{child_section.m_def.name}.archive.{file_type}' else: filename = f'{mainfile_name}_{index}.{child_section.m_def.name}.archive.{file_type}'