1 08 2013
Routing Engine: EvaluateCondition threw an exception.
Scenario:
You’ve programmatically provisioned some Content Organizer Rules to send some documents somewhere based on a Managed Metadata Field. When you upload a document and set that field to something matching a condition, it throws an error, and you see this in the event logs:
1 |
Routing Engine: EvaluateCondition threw an exception. rField: <guid>|<field internal name>|<field title>, objParams[0]: <metadata label>|<term id>, objParams[1]: <wssid>;#<metadata label>|<term id>, condition.ColumnType: Invalid, condition.ColumnName: <field id>|<field internal name>|<field title>, op: Contains |
The thing to watch here is the last bit of the error – ‘op: Contains’.
The ConditionsString property of the EcmDocumentRouterRule type specifies some restrictions on the conditions you can use in the Rule, depending on the field type. This is detailed here in MSDN, but it doesn’t clarify what condition can be used with what Field type.
The easiest way to find out is to manually create a rule in the UI then see what conditions are available when you choose a field.
Hope this helps someone!
Excel Services REST & JavaScript APIs Programmatically Set ” Allow this site to appear in search results?”