Data Connector Import Rule deletes computer resources
search cancel

Data Connector Import Rule deletes computer resources

book

Article ID: 229748

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

You have created a data connector rule with source and import rules.

You are trying to import "users" (Type), but when "Delete removed resources" is also selected and the "Computer" (type) resources are being deleted (all of them). When the checkbox "Delete removed resources" is not selected the import works fine.

NOTE: The problem is that the users that have been removed from the source always stay in the ITMS database.

Environment

ITMS 8.x

Cause

When the import/export detects what is to be deleted - it takes everything that was imported previously by the "data source". 

If there are other rules (or the same rule had a different definition to import computers before), that were importing computers from that data source, these are treated as "gone" when the "user import" is performed because the resource type "user" will not "see the "computers" that were created by the first rule.

Resolution

Recommendation:

  • To avoid such a situation - create rules and data sources "in pair", i.e. one data source for just one rule.
  • Or, don't use the "delete" options for the rules, that are feeding data from the same source.

Confirmed that the same source was used for computer import also.

Created a duplicate source (same database and same fields) for the import user rule and the issue has not been observed since.