Book a Demo

Author Topic: Re-using controlled packages resulting in error...  (Read 14695 times)

José

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re-using controlled packages resulting in error...
« on: October 05, 2015, 09:27:43 pm »
Hi all,

I have a question regarding controlled packages. We have an EA model containing all generic requirements. These requirements are being used by other projects, which all have their own EA model. Since the projects want to re-use the generic EA model, we have placed all EA models under version control (root node > package control > add branch to version control)  using Subversion.

When I re-use the generic requirements into one of the project EA models (package control > get package), I get the error message “error: root import package already exists in another location”. It said that in my current model (with multiple model nodes, there is already a package with the same name. Since all our models are using the same layout, this is true. But I expected that since I placed the package in a new model node, it would work. But I also got the impression that all my EA models got the same GUIDs when being placed under version control and this might cause also the error.

Did anyone experienced this issue before? If so, how can this be solved but still keep using our standardized layouts for all projects?

Note that all our EA models are placed on the SQL-server, so there are no local copies. Also each EA model has the same standard layout. This means that each model has the same package structure and also the same package names.

Thank you in advance.

Kind regards,

José

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Re-using controlled packages resulting in erro
« Reply #1 on: October 05, 2015, 11:12:15 pm »
You already have that controlled package somewhere in your model (as the guid suggests). Try searching for that package

Code: [Select]
SELECT t_object.ea_guid AS CLASSGUID, t_package.Name as PackageName, ParentPkg.Name as ParentName, t_object.ModifiedDate, t_object.Author, t_object.[Version], t_object.[Alias], t_object.Object_Type as CLASSTYPE,t_object.Note as Notes
FROM t_package, t_object, t_package as ParentPkg
WHERE
t_object.ea_guid = "your guid"

You need to remove it before you can use the controlled package. If needed export it as XMI and re-import it later using Strip GUIDS.

q.
« Last Edit: October 05, 2015, 11:13:28 pm by qwerty »

José

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Re-using controlled packages resulting in erro
« Reply #2 on: October 06, 2015, 03:22:29 pm »
Thank you Qwerty,  the strip GUIDs did it...