Error during solution import: Your organization does not allow this type of workflow.

Today I faced following error during solution import:

This workflow cannot be created, updated or published because it was created outside the Microsoft Dynamics CRM Web application. Your organization does not allow this type of workflow.


There is simple solution. You should enable XAML workflows as described here: http://msdn.microsoft.com/en-us/library/8da8c71e-84af-441e-b99b-0b59399f10f6#enable_disable

You can also get this error if you import solution from CRM server which has higher rollup installed then on the target server.