Book a Demo

Author Topic: Name of XML File already exists in Version Control  (Read 8765 times)

Felix

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Name of XML File already exists in Version Control
« on: February 16, 2010, 01:10:23 am »
Hello!

I've got a problem when configuring the Version Control.

When I try to reconfigure a package that already is/was under Version Control, e.g. after a change of the path/directory, it is not possible to use the same XML filename.

"A file by this name already exists in Version Control.
Please choose another name."

How can I keep the old filname? This behaviour is really annoying because I'd like to keep reasonable filename and don't want to add numbers or funny special characters to the name.

Is there a workaround for this? I suppose the filename are saved within the eap file, so maybe delete them manually?

EA Version: 7.5.845


Felix

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Name of XML File already exists in Version Con
« Reply #1 on: February 16, 2010, 01:12:30 am »
Felix,

Isn't this error telling you that the file is already in the VC system?
Deleting it there should normally resolve the issue.

Geert

Felix

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Name of XML File already exists in Version Con
« Reply #2 on: February 16, 2010, 01:36:47 am »
Hi Geert,

indeed, deleting the file helps. Thank you!
Would be nicer, if EA would simply use the file, if it finds one. Changing version control settings is really complicated in EA.

Felix

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Name of XML File already exists in Version Con
« Reply #3 on: February 16, 2010, 05:51:44 am »
Felix,

That would be a bit too dangerous don't you think?
If I already have a file in my VC with that name it is probably used to control another package.

Geert

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Name of XML File already exists in Version Con
« Reply #4 on: February 16, 2010, 09:56:12 pm »
Hi Felix,

Do you use a folder structure on your SVN repository?
Using TortoiseSVN in your Windows Explorer you can create subfolders and commit them to SVN (e.g. use a folder structure similar to your EA package structure)

Once this is done, you can generate XML files in the appropriate subfolder, reducing the risk of clashing filenames.

Guillaume
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Felix

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Name of XML File already exists in Version Con
« Reply #5 on: February 17, 2010, 09:02:05 pm »
I think I just misunderstood how the "Control Package" works. I tought you connect a package in the model with a existing file (which might already contain the contents of the package). But its more like you chose a (new) file and the contents of the package is saved there.

Felix

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Name of XML File already exists in Version Con
« Reply #6 on: February 17, 2010, 09:10:52 pm »
indeed

Geert

Pete Kirkham

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Name of XML File already exists in Version Con
« Reply #7 on: February 19, 2010, 02:51:11 am »
Quote
Felix,

That would be a bit too dangerous don't you think?
If I already have a file in my VC with that name it is probably used to control another package.

Geert
It would be fairly trivial to check whether the UUID is the same, which it would be in the case of changing location or VCCFG id on XMI files.

Pete Kirkham

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Name of XML File already exists in Version Con
« Reply #8 on: February 19, 2010, 02:53:04 am »
Quote
I think I just misunderstood how the "Control Package" works. I tought you connect a package in the model with a existing file (which might already contain the contents of the package). But its more like you chose a (new) file and the contents of the package is saved there.

Felix
If the file contains a controlled package, and the VCCFG ID has been set up in the Version Control Settings, then if you using the XMI import option it will be controlled once it is imported, though you will need to do a 'Get Latest' on it to make any nested controlled packages appear controlled.