Book a Demo

Recent Posts

Pages: 1 ... 3 4 [5] 6 7 ... 10
41
Bugs and Issues / Re: XEA Import error
« Last post by Geert Bellekens on March 15, 2026, 07:00:57 pm »
Hello,

I tried to import a large XEA file with a GUID reset to a new EA repository (shared on Postgres, available via the PCS 6.1.166) and I eventually get an Application Error.
Opening the DBError file, I have the following:

Enterprise Architect (Build: 1628 - 64 bit)
Sparx Systems Database API [0x00001086]
Native Update FAILED with error:
23503 ERROR:  insert or update on table "t_connector" violates foreign key constraint "fkam9fr64t66r6dgjgo3mfoji2a"
DETAIL:  Key (end_object_id)=(0) is not present in table "t_object".
Context:

What could be the issue ?

Updates:
- I upgraded the PCS to the latest build but it didn't resolve the issue
- I ran a project integrity check
- The workaround I found involved importing the XEA file to a blank EA project and re-exporting it with the Strip GUID enabled. I wonder if this is related with conflicts on external dependencies that are removed down by going through a blank EA project. The size of the new file is a bit smaller that the original one

Hmm, that's new. EA doesn't usually use any FK constraints.

Anyway, the reason is that you are trying to import a connector that connects to an object that is unknown.
I'm guessing your XEA file is not entirely self contained, and has references to elements outside of the XEA file.

Geert
42
Bugs and Issues / XEA Import error
« Last post by Guillaume on March 14, 2026, 02:15:49 am »
Hello,

I tried to import a large XEA file with a GUID reset to a new EA repository (shared on Postgres, available via the PCS 6.1.166) and I eventually get an Application Error.
Opening the DBError file, I have the following:

Enterprise Architect (Build: 1628 - 64 bit)
Sparx Systems Database API [0x00001086]
Native Update FAILED with error:
23503 ERROR:  insert or update on table "t_connector" violates foreign key constraint "fkam9fr64t66r6dgjgo3mfoji2a"
DETAIL:  Key (end_object_id)=(0) is not present in table "t_object".
Context:

What could be the issue ?

Updates:
- I upgraded the PCS to the latest build but it didn't resolve the issue
- I ran a project integrity check
- The workaround I found involved importing the XEA file to a blank EA project and re-exporting it with the Strip GUID enabled. I wonder if this is related with conflicts on external dependencies that are removed down by going through a blank EA project. The size of the new file is a bit smaller that the original one



43
General Board / Are namespaces reverse engineered in EA?
« Last post by mse on March 11, 2026, 07:37:58 pm »
For a C++ project, it does not seem that namespaces are reverse engineered into packages in EA. Does anyone know how to get this kind of behavior to work? The following for example should reverse engineer into a nested package structure in the Project view of EA:


Code: [Select]
///////////////////////////////////////////////////////////

//  TClass.hpp
//  Implementation of the Class ATemplateClass
//  Created on:      11-Mar-2026 09:33:56
//  Original author:
///////////////////////////////////////////////////////////

#if !defined(EA_E0A10386_AEB5_43dc_AEB9_7ECCE5611AE5__INCLUDED_)
#define EA_E0A10386_AEB5_43dc_AEB9_7ECCE5611AE5__INCLUDED_

namespace Package1
{
    namespace Package1
    {
        class Class1
        {

        public:
            Class1();
            virtual ~Class1();

        };

    }

    template<int T = 3>
    class ATemplateClass
    {

    public:
        ATemplateClass(){

        }
        virtual ~ATemplateClass(){

        }

    };

}

namespace Package2
{
    class cAB
    {

    public:
        cAB();
        virtual ~cAB();

        void foo();

    private:
        int x;

    };

}
#endif // !defined(EA_E0A10386_AEB5_43dc_AEB9_7ECCE5611AE5__INCLUDED_)
44
In order to create full backups of an EA repository on a regular basis, it would be very useful to configure them via the Pro Cloud Server Config Client.
It would be a new feature alongside the configuration of periodically generate Diagram Images and EA Charts.
A target folder would be selected so new subfolders would be generated each time with the full set of XML files matching EA tables.

Whilst DB backups can be set up on the selected DBMS, such backups have the advantage of being managed with EA.
45
General Board / How to review diagrams in EA
« Last post by Espen Albrektsen on March 10, 2026, 03:43:04 am »
Hi.

We need to produce a formal review of our EA model.
For classes and components, we are able to use the "Status" field to track if an item is approved or not.

But for diagrams, there is no status. I need

a) A method to know which diagrams have been reviewed
b) An "evidence" of the review - for example - can I link an EA Review to a specific version of a document
c) Prevent users from accidentally modifying diagrams _after_ they have been reviewed.

I ams ure more users have similar needs - what is the best way to solve this?
46
General Board / How to generate C++ code that does not append namespaces to C typedefs
« Last post by mse on March 06, 2026, 09:36:16 pm »
I have a model with a C typedef defined (class with typedef stereotype). When a C++ references this typedef, and I generate the C++ code, the resulting code adds a namespace to the typedef. Of course, being a C header file, there is no concept of a namespace, but C++ does have namespaces and wants to treat that typedef as a if it were located within a namespace.

Here is the resulting C++ code snippet:

Code: [Select]

private:
   Platform_Types::uint32 lux_value;
   Std_Types::Std_ReturnType status;

The Platform_Types and Std_Types however are supposed to be just the header files (and they are generated properly and have those typedefs. It's just that the C++ code is adding namespaces to it.
47
General Board / Re: Enterprise Architect 15.1 not generating headers (.h) for C
« Last post by mse on March 06, 2026, 07:47:22 pm »
Have you checked the language field under Project in the properties section to make sure it is set to C?
48
Bugs and Issues / CSV export of smart quotation becomes ’
« Last post by Barrie Treloar on March 06, 2026, 12:47:04 pm »
The joys of pasting content from word mean you get "smart" quotation marks.

When the Notes field of my Requirement contains
U+2019 : RIGHT SINGLE QUOTATION MARK {single comma quotation mark}

and I CSV Export with Code Page 65001 (UTF-8) it gets translated to
’

Does anyone know how to solve this issue?
49
Automation Interface, Add-Ins and Tools / Method to open a source file in EA ?
« Last post by Guillaume on March 05, 2026, 08:41:14 pm »
Hi,
Is there a way to open an XML file from a local path in EA source editor via an add-in ?
I have an addin that creates a file and I'd like to open it in EA once generated.
50
General Board / Re: Creating connectors on locked elements (new bug or feature?)
« Last post by Guillaume on March 05, 2026, 08:37:36 pm »
Ok. A workaround is to disable the Lock Connectors option and create a model based addin to prevent creating relations only between locked elements.
Pages: 1 ... 3 4 [5] 6 7 ... 10