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?