Omicron Llama

Coding all day, every day.

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:

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!

Leave a Reply

Your email address will not be published. Required fields are marked *