Hi,
I have created the content organizer rule programmatically following some blogs like
https://msdn.microsoft.com/en-us/library/microsoft.office.recordsmanagement.recordsrepository.ecmdocumentrouterrule.aspx
When i see the rule it looks fine and on submission of document, i get null reference exception and documents are not routed.
But if edit the rule through UI and save. And if i try again, the routing works correctly.
Any suggestions please. Thanks.