Issue saving string value with character > 1023 characters | Community
Skip to main content
SachinDhir
Level 2
February 24, 2021
Solved

Issue saving string value with character > 1023 characters

  • February 24, 2021
  • 1 reply
  • 1316 views

We are saving values in a field whose length set on schema level as 2000 characters.

 

Before saving, values of strings > 1023 characters are perfectly stored in "ctx.vars.Comments" or "ctx.webAppLogRcpData.Comments" but while saving field value to the schema using xtk.session.Write(xml) method, the values get truncated at 1023 characters.

 

Further we tried updated field through workflow with strings > 1023, it gets updated on schema correctly.

 

Is there any limitation on string attribute length on XML while sending through xtk.session.Write() method?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Darren_Bowers

Hi@sachindhir - schema attributes of type string are limited to 1024 characters. If you want to save > 1024 chars then you need to use a memo or html element in your schema.

I vaguely remember there was a bug in workflows where you can store > 1024 chars in a memo/html element, but when you try to enrich it onto a workflow it gets truncated back to 1024 characters anyway.

Thanks

Darren

1 reply

Darren_Bowers
Darren_BowersAccepted solution
Level 9
February 24, 2021

Hi@sachindhir - schema attributes of type string are limited to 1024 characters. If you want to save > 1024 chars then you need to use a memo or html element in your schema.

I vaguely remember there was a bug in workflows where you can store > 1024 chars in a memo/html element, but when you try to enrich it onto a workflow it gets truncated back to 1024 characters anyway.

Thanks

Darren