# ActiveDirectory Aggregation Error

**URL:** <https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508>\
**Category:** IIQ Discussion and Questions\
**Tags:** aggregation, entitlements, identityiq\
**Created:** [July 1, 2024, 8:01pm UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508 "2024-07-01T20:01:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ko111](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@ko111](https://developer.sailpoint.com/discuss/u/ko111)\
**Post date:** [July 1, 2024, 8:01pm UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/1 "2024-07-01T20:01:12Z")

</div>

### Which IIQ version are you inquiring about?

Version 8.3

### Please share any images or screenshots, if relevant.

 ![Screenshot 2024-07-02 at 1.15.37 AM.png](https://global.discourse-cdn.com/sailpoint/original/2X/3/3a443b70d5e69b239aebaa1a906131db3cd3ceaa.png)  
 ![Screenshot 2024-07-02 at 1.15.37 AM.png](https://global.discourse-cdn.com/sailpoint/original/2X/3/3a443b70d5e69b239aebaa1a906131db3cd3ceaa.png)  
 ![prod_aggregation_error.png](https://global.discourse-cdn.com/sailpoint/original/2X/3/3a443b70d5e69b239aebaa1a906131db3cd3ceaa.png)  
 ![sandbox_aggregation.png](https://global.discourse-cdn.com/sailpoint/original/2X/4/43cb93187cfbd5f70cc0193246c251a2c40ae97d.jpeg)

### Share all details related to your problem, including any error messages you may have received.

When ever there is an change in the OU of any AD group, group aggregation getting ended with error “org.hibernate.exception.ConstraintViolationException: could not execute statement” in the production.However when we tested the same scenario in sandbox it’s working fine without any issue.  
Any suggestion on the above issue would be appreciated!

---

<div class="post-metadata">

**Author:** ![lfmsp](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/lfmsp/32/8936_2.png) [@lfmsp](https://developer.sailpoint.com/discuss/u/lfmsp)\
**Post date:** [July 1, 2024, 8:22pm UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/2 "2024-07-01T20:22:17Z")

</div>

Good day,

Could your provide your Active Directory configuration?

Maybe it happen because the Identity Attribute must be inmutable.

Regards.

---

<div class="post-metadata">

**Author:** ![enistriminsait](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@enistriminsait](https://developer.sailpoint.com/discuss/u/enistriminsait)\
**Post date:** [July 1, 2024, 8:38pm UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/3 "2024-07-01T20:38:27Z")

</div>

Hi @ko111,  
it means that SP try to write an object with it already exist.

It could possibile those object are lock or corrupted or with a missing foreing key.  
Trry to search one(in debug or db), see the situacion and clean it.

---

<div class="post-metadata">

**Author:** ![vishal\_kejriwal1](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vishal_kejriwal1/32/10904_2.png) [@vishal\_kejriwal1](https://developer.sailpoint.com/discuss/u/vishal_kejriwal1)\
**Post date:** [July 1, 2024, 9:18pm UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/4 "2024-07-01T21:18:26Z")

</div>

I would say check the data in database if value column exist in spt\_managed\_attribute with both old and new value of OU .

---

<div class="post-metadata">

**Author:** ![pravin\_ranjan](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/pravin_ranjan/32/6771_2.png) [@pravin\_ranjan](https://developer.sailpoint.com/discuss/u/pravin_ranjan)\
**Post date:** [July 2, 2024, 6:12am UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/5 "2024-07-02T06:12:43Z")

</div>

@ko111 pls check this thread,

[AD Aggregation Issue: org.hibernate.exception.ConstraintViolationException - Compass (sailpoint.com)](https://community.sailpoint.com/t5/IdentityIQ-Forum/AD-Aggregation-Issue-org-hibernate-exception/td-p/223534)

---

<div class="post-metadata">

**Author:** ![ko111](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@ko111](https://developer.sailpoint.com/discuss/u/ko111)\
**Post date:** [July 3, 2024, 1:16pm UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/6 "2024-07-03T13:16:46Z")

</div>

Hi @pravin_ranjan,  
We used to follow the step mentioned in the post shared by you earlier like deleting the group/entitlement causing the issue and re-aggregating, though issue is still re-appearing after sometime, so I’m seeking for any permanent solution so that it won’t reappear.  
you suggestion on the same would be helpful.

---

<div class="post-metadata">

**Author:** ![ko111](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@ko111](https://developer.sailpoint.com/discuss/u/ko111)\
**Post date:** [July 3, 2024, 10:27pm UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/7 "2024-07-03T22:27:11Z")

</div>

Hi @enistriminsait,

We observed that when a group’s OU got update from AD, on next aggregation SP consider this OU updated group as new one instead of updating the existing group in SP.  
During this SP trying to create this group as a new object with the same hash value as an existing one which causing this aggregation error.

We do tried to remove those group which causing this aggregation error though it’s working only temporarily. So seeking some other way to get the permanent solution

Your suggestion on same would be appreciated.

---

<div class="post-metadata">

**Author:** ![enistriminsait](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@enistriminsait](https://developer.sailpoint.com/discuss/u/enistriminsait)\
**Post date:** [July 4, 2024, 6:33am UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/8 "2024-07-04T06:33:15Z")

</div>

Hi,

can you try to mark this flag in account aggregation and launch an other one(if ou dont have already marked):

![image](https://global.discourse-cdn.com/sailpoint/original/2X/b/b21e8c433c01f54e00fe634ed2692071e6dda8fd.png)

---

<div class="post-metadata">

**Author:** ![ko111](https://avatars.discourse-cdn.com/v4/letter/k/d78d45/32.png) [@ko111](https://developer.sailpoint.com/discuss/u/ko111)\
**Post date:** [July 8, 2024, 8:25am UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/9 "2024-07-08T08:25:47Z")

</div>

Yeah it was marked(detect deleted account) from the beginning, though we facing the issue.

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/2/25a4f9c85fdf59c5eaa8e673d6bdb1ca0c3b0950.png)

---

<div class="post-metadata">

**Author:** ![enistriminsait](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@enistriminsait](https://developer.sailpoint.com/discuss/u/enistriminsait)\
**Post date:** [July 8, 2024, 8:35am UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/10 "2024-07-08T08:35:37Z")

</div>

ok, so try to check the db, make a maintenance cycle on db:

1. _Index Defragmentation_
2. _Log File Maintenance_
3. _File/Data Compaction_
4. _Integrity Check_

---

<div class="post-metadata">

**Author:** ![praful1611](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/praful1611/32/13734_2.png) [@praful1611](https://developer.sailpoint.com/discuss/u/praful1611)\
**Post date:** [July 12, 2024, 11:04pm UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/11 "2024-07-12T23:04:07Z")

</div>

Hi  
I am not a expert yet but trying to guess few root causes that might be worth checking in order to troubleshoot this issue.  
Identify table names and constraint names in error message  
Check for differences in constraints,indexes, and data types  
Ensure that hibernation is consistent  
Run SQL diagnostics

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [September 10, 2024, 11:04pm UTC](https://developer.sailpoint.com/discuss/t/activedirectory-aggregation-error/70508/12 "2024-09-10T23:04:39Z")

</div>

Closed on September 10, 2024, 11:04pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
