Christof Colle created NIFI-13818:
-------------------------------------
Summary: PutDatabaseRecord doesn't use the "Max String Length"
property from its JsonTreeReader
Key: NIFI-13818
URL: https://issues.apache.org/jira/browse/NIFI-13818
Project: Apache NiFi
Issue Type: Bug
Reporter: Christof Colle
Attachments: Screenshot_4.jpg
Even in the latest Nifi version (1.27.0) :
I have a *JsonTreeReader* Controller Service, where I have the *Max String
Length* property set to {*}50 MB{*}.
Using the JsonTreeReader controller, I have a *PutDatabaseRecord* processor to
insert a large JSON content (+20MB) into a single row in our MSSQL database.
However, it doesn't seem the processor uses the configured MaxStringLength as
configured in the controller service :
{code:java}
putdatabaserecord.error :
String value length (20054016) exceeds the maximum allowed (20000000, from
`StreamReadConstraints.getMaxStringLength()`){code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)