DB table inserts failing due to UNIQUE constraint for a text field for NULL vs empty value

Certified Senior Developer

We are using MySQL DB, we have a use case where a text column in the DB table is having a UNIQUE constraint that accepts NULL, all values apart from NULLs have to be unique.
While using write to DSE smart service, Appian product by default is converting the NULL value to empty value/empty string and mapping to table, due to which we are facing issues due to unique constraint while inserts.
Please suggest a solution to overcome this issue.

  Discussion posts and replies are publicly visible