Association API Error: Association of type COMPANY from object to object forms a loop

I am getting an error “Association of type COMPANY from object 7681173647 to object 10476753281 forms a loop” when I try to add company-to-company association. Why would it happen? The parent object has a few other companies already associated with it.

Hi @IP8, This error typically occurs when an association is attempted between two objects that are already associated with each other.
In this case, it appears that the two objects are already associated with each other.
To avoid this error, you can check if the two objects are already associated by using the HubSpot API or by manually checking the associations from the HubSpot UI.