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.
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.
Answer by Martin Siegenthaler (85) | Sep 09, 2013 at 10:42 AM
Yep, that is it.
thanks
Obvious after it's revealed - not before.
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. ???
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