I'm also experiencing this error; Environment created with plain version CA IDM 14.1, then exported with CA IDM 14.1 CP04 and reimported again ended up with the same error you are experiencing.
2018-05-21 17:37:39,632 DEBUG [ims.idmmanage] (Thread-523) java.lang.NullPointerException
com.netegrity.llsdk6.imsimpl.provider.ProvisioningPolicyProviderImpl.getAccountContainer(ProvisioningPolicyProviderImpl.java:644)
com.netegrity.llsdk6.imsimpl.provider.ProvisioningPolicyProviderImpl.findProvisioningPolicy(ProvisioningPolicyProviderImpl.java:248)
i've been able to nail it down to Rules containing Provisioning Roles with Account Template and Endpoint Type specified in the rule such as:
<ImsRole name="Portale Intranet RL - SRE" roletype="PROVISIONING" ....>
<AdminPolicy assignable="true" adminassignable="false">
<imsrule:MemberRule><RoleMember><AdminRole name="System Manager"/></RoleMember></imsrule:MemberRule>
<imsscope:ScopeRule object="USER" purpose="*"><All/></imsscope:ScopeRule>
</AdminPolicy>
<OwnerPolicy>
<imsrule:MemberRule><RoleMember><AdminRole name="System Manager"/></RoleMember></imsrule:MemberRule>
</OwnerPolicy>
<AccountTemplate name="Intranet_Portal_AT" endpointType="Intranet_Portal_2018"/>
</ImsRole>
Whats more odd, if i try to create the provisioning role using the Console i get the error
Error: Portale Intranet RL - SRE is a duplicate. Please rename.
I've checked everywhere, even on the objectstore and there is no such named object.
If i rename it, it works, using the console, but still no way to make it works using the import roles through the management console.
Never experienced these errors before, probably software bug added on CP04 or previous release ?