VERIFIED SOLUTION i

Resolve error "org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name" when running nabatch in EngageOne

Issue

When we run input XML file against RUN_NA_BATCH and  get below errors : 
 
Running batch delivery...
[Sep 06 14:13:14]|INFO |CommandLineRunner|[NA Batch Main Thread]|Input Answer Id: N/A|Input File Name: N/A|Command-line: -domain , EngageOne , -dir , C:\trigger
[Sep 06 14:13:16]|INFO |BatchProgramImpl|[NA Batch Main Thread]|Input Answer Id: N/A|Input File Name: trigger.xml|Reading xml input file: C:\trigger\trigger.xml
[Sep 06 14:13:17]|ERROR|XMLSplitHandler|[NA Batch Main Thread]|Fatal error attempting to split XML file: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'com:stNumber' to a(n) 'type definition' component.
[Sep 06 14:13:17]|INFO |BatchProgramImpl|[NA Batch Main Thread]|Input Answer Id: N/A|Input File Name: trigger.xml|Done reading xml input file: C:\trigger\trigger.xml
[Sep 06 14:13:17]|INFO |DatabaseCleanupWorker|[BatchCleanupWorker-2]|Input Answer Id: N/A|Input File Name: N/A|Database cleanup completed in: 0.016 seconds
[Sep 06 14:13:17]|INFO |BatchProgramImpl|[NA Batch Main Thread]|Input Answer Id: N/A|Input File Name: N/A|Overall cleanup completed in: 0.125 seconds
[Sep 06 14:13:17]|INFO |BatchProgramImpl|[NA Batch Main Thread]|JDBC connection counts: New connections = [0], Total connections = [2] 
[Sep 06 14:13:17]|ERROR|CommandLineRunner|[NA Batch Main Thread]|Input Answer Id: N/A|Input File Name: N/A|Error encountered
org.xml.sax.SAXException: src-resolve: Cannot resolve the name 'com:stNumber' to a(n) 'type definition' component.
at com.pb.util.xml.XMLSplitHandler.endFile(Unknown Source)
at com.pb.util.xml.XMLSplitHandler.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at com.pb.util.xml.XMLSplitUtil.parse(Unknown Source)
at com.pb.util.xml.XMLSplitUtil.split(Unknown Source)
at com.pb.engageone.server.batch.na.gather.reader.DefaultBatchItemReader.generateAnswerFile(Unknown Source)
at com.pb.engageone.server.batch.na.gather.reader.DefaultBatchItemReader.handleDataFile(Unknown Source)
at com.pb.engageone.server.batch.na.gather.reader.DefaultBatchItemReader.read(Unknown Source)
at com.pb.engageone.server.batch.na.BatchProgramImpl.doRun(Unknown Source)
at com.pb.engageone.server.batch.na.BatchProgramTemplate.run(Unknown Source)
at com.pb.engageone.server.batch.na.runner.CommandLineRunner.start(Unknown Source)
at com.pb.engageone.server.batch.na.runner.CommandLineRunner.main(Unknown Source)
[Sep 06 14:13:18]|INFO |CommandLineRunner|[NA Batch Main Thread]|Input Answer Id: N/A|Input File Name: N/A|Batch elapsed time: 3.734 seconds
batch ended with exit code value [100]
 

Cause

The issue is that validation is ON and we need to set it  to OFF to process sample File.

By default it is TRUE.

Resolution

UPDATED: November 8, 2017
To set it OFF , go to C:\Program Files (x86)\PBBI CCM\EngageOne\active-drive\config

Open config-settings.xml  in notepad.

Set the below flag from TRUE to FALSE:
 <setting>
            <key>answer.xml.validation.enabled</key>
            <value>false</value>
    </setting>