<@U0A71G31CDV>, getting this error in failed trans...
# questions-and-troubleshooting
k
@Rocky, getting this error in failed transaction -
parse error. The input payload size is beyond parser limit. Please set strip_outer_array true if you want to load json array
r
I couldn't find that exact error string in the StarRocks docs, so I can't point to an authoritative doc page for it — treat the first part below as inference. What the docs do confirm is the surrounding behavior: What the docs say •
strip_outer_array
(Stream Load / Routine Load / Broker Load) defaults to
false
. If your file's outermost layer is a JSON array
[{...},{...}]
, set it to `true`: StarRocks strips the outer
[]
and loads each inner object as its own row. With
false
, the whole payload is parsed as one document / one record — which is exactly the shape that hits parser-size limits. • Size ceilings documented for JSON loads: • Stream Load: each JSON object in the file cannot exceed 4 GB (otherwise: "This parser can't support a document that big"). • Stream Load HTTP JSON body: 100 MB by default; the documented workaround for that specific message is the header
ignore_json_size:true
. • BE config
streaming_load_max_batch_size_mb
(default 100, mutable) limits how much JSON data can be handled in one batch, since JSON can't be streamed like CSV. • BE config
streaming_load_max_mb
limits total file size per Stream Load. Practical fix 1. If the payload is a JSON array, set
strip_outer_array: true
(Stream Load header),
"strip_outer_array" = "true"
(Routine Load
PROPERTIES
), or
"strip_outer_array"="true"
(Broker Load
opt_properties
). This switches you from "one giant document" parsing to per-record parsing. 2. If it's a single large JSON object (no array), there's no
strip_outer_array
to help — reduce the batch: send smaller batches, and check
streaming_load_max_batch_size_mb
/
streaming_load_max_mb
on the BE and
max_routine_load_batch_size
(default 4 GB) if you're using Routine Load. Which load path is this — Stream Load (curl/HTTP), Routine Load, or the Kafka/Flink connector? The property name differs, and I can give you the exact header/property to set. If it's a connector, the fix has to go in the connector's JSON options rather than in SQL. References • administration/configuration/BE_parameters/query_loading.md • sql-reference/sql-statements/loading_unloading/BROKER_LOAD.md • sql-reference/sql-statements/loading_unloading/STREAM_LOAD.md • faq/data_migration/loading/Stream_load_faq.md • faq/data_migration/loading/Routine_load_faq.md • sql-reference/sql-statements/loading_unloading/routine_load/CREATE_ROUTINE_LOAD.md
k
This is a sink load from risingwave to starrocks