# Errors with incomplete data ids

XMLWordPrintable

## Details

• Type: Story
• Status: To Do
• Resolution: Unresolved
• Fix Version/s: None
• Component/s:
• Labels:
None
• Templates:
• Team:
Data Access and Database

## Description

Figuring out what I'm doing wrong when I give an incomplete data id on the command line is currently tricky. I typically get an error like the following:

  File "/global/common/cori/contrib/lsst/lsstDM/v13_0/Linux64/daf_persistence/13.0/python/lsst/daf/persistence/registries.py", line 316, in lookup  cmd += " FROM " + " NATURAL JOIN ".join(reference) TypeError: sequence item 0: expected string, NoneType found 

This was encountered using the following command line:

 reportPatches.py . --id --config raDecRange="96.05665652768202, 96.37725617219749, -29.545497947342373, -29.268971984383857" 

I ran into the issue with a v13 stack, but Russell Owen has confirmed that it is still a problem on master.

The above error can be rectified by adding filter='r' to the --id argument, but that's very difficult to figure out from the error. I don't know what the right answer is, but it would be nice to error as early as possible and with a message that clearly states the data id is the problem (if it's not possible do deduce what part of the id is causing the issue).

## People

• Assignee:
Unassigned
Reporter:
Simon Krughoff
Watchers:
Fritz Mueller, John Parejko, Robert Lupton, Simon Krughoff