How does Reconciliation Rule work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2019 07:09 AM
Hello All,
I have a query related to working on Reconciliation Rule. Below is the Requirement.
Requirement:
- I want my ServiceWatch Data Source to update IP Address of Windows Server Record as it pulls latest data.
- I want my ServiceNow Data Source to Update the IP Address of Windows Server Record only if it is blank and not updated by ServiceWatch. If it already has any value then ServiceNow (Discovery) should not update the value of the field.
Thus I created 2 reconciliation rules and 2 Data Precedence rule as below.
Expected Outcome:
- As I have set High Priority for ServiceWatch Data Precedence rule, only it should update the value.
Actual Output:
- ServiceWatch Updates the IP Address Value of the CI record.
- If I execute Discovery, then though the field already has some value, ServiceNow is also updating the value.
Additional Info
- If I add additional attribute 'name' to existing Reconciliation rule for ServiceNow, then after discovery, it is just updating the name parameter and is not updating the IP Address Field.
Questions:
- How data precedence is considered in this case?
- The above use case if for only IP Address field but in general how does Reconciliation rule work if two or more rules are sharing similar attributes?
- Why the behavior is changing if I add any additional attribute to the ServiceNow recon rule?
Payload used to update the CI record for "ServiceWatch" data source.
var payload = {
items: [{
className: 'cmdb_ci_win_server',
values: {
ip_address: ’50.201.32.155’,
name: 'win-39juhe0vt56'
}
}]
};
var jsonUntil = new JSON();
var input = jsonUntil.encode(payload);
var output = SNC.IdentificationEngineScriptableApi.createOrUpdateCI('ServiceWatch', input);
gs.print(output);
Values on cmdb_datasource_last_update table
This table contains 2 records as per payload. one is Name and another is IP Address. Though discovery is updating the IP address of actual the CI record, the last updated data source on this table for IP Address record is still "ServiceWatch"
Please share your inputs.
Note - Kindly don't share any documentation link.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2019 10:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2020 09:45 AM
Additional Info
- If I add additional attribute 'name' to existing Reconciliation rule for ServiceNow, then after discovery, it is just updating the name parameter and is not updating the IP Address Field.
Did you get the reason?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2021 04:38 AM
Hello,
Were you able to achieve this? as even we are struggle with the same one.
-Thanks