• United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.206

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

What is the XMLParse() parm's trigger separator?

120000940F gravatar image
Question by Martin Siegenthaler  (85) | Sep 06, 2013 at 11:27 PM streamsdevxmlparse

I'm getting the following error when attempting to specify two triggers on an XMLParse()


CDISP9168E The number of trigger values that are expected is 2, but the number that was found is 1.

This is the code ...

(stream<HitN_env_type> output0; stream<HitN_appdata_type> output1) = XMLParse(input0) {
param trigger : "/HitN/env|/HitN/appdata";
parsing : permissive; // log and ignore errors
flatten : elements;
output output0 : s = s;
output1 : s = s;
}

I have tried to separate the triggers with : '|', ';', ','

Thanks in advance.

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

5 answers

  • Sort: 
27000064QT gravatar image
Accepted answer

Answer by hnasgaard (1441) | Sep 09, 2013 at 09:22 AM

Try param trigger : "/HitN/env", "/HitN/appdata";


The trigger param takes a list of rstrings, one per trigger.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
27000064QT gravatar image

Answer by hnasgaard (1441) | Apr 07, 2014 at 11:05 AM

The error message is saying that it is expecting 1 trigger, and 2 are specified, which is true, you have specified 2. The number of triggers has to match the number of output streams. It seems you only have 1 output stream, but 2 triggers specified.

Comment
chantalokh

People who like this

  1   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270006T6XK gravatar image chantalokh (125)   Apr 08, 2014 at 03:06 AM 0
Share

that was it, i had only one output, thank you

120000940F gravatar image

Answer by Martin Siegenthaler (85) | Sep 09, 2013 at 10:42 AM

Yep, that is it.

thanks

Obvious after it's revealed - not before.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270006T6XK gravatar image

Answer by chantalokh (125) | Apr 07, 2014 at 10:14 AM

hi, i have exactelly the same problem: Main.spl:293:6: CDISP9168E ERROR: The number of trigger values that are expected is 1, but the number that was found is 2. ???

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
27000064QT gravatar image

Answer by hnasgaard (1441) | Apr 07, 2014 at 10:21 AM

What have you coded for a trigger parameter?

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270006T6XK gravatar image chantalokh (125)   Apr 07, 2014 at 10:32 AM 0
Share

"/Envelope/Body/TrameS/ns1:insererTrameStacad/ns1:ListeR", "/Envelope/Body/TrameS/ns1:insererTrameStacad/ns1:ListeT"

Follow this question

No one has followed this question yet.

Answers

Answers & comments

Related questions

XMLParse Entity not defined 3 Answers

Going upstream with xmlparse 1 Answer

how to read an xml file 1 Answer

Integrate a java project with SPL code 1 Answer

Streams - Tuple Priority on multiple ports in an Operator 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • DataPower
  • Decision Optimization
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges