1 08 2013
Routing Engine: EvaluateCondition threw an exception.
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:
Routing Engine: EvaluateCondition threw an exception. rField: <guid>|<field internal name>|<field title>, objParams: <metadata label>|<term id>, objParams: <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!