Skip to main content
Solved

Relation between Applications: creating cycle

  • November 1, 2025
  • 2 replies
  • 139 views

Paulo Vilar
Forum|alt.badge.img

Hi,

I want to create a new relation between applications to show the connected application via interfaces.

Meaning, if an application A is a provider for interface Y and application B is a consumer, A is connected to B and this should be visible in both A and B factsheets.

The problem is: when I add B to the relation with A and then go to B to add A, it creates a cycle and LeanIX return an error.

Is there a way to solve this? I just whant to have a way to show all the applications that are connected to A.

Thanks

Best answer by Thomas Schreiner

Hi ​@Paulo Vilar,

I don’t think the error is because of a cycle, but because this relation already exists. If you add a relation from A to B, LeanIX will also consider this as a relation from B to A, because relations are not directed in LeanIX, so you are trying to create a duplicate relation.

That aside, I would *highly* recommend to not manually maintain those A->B relations, but let them be maintained and updated automatically based on your Interface data. Our Aronis Automation Platform has a standard automation for exactly this use case. Are you attending the Den Haag summit next week? Then I’ll be happy to show you how it works.

2 replies

Thomas Schreiner
Forum|alt.badge.img+3
  • Everlasting Love
  • Answer
  • November 1, 2025

Hi ​@Paulo Vilar,

I don’t think the error is because of a cycle, but because this relation already exists. If you add a relation from A to B, LeanIX will also consider this as a relation from B to A, because relations are not directed in LeanIX, so you are trying to create a duplicate relation.

That aside, I would *highly* recommend to not manually maintain those A->B relations, but let them be maintained and updated automatically based on your Interface data. Our Aronis Automation Platform has a standard automation for exactly this use case. Are you attending the Den Haag summit next week? Then I’ll be happy to show you how it works.


Paulo Vilar
Forum|alt.badge.img
  • Author
  • Royalty For Loyalty
  • November 4, 2025

Hi ​@Thomas ,

The error is exactly because of a cycle:

{
"data": {
"updateFactSheet": null
},
"errors": [
{
"message": "Cycle detected:\nconnectedApplicationsFromApplicationConnectedApplicationsApplicationRelation: App1 --> App2 --> App1",
"path": [
"updateFactSheet"
],
"extensions": {...

 

I understand why it’s creating a cycle but I don’t see another way to create the list.

I want to show all the applications connected to “my” application. The only way I see it it’s with a relation.

When my application is added to an interface I have this Azure logic app that adds other applications to the list but because I need to add to the other application as well, the cycle is createad. Unfortunately I don’t see another way to do it.

 

Unfortunately I will not be at the summit. Maybe next time.

Thank you,

Paulo