Member since
11-17-2021
1116
Posts
253
Kudos Received
28
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 223 | 10-16-2025 02:45 PM | |
| 472 | 10-06-2025 01:01 PM | |
| 429 | 09-24-2025 01:51 PM | |
| 396 | 08-04-2025 04:17 PM | |
| 479 | 06-03-2025 11:02 AM |
10-27-2025
05:15 PM
@fuchun As this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post. Thanks.
... View more
10-24-2025
02:04 PM
@lukaspirohanic Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.
... View more
10-24-2025
02:02 PM
@adamn4 Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. If you are still experiencing the issue, can you provide the information @upadhyayk04 has requested? Thanks.
... View more
10-24-2025
04:45 AM
I found the solution. While the code did validate the XML to the schema, I needed to add a conditional statement to transfer to failure: import groovy.xml.XmlSlurper import groovy.xml.XmlUtil import javax.xml.transform.stream.StreamSource import javax.xml.validation.SchemaFactory import javax.xml.XMLConstants import org.xml.sax.ErrorHandler import org.xml.sax.SAXParseException def flowFile = session.get() if (!flowFile) return def fileXML = flowFile.read().getText("UTF-8") def xmlContent = new XmlSlurper().parseText(fileXML.trim().replaceFirst("^([\\W]+)<","<").replaceAll('\'','\'\'')) def schemaFile = flowFile.getAttribute('XMLSchema') def schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI) def schema = schemaFactory.newSchema(new File(schemaFile)) def validator = schema.newValidator() def validationErrors = new StringBuilder() validator.setErrorHandler(new ErrorHandler() { @Override void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException { validationErrors.append("<p>Warning: ${e.message}</p>") } @Override void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException { validationErrors.append("<p>Error: ${e.message}</p>") } @Override void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException { validationErrors.append("<p>Fatal Error: ${e.message}</p>") } }) try { validator.validate(new StreamSource(new StringReader(XmlUtil.serialize(xmlContent)))) if (validationErrors.length() > 0) { flowFile = session.putAttribute(flowFile, "xml.validation.errors", validationErrors.toString()) session.transfer(flowFile, REL_FAILURE) } else { session.transfer(flowFile, REL_SUCCESS) } } catch (org.xml.sax.SAXParseException e) { validationErrors.append("Validation failed: ${e.message}\n") flowFile = session.putAttribute(flowFile, "xml.validation.errors", validationErrors.toString()) session.transfer(flowFile, REL_FAILURE) }
... View more
10-16-2025
02:45 PM
1 Kudo
Hello @SouthMood, welcome to the Cloudera Community!
I have reached out via DM with further steps, thank you!
... View more
10-13-2025
10:41 AM
Hi @ishashrestha , Yes, the user needs to have permission to write to that directory. You can test to execute with another user that already have that permissions. Let me know if works. Best Regards
... View more
10-10-2025
10:42 AM
hi @Zainers , you must specify the class name according to the JDBC driver (.jar) version you are using. remember that the jar must be accessible by all hosts in the NiFi cluster.
... View more
10-09-2025
01:21 PM
1 Kudo
Hola Diana Sí, muchísimas gracias y disculpa las molestias por no haber contestado anteriormente. Saludos cordiales, Leidy
... View more
10-09-2025
01:21 PM
2 Kudos
Here are some highlights from the month of August
WEBINAR
Introducing AI in a Box for Key Industries
Watch Now
VIRTUAL EVENT
The latest innovations in data, analytics & AI
October 15, 2025
8:00 AM PT | 11:00 AM ET | 4:00 PM GMT | 5:00 PM CES
Register Now
Check out the FY25 Cloudera Meetup Events Calendar for upcoming & past event details!
1160 members
1 new articles
47 questions
We would like to recognize the below community members and employees for their efforts over the last month to provide community solutions.
See all our top participants at Top Solution Authors leaderboard and all the other leaderboards on our Leaderboards and Badges page.
@MattWho @Scharan @jagadeesan @vafs @yagoaparecidoti @PradNiFi1236 @Munna54 @Dalier
Share your expertise and answer some of the below open questions. Also, be sure to bookmark the unanswered question page to find additional open questions.
Unanswered Community Post
Components/ Labels
NiFi + Groovy: how to build "bread crumbs" (PG.Names path from root to processor)?
Apache NiFi
The following employees published new public-facing community articles during this month.
Community Article
Author
Components/ Labels
Encrypt and Decrypt files using EncryptContentPGP and DecryptContentPGP in NiFi
@ckumar
Apache NiFi Cloudera DataFlow (CDF)
... View more
10-09-2025
01:11 PM
@nifirequest Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.
... View more