[Fixed] Can't have a list with one "None" entry in a simpleObject data table field

What I’m trying to do:

I have a data entry field which is a simpleObject, and is intended to contain a list. It starts off as an empty list, and over time values are added to it. The values which are added may either be strings, or None.

The issue I’m hitting is that if the first value to be added to the list is None, I get this error:

Column 'myColumn' is a simpleObject - cannot set it to a Unresolved (empty list)

I think (a) this is slightly misleading - it’s quite happy with empty lists, but won’t accept a list containing only None - and (b) is problematic. I can’t think of a non-hacky workaround.

What I’ve tried and what’s not working:

I’ve double checked that this is a real issue by trying a few simple examples - see code and cloned app below.

Code Sample:

  newRow = app_tables.my_data_table.add_row(my_list=[])
  newRow['my_list'] = [] # Works fine
  newRow['my_list'] = ["myString", None] # Works fine
  newRow['my_list'] = [None] # Doesn't work

Clone link:

All help appreciated!

1 Like

yeap that should be allowed
thanks for reporting (moved to bug reports)

1 Like