You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/fs/gpfs41/lv03/fileset01/pool/pool-mann-maedler-shared/niklas_workspace/lamin_xenium/xenium_to_sdata.py", line 41, in <module>
art.ulabels.add(technology_xenium)
File "/fs/home/schmacke/miniforge3/envs/sdata/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py", line 656, in __get__
return self.related_manager_cls(instance)
File "/fs/home/schmacke/miniforge3/envs/sdata/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py", line 1076, in __init__
raise ValueError(
ValueError: "Artifact(uid='6sYRmHuqlMUvllcS0000', is_latest=True, description='Ovarian Cancer Xenium Dataset', suffix='.sdata', kind='dataset', size=28462729153, hash='XKMmMiOv9dhZD_v8Q1yp1A', n_files=3403, space_id=1, storage_id=1, run_id=13, created_by_id=5, created_at=<django.db.models.expressions.DatabaseDefault object at 0x14f6481820b0>)" needs to have a value for field "id" before this many-to-many relationship can be used.
and they did not understand this error at all. It's cryptic. We need a better error message that suggest that the Record that is being labeled (an Artifact here but could be anything) needs to be saved first.
The text was updated successfully, but these errors were encountered:
Zethson
changed the title
Improved error message when attempting to label an unsaved Artifact
Improved error message when attempting to label an unsaved Record such as anArtifactJan 23, 2025
Add a description
A user ran into:
and they did not understand this error at all. It's cryptic. We need a better error message that suggest that the Record that is being labeled (an
Artifact
here but could be anything) needs to be saved first.The text was updated successfully, but these errors were encountered: