[
https://issues.apache.org/jira/browse/NIFI-7806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vesa Sokka updated NIFI-7806:
-----------------------------
Description:
When attempting to validate XML with nested array of records, we get the
following error:
DEBUG [Timer-Driven Process Thread-2] o.a.n.processors.standard.ValidateRecord
ValidateRecord[id=01751002-a9fd-11b5-a009-202ad2f46ac0] For
StandardFlowFileRecord[uuid=8d6901d8-e165-461d-a35b-7a35d5b55a0d,claim=StandardContentClaim
[resourceClaim=StandardResourceClaim[id=1602234716692-101135,
container=default, section=783], offset=474738,
length=516],offset=0,name=8d6901d8-e165-461d-a35b-7a35d5b55a0d,size=516] Record
#1 is invalid due to:
MapRecord[\{item=MapRecord[{DESCRIPTION=Failed with one item, VALUE=xyz}]}] is
not a valid value for /VALUES: Value is of type
org.apache.nifi.serialization.record.MapRecord but was expected to be of type
RECORD
Template that reproduces the error is attached
was:
When attempting to validate XML with nested array of records, we get the
following error:
"Record #1 is invalid due to:
MapRecord[\{ids=MapRecord[{TestRecordID=2103686}]}] is not a valid value for
/TestRecord: Value is of type org.apache.nifi.serialization.record.MapRecord
but was expected to be of type ARRAY[RECORD]"
Template that reproduces the error is attached
> ValidateRecord does not handle XML with nested array of records correctly
> -------------------------------------------------------------------------
>
> Key: NIFI-7806
> URL: https://issues.apache.org/jira/browse/NIFI-7806
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Vesa Sokka
> Priority: Major
> Attachments: Example_flow.xml
>
>
> When attempting to validate XML with nested array of records, we get the
> following error:
>
> DEBUG [Timer-Driven Process Thread-2]
> o.a.n.processors.standard.ValidateRecord
> ValidateRecord[id=01751002-a9fd-11b5-a009-202ad2f46ac0] For
> StandardFlowFileRecord[uuid=8d6901d8-e165-461d-a35b-7a35d5b55a0d,claim=StandardContentClaim
> [resourceClaim=StandardResourceClaim[id=1602234716692-101135,
> container=default, section=783], offset=474738,
> length=516],offset=0,name=8d6901d8-e165-461d-a35b-7a35d5b55a0d,size=516]
> Record #1 is invalid due to:
> MapRecord[\{item=MapRecord[{DESCRIPTION=Failed with one item, VALUE=xyz}]}]
> is not a valid value for /VALUES: Value is of type
> org.apache.nifi.serialization.record.MapRecord but was expected to be of type
> RECORD
>
> Template that reproduces the error is attached
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)