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

SplitJson corrupting flowfile content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.13.1
    • 1.13.2
    • None
    • None

    Description

      When performing a SplitJson on an array of complex json files where the first record has a longer content/text field 

      [ {
        "brand_id" : null,
        "table_name" : "xx",
        "attribute" : "x",
        "category" : "x",
        "include" : null,
        "exclude" : null
      }, {
        "brand_id" : null,
        "table_name" : "x",
        "attribute" : "x",
        "category" : "x",
        "include" : null,
        "exclude" : null
      } ]

      an invalid json is generated (content looks file, but subsequent EvaluationJsonPath is unable to parse the object). If first table_name value is set to x, no issue is encountered 

       

      Attachments

        1. image-2021-03-18-17-35-20-406.png
          210 kB
          Dorian Bugeja
        2. SplitJson_corrupted_output.xml
          18 kB
          Dorian Bugeja

        Issue Links

          Activity

            People

              Unassigned Unassigned
              SunSatION Dorian Bugeja
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: