Book a Demo

Author Topic: Hard delete (CTRL-DEL) => "Error writing XML file"  (Read 18894 times)

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Hard delete (CTRL-DEL) => "Error writing XML file"
« on: March 15, 2014, 12:14:26 am »
Hi all,

when I hard-delete an element either with CTRL-DEL from the diagram or with <delete> from the project browser context menu I get three times the messagebox "Error writing XML file".

This affects all kind of elements, but not connectors.
This happens in all kinds of repositories, in checked-out subversion packages as well as in a new created local EAP-file repository.

The mentioned element is hard-deleted afterwards anyway. I can't find anything wrong in the repository. It's just this strange message I'd like to get rid of.

I tried to change some entries in <options> <XML specification>, but without efford.

tfh Stefan

Nizam Mohamed

  • EA User
  • **
  • Posts: 193
  • Karma: +1/-0
    • View Profile
Re: Hard delete (CTRL-DEL) => "Error writi
« Reply #1 on: March 18, 2014, 07:54:58 pm »
What repository are you using? was the driver modified recently?.

I've encountered some of these strange errors when my MySQL ODBC driver wasn't compatible or if i miss setting the required options like 'Return Matched Rows' or 'Allow big result sets', etc.

Check pages like http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/projects_and_teams/setupmysqlodbcdriver.html

« Last Edit: March 18, 2014, 07:55:41 pm by nizammohamed »

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #2 on: March 18, 2014, 11:46:50 pm »
Same problem exists with large Oracle based Subversion controlled repositories as well as with a local newly createdand thus empty EAP file.

I wounder if EA writes into a local temp file where I have no permission or that does not exist or whatever ...

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #3 on: March 18, 2014, 11:57:07 pm »
I've seen this error in the past when using version control, but then it wouldn't be immediate when deleting a class.
You don't have auditing enabled by any chance?

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #4 on: March 18, 2014, 11:58:03 pm »
Or an error somewhere in an MDG file?

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #5 on: March 19, 2014, 01:33:44 am »
Quote
Or an error somewhere in an MDG file?

Geert
That would result in Error Reading, not writing I guess.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #6 on: March 19, 2014, 05:25:06 pm »
Quote
Quote
Or an error somewhere in an MDG file?

Geert
That would result in Error Reading, not writing I guess.

q.
Yes, one would guess that, but with EA you never know ;D

Geert

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #7 on: March 19, 2014, 07:35:57 pm »
Thanks so far!

I checked auditing. It's off.
We don't have any add-ins.
We don't use MDG  ...  as far as I know. How can I check this and where do I find MDG files?

I noticed that $EAPDIR (tools - options - general - file directory) is not set on my W7 PC in the environment variables. Do you think this could be a problem? I don't have W7-admin-privileges and thus no access to W7 system control.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #8 on: March 19, 2014, 08:41:08 pm »
A missing $EAPDIR would probably only harm if you use local paths in EA.

MDGs are turned on/off via Settings/MDG. The MDGs are stored in the EA Programs directory in the MDG... directory. Check the Advanced button to see if other paths for MDGs are enabled.

q.

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #9 on: March 20, 2014, 12:39:10 am »
I turned off all MDG I do not use. This did not solve the problem. I don't have any additional path'.

I wonder why the two females in my team do not get the XMI error message while the guys all have this problem, even the collegue who got a new installation this week. What might be the difference? I start believing EA has a gender sensor bringing up obfuscated messages only to males ... (just kidding)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #10 on: March 20, 2014, 07:27:28 am »
Have you contacted Sparx support directly via mail? I would recommend to do so.

q.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #11 on: October 29, 2014, 03:44:04 am »
Hi,

Did you ever get to the bottom of this - many, but not all of my users are having the same issue ???

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #12 on: November 04, 2014, 06:27:55 pm »
I'm pretty sure it is related to a erroneous MDG technology file.
Have your users turn off all MDG's and then try again.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #13 on: November 04, 2014, 08:59:04 pm »
Quote
I'm pretty sure it is related to a erroneous MDG technology file.
Have your users turn off all MDG's and then try again.

Geert
The OP told us he did so and it did not help...

q.

adepreter

  • EA User
  • **
  • Posts: 190
  • Karma: +10/-10
    • View Profile
Re: Hard delete (CTRL-DEL) => "Error writing XML f
« Reply #14 on: November 06, 2014, 01:30:55 am »
Besides the fact that we are using the MS Application Virtualization Desktop Client, we have the same problem even in the simplest situation:
- Create a new local EAP project
- Disable all MDGs. Keep only Basic UML so that at least something can be created.
- Close Sparx and reload local EAP project
- Add a class and delete it from the model => Error Writing XML File

@Sparx moderator: Did the Sparx developers look in their code? This should be easy to find