Business Rule Error :: Fact not found in the rule engine working memory, rule session execution failed

You may encounter the following error while working with Oracle Business Rules

Non Recoverable System Fault :
Fact not found in the rule engine working memory, rule session execution failed. The rule session 800009 failed because an instance of the fact org.example.xxx could not be found in the working memory of the rule session. This is most likely a rule modeling error. The xxx service interaction expects the fact instance to exist in the working memory of the rule session. Check the rule actions in rule designer and make sure that a fact of the expected type is being asserted. If the error persists, contact Oracle Support Services. 800009

The bolded variable, which in my case is the response variable, is the cause of the error in this case. This is coming because the none of the rules have passed and so the response object could not be asserted with a value. Since there is no instantiated response object, and the BusinessRule tries to reply with the response object, you end up with ‘Not Found’ error.

In such cases, make sure atleast one rule passes when you send an input. Otherwise, add a rule for ‘1=1’ which always passes.

Hope this helps.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s