Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Incorrect ID Numbers in XML Code #1130

Open
rayan2000-oss opened this issue Mar 12, 2025 · 1 comment
Open

Issue with Incorrect ID Numbers in XML Code #1130

rayan2000-oss opened this issue Mar 12, 2025 · 1 comment

Comments

@rayan2000-oss
Copy link

Archi Version

5.4.2

Operating System

windows 11

Archi Plug-ins

No response

Description

I am encountering an issue with the ID numbers in the XML code. Every time I generate or modify the XML file, the ID references do not match correctly, causing errors when trying to import the file into the ArchiMate tool.

I would like to confirm:

How are the correct IDs assigned? Should they be predefined, or is there an existing source I should extract them from?
Is there a mapping system to ensure that IDs remain consistent between elements and relationships?
Is there a validation method I can use to check if IDs are correct before importing the XML?
Please let me know how I can proceed to ensure the IDs are correctly assigned. I appreciate your guidance on this.

Steps to reproduce

No response

@Phillipus
Copy link
Member

Phillipus commented Mar 12, 2025

Are you developing a plug-in or modifying the *.archimate file manually?

If so, then you have to be careful to ensure that identifier references are maintained. In Archi they are of the form id-20b8fc6bdaa14699a18437212dabe2a9 so they have to align with the XML rules for unique identifiers.

Internally in Archi they are generated here.

Once an ID has been assigned to an object all references to it must be maintained in XML. For example, an Element's ID is referenced with the archimateElement attribute in a visual object:

<element xsi:type="archimate:BusinessActor" name="Business Actor" id="id-20b8fc6bdaa14699a18437212dabe2a9"/>

<child xsi:type="archimate:DiagramObject" id="id-c322a86b9c12471d8c5b8644e4ca0381" archimateElement="id-20b8fc6bdaa14699a18437212dabe2a9"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants