Summary
Error
There is no error, simply that mapping the field is not possible
Cause
This is caused by an integer value in the SF_ROOT_ID field within the SYSTEM_FIELD table for the field BG_RESPONSIBLE (Assigned To) in the ALM project db/schema
This field, by default, is null and having an integer value in the SF_ROOT_ID field for the BG_RESPONSIBLE field isn't usually a problem.
However, in the case of MF Connect, perhaps other contexts, it can present an issue.
In this case the field cannot be mapped.
Fix
Use the following procedure to correct this issue...
In Oracle directly…
update <schema_id>.system_field set sf_root_id = null where sf_column_name = 'BG_RESPONSIBLE';
commit;
In MSSQL Mgmt Studio directly...
update dbo.system_field set sf_root_id = null where sf_column_name = 'BG_RESPONSIBLE'
Or...
update td.system_field set sf_root_id = null where sf_column_name = 'BG_RESPONSIBLE'
Or within the ALM Site Administration...
- Select the Project in question
- Expand the table structure
- Select the SYSTEM_FIELD table
- Paste the following query in the query textbox…
update system_field set sf_root_id = null where sf_column_name = 'BG_RESPONSIBLE'
- Click the “Execute SQL†button to the right of the query textbox
Note: a successful run of the query will display “Empty Table†in the main view
Next, because values are cached we need to alter the customization in ALM to refresh the cache..
- Login to the ALM project in question
- Click Tools>Customize
- Select “Project Entities†in the left column
- In the main view expand the “Defect†item
- Select “User Fieldsâ€
- Click the “New Field†button on the top toolbar
- In the field details change the “Type†to “Lookup Listâ€
- In the lower area click the “New List†button
- Give the list a name, something like “TempListâ€
- Click okay, the Project List Dialog should open
- Click “New Itemâ€, give it some value like “aâ€
- Click OK
- Click the “Save†button in the top toolbar
- Exit the project customization
- In the Customization Changes dialog select the “Major Change†radio button, then click OK.
Back in the project view we need to reverse what was done above....
- Click Tools>Customize
- Select “Project Entities†in the left column
- In the main view expand the “Defect†item
- Select “User Fieldsâ€
- Select the field added in Step 6, note the lookup list its using
- Click “Delete Field†in the top toolbar, click yes to confirm
- Click the “Save†button in the top toolbar
- In the left column select “Project Listsâ€
- In the Project Lists view select the list created in Step 9
- Click “Delete List†button in the top toolbar, click Yes to confirm
- Click the “Save†button in the top toolbar
- Exit the project customization
- In the Customization Changes dialog select the “Major Change†radio button, then click OK.