Include-config creates infinite loop

I have the following structure:
main.xml ( < include-config code=“file1”/> < include-config code=“file2”/> )
file1.xml (< include-config code=“Utils”/>)
file2.xml (< include-config code=“Utils”/>)
Utils.xml

By doing so, I receive the following error: image

Is there any way to add security to avoid this infinite loop?

I found the solution. The trick is in the import order (main should include utils before including the files)

main.xml ( < include-config code=“Utils”/>< include-config code=“file1”/> < include-config code=“file2”/> )
file1.xml
file2.xml
Utils.xml

2 Likes

I am running into the same problem. However, the workaround does not work for me. There has to be some way to reuse code. Does anybody have any suggestions?