Deleting numeric values makes empty strings not NULL

I have a numeric column which contains entries for some but not all rows. The missing elements start out as NULL. But if I delete values in the web UI then they seem to become the empty string instead. This then causes downstream problems when accessing the data from the python API since the column is no longer pure numeric/null. Is this expected? Can anyone suggest a workaround?

So far I am resorting to using the API to

  1. find rows containing the empty string via SQL query
  2. update those rows with numeric NA values

Thank you! Greg.

I suggest in your Python script, you treat both None and empty string as NULL value. As cell value is modified by Web UI, it is hard to use Null as Null in all places.

Here are the list of value that should be treated as NULL for different types:

TEXT

  • null
  • ‘’

NUMBER

  • null
  • ‘’

CHECKBOX

  • null
  • ‘’

DATE

  • null
  • ‘’

SINGLE_SELECT

  • null
  • ‘’

LONG_TEXT

  • null
  • ‘’
  • {}

IMAGE

  • null
  • ‘’
  • []

FILE

  • null
  • ‘’
  • []

MULTIPLE_SELECT

  • null
  • ‘’
  • []

COLLABORATOR

  • null
  • ‘’
  • []

LINK

  • []

GEOLOCATION

  • null
  • ‘’
  • {}

URL

  • null
  • ‘’

EMAIL

  • null
  • ‘’

DURATION

  • null
  • ‘’

RATE

  • null
  • ‘’
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.