This page describes several common issues with Foundry Rules and steps to debug.
Make sure that each object you created has a writeback dataset associated. Review the build writeback datasets step of authoring and running a rule for more information.
Some required parameters were not provided in the Action request. Verify that the Actions are configured properly.
To get the proposal widget to display diffs correctly, follow these steps:
In the Workshop app, add the new_<PROPERTY>
property to the Properties grouped by section in the Proposal Reviewer widget configuration. It is not necessary to select the "current" value here.
If desired, edit the property name to remove the ”new“ prefix.
Add the foundry-rules.property-diff-for:ID_OF_NEW_PROPERTY
type class to the current property of the proposal object. Note that type classes are characterized by a kind and a name, written out as kind.name
. In the case of foundry-rules.property-diff-for:new_<PROPERTY>
, the kind is foundry-rules
and the name is property-diff-for:new_<PROPERTY>
.
Prior to July 2022, Foundry Rules (previously known as Taurus) required additional configuration and used slightly different concepts. The following errors are associated with that process. If you deployed Foundry Rules after July 2022 and you encounter one of the issues below, try navigating to the Workflow Configuration Editor to see if there are any errors in the workflow.
This error indicates that the requested Ontology information, as identified in the error message, either does not exist or the transform does not have permissions to access it. Check the following steps to remediate the error:
@AdditionalInputs
section at the top of the transform code. Learn more about using @AdditionalInputs
.This error indicates that declaring a static version number dependency on tau-execution-core
is no longer allowed. To remediate this error, change the declared version to be the version range [0,1[
instead of the static version number:
build.gradle
file, change the line
compile "com.palantir.tau-execution:tau-execution-core:0.x.x"
to compile "com.palantir.tau-execution:tau-execution-core:[0,1["
.
compile "com.palantir.tau-grammar:tau-grammar-api-objects:0.x.x"
, then delete this line..shouldMatchContourExecutionBehavior(true)
is set to true
in the Foundry Rules transform (example below). This flag ensures that the execution of the logic performed by the Foundry Rules transform is the same as in the Rule Editor preview.Copied!1 2 3 4 5 6 7 8 9 10 11 12
// Configuring the Foundry Rules Rule Runner Args ruleRunnerArgs = new TaurusRuleRunner.Args.Builder() .rules(new Rules.Builder() .logicColumnName("RuleLogic") .ruleIdColumnName("RuleId") .dataset(rulesDataset) .build()) .putSources(SourceReference.objectTypeId("employee"), source) // set to true to ensure the rule execution output matches the rule editor widget's preview .shouldMatchContourExecutionBehavior(true) .context(transformContext) .build();
This error can occur when a sensor object is either missing or the transform does not have the correct permissions. Check the following to remediate the error:
@AdditionalInputs
section at the top of the transform code.@AdditionalInputs
section at the top of the transform code.Verify that you have followed all the steps in the deployment guide.