AL icon indicating copy to clipboard operation
AL copied to clipboard

Importing large Texts from XML ports fails.

Open FSharpCSharp opened this issue 8 years ago • 1 comments

If you use an XML port to import a file that contains very large strings, the client terminates with an error that the text would be too long.

The value 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. 

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et a' has a length 1040, which exceeds the maximum size of the destination type Text.

The problem is, it is always aborted with this error. The error also occurs in all older NAV versions. I thought that in the meantime the limitation to more than 1000 characters has been lifted. The message speaks against it.

FSharpCSharp avatar Jul 11 '18 14:07 FSharpCSharp

Due to the way the code is internally structured, it would unfortunately require significant effort to remove the limitation completely, so a full removal is currently not being prioritized. However, for the next version, there was an easy win, that allows us to have limit 2048 instead

jensmpmsft avatar Nov 11 '18 13:11 jensmpmsft