Not able to update long string


#1

I have a field in a type defined as :

@db(length=-1)
samlToken: long string

When using the following code to update:

samlClaims.samlToken = token;
SamlClaims.upsert(samlClaims);

I get the following error message:

Write failed: Attempt to insert/update a value of length 1154 for field message with column length 512:

Thank you for the help.


#2

Can you try without the @db annotation, long string should be enough as it’s of 4000 characters


#3

you can set a value as well
@db(length=4000)