Page 1 of 1

string cut off / max string size?

Posted: 20 Aug 2018, 14:23
by martenbyebye
Hi,

I have a data access node with a long string (77000 characters). It is truncated to around 33000 characters when I read using UaExpert. We are not changing the EndpointConfiguration in the server, i.e. it uses the default settings (MaxMessageSize = 16777216; MaxStringLength = 16777216).

And the client the settings are:
- Stack.Serializer_MaxMessageSize = 16777216
- Stack.Serializer_MaxStringLength = 16777216

When I run a different test that only uses the server and client SDK, not UaExpert, then nothing is cut off, i.e. the string can be 16 million characters long. But with UaExpert, and another 3rd party client, the string is cut off. Is there another setting somewhere that needs to be changed?

Re: string cut off / max string size?

Posted: 20 Sep 2018, 11:12
by Support Team
Hello martenbyebye,

the display widgets used by UaExpert have a limited maximum string length, this is why the string value might show truncated. For strings that long it might be more practical to use a file object (as specified in the specification part 5, annex C), which allows writing and reading the value in batches.