Import of scoping rules for roles is failing/timing out

Document ID : KB000046361
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue/Problem/Symptoms: 

I have manually created a role for Enterprise Manager by exporting the ac-env-RoleDefinitions.xml and making rules via copy and paste full roles. However, when I import this into idmmanage it times out and doesn't import fully.

Environment:  

Enterprise Manager 12.8+

Cause: 

This is caused by timeouts in the Web Interface as the import is taking longer than these timeouts. 

Resolution/Workaround:

The best option here is to break the imports up into smaller (complete) chunks and then do them one by one to avoid java memory and timeout issues. 

The first two lines are the header in the file and are mandatory. The ending tag too so that the file is properly closed. 

Header: 

<?xml version="1.0" encoding="UTF-8"?>
<ims:ImsTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://imsenvironmentobjects/xsd imsconfig://schema/ImsEnvironmentObjects.xsd" xmlns:ims="http://imsenvironmentobjects/xsd" xmlns:imsrule="http://imsmemberrule/xsd" xmlns:imsscope="http://imsscoperule/xsd" xmlns:imschange="http://imschangeaction/xsd">

Footer: 

</ims:ImsTemplate>