Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Drools Exception - no alternative viable input

Hi All,
I'm having an exception when reading on rules from Talend, I tried deleting spaces, but still exception occurs.
The versions below:
Talend Version: 4.1.2.r53616
Guvnor Version: drools-5.1.1-guvnor
rule "test_123_rules_21"
when
FIELD_A=2009-04-25 AND FIELD_B=999-9999
then
FIELD_C=SB
end

: Line 3:0 no viable alternative at input 'FIELD_A' in rule "test_123_rules_21"
: Line 3:23 no viable alternative at input 'FIELD_B' in rule "test_123_rules_21"
Exception in component tRules_1
java.lang.IllegalArgumentException: Could not parse knowledge.
at myworkspace.copy_of_drools_job_0_1.Copy_of_DROOLS_JOB$1KnowledgeBase_tRules_1.readKnowledgeBaseDRL(Copy_of_DROOLS_JOB.java:1186)
at myworkspace.copy_of_drools_job_0_1.Copy_of_DROOLS_JOB$1KnowledgeBase_tRules_1.readKnowledgeBase(Copy_of_DROOLS_JOB.java:1165)
at myworkspace.copy_of_drools_job_0_1.Copy_of_DROOLS_JOB.tRowGenerator_1Process(Copy_of_DROOLS_JOB.java:1231)
at myworkspace.copy_of_drools_job_0_1.Copy_of_DROOLS_JOB.runJobInTOS(Copy_of_DROOLS_JOB.java:1797)
disconnected
at myworkspace.copy_of_drools_job_0_1.Copy_of_DROOLS_JOB.main(Copy_of_DROOLS_JOB.java:1668)

Thanks
Labels (3)
1 Reply
sizhaoliu
Contributor III
Contributor III

try it with guvnor 5.0.1. current tbrms component is not yet compatible with later version.
http://download.jboss.org/drools/release/5.0.1.26597.FINAL/drools-5.0-guvnor.zip
besides, "FIELD_A=2009-04-25" is equivalent to "FIELD_A=1980", you need to specify "literal value" while adding this field as condition.