Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4232

AvroRecordSetWriter not properly handling Arrays of Records

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • Extensions
    • None

    Description

      I have JSON coming in that has an Array of complex JSON objects. When I try to convert it to Avro via ConvertRecord, it fails, with the following error:

      ConvertRecord[id=4c8b14f0-1027-115d-2dd0-33fb39b2fc23] Failed to process StandardFlowFileRecord[uuid=8506b97c-31fe-4598-b645-a526134b0f9f,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1501080084533-2, container=default, section=2], offset=2192294, length=5646],offset=0,name=286941224561187,size=5646]; will route to failure: org.apache.nifi.serialization.record.util.IllegalTypeConversionException: Cannot convert value [Ljava.lang.Object;@746d38cd of type class [Ljava.lang.Object; because no compatible types exist in the UNION
      

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: