sqlalchemy.exc.DataError: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)

Hi

Rasa X: 31.2

Running into the following issue on Rasa X when our categorical slot values exceed 255 chars in total:

sqlalchemy.exc.DataError: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)
(psycopg2.errors.StringDataRightTruncation) value too long for type character varying(255)

[SQL: INSERT INTO domain_slot (domain_id, slot, auto_fill, initial_value, type, values) VALUES (%(domain_id)s, %(slot)s, %(auto_fill)s, %(initial_value)s, %(type)s, %(values)s) RETURNING domain_slot.slot_id]
[parameters: {'domain_id': 111, 'slot': 'country', 'auto_fill': True, 'initial_value': None, 'type': 'categorical', 'values': '["india", "usa", "brazil", "columbia", "argentina", "brunei", "vietnam", "oman", "jordan", "qatar", "bahrain", "iraq", "saudi arabia", "pakistan", "j ... (367 characters truncated) ...
"uganda", "zambia", "zimbabwe", "ireland", "jersey", "switzerland", "turkey", "uk", "bahamas", "canada", "falklands", "mexico", "peru", "venezuela"]'}]

This is our slot:

slots:
  country:
    type: categorical
    values:
    - india
    - usa
    - brazil
    - columbia
    - argentina
    - brunei
    - vietnam
    - oman
    - jordan
    - qatar
    - bahrain
    - iraq
    - saudi arabia
    - pakistan
    - japan
    - hong kong
    - taiwan
    - china
    - kenya
    - singapore
    - middle east
    - bangladesh
    - australia
    - cambodia
    - indonesia
    - laos
    - macau
    - malaysia
    - mauritius
    - nepal
    - philippines
    - south korea
    - sri lanka
    - thailand
    - lebanon
    - uae
    - botswana
    - cameroon
    - cote d'ivoire
    - ghana
    - nigeria
    - sierra leone
    - south africa
    - tanzania
    - gambia
    - uganda
    - zambia
    - zimbabwe
    - ireland
    - jersey
    - switzerland
    - turkey
    - uk
    - bahamas
    - canada
    - falklands
    - mexico
    - peru
    - venezuela

Is it possible to change the limit on the field?

Hi there @mrmtza, as of 0.33.1, the limit on this field has been made variable: Rasa X Changelog