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

ValidateXml validatexml.invalid.error missing failure details

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.16.0, 1.20.0, 1.19.1
    • 2.0.0-M1, 1.21.0
    • Extensions
    • None
    • CentOS 7.5, RedHat 7.9
      Temurin - 11.0.17+8

    Description

      NiFi environment was upgraded from 1.15.1 to 1.19.1. The following situation has occurred with the ValidateXml processor:

      ValidateXml processor works correctly on 1.15.1 and validatexml.invalid.error attribute gives an detail information about the error.

      ValidateXml processor works on 1.19.1 but validatexml.invalid.error attribute does not give an detail information about the error. validatexml.invalid.error attriubute only contains “Validation failed” text.

      Similar problem was talked in cloudera community and Eduu said that:

      ===========

      Hi @ChuckE using NiFi 1.15.2 seems to add the error detail in the "validatexml.invalid.error" attribute.
      For example --> "cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'HotelCode"

      This seems to be an issue starting from NiFi 1.16.3, maybe a bug?
      You can use NiFi 1.15.2 or custom code as @SAMSAL suggested.

      ===========

      Ref: How to get the reason for invalid XML

      Attachments

        Issue Links

          Activity

            People

              dstiegli1 Daniel Stieglitz
              bilalb Bilal
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m