Book a Demo

Author Topic: Losing diagrams' content on import  (Read 11029 times)

Ericga

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Losing diagrams' content on import
« on: July 14, 2010, 11:44:02 pm »

If I export a package with the "full EA roundtrip" option, I still lose all the content of all diagrams that used some of the package's classes. The diagrams still exists but they are now empty.

I thought the purpose of the roundtrip option was to resynch entities based on their GUID included in the XMI so references was not lost?

tested with latest build (859)

thanks for any help understanding this

Eric

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Losing diagrams' content on import
« Reply #1 on: July 15, 2010, 12:43:07 am »
Hi Eric,

From what you wrote, it's not clear when the diagrams are losing their content.

Assuming you exported from Repository A and imported into Repository B, then which repository are the empty diagrams to be found?  When are the diagrams empty (after export from A or after import to B)?

Also, are all the packages which contain the elements in the diagrams exported from A and imported to B?

HTH,
Paolo
« Last Edit: July 15, 2010, 12:44:42 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Ericga

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Losing diagrams' content on import
« Reply #2 on: July 15, 2010, 01:38:55 am »
The diagrams' content is lost on import. Even in this simplest scenario the content is lost: export A to diesk, reimport A from disk as if I was just refreshing my package.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Losing diagrams' content on import
« Reply #3 on: July 15, 2010, 08:53:45 am »
Quote
The diagrams' content is lost on import. Even in this simplest scenario the content is lost: export A to disk, reimport A from disk as if I was just refreshing my package.
Sorry Eric, it's still not clear...

You are exporting Package Q from Repository A then reimporting Package Q back into Repository A and you are losing the diagram content?

If this is the case it's unusual.  What is your configuration and environment?

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Ericga

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Losing diagrams' content on import
« Reply #4 on: July 15, 2010, 11:29:26 am »

> What is your configuration and environment?

Latest build of the professional version on Windows 7

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Losing diagrams' content on import
« Reply #5 on: July 15, 2010, 12:07:11 pm »
OK, are you confirming the scenario in my last post?  Round-trip into the same repository?  How are you reseting the diagram for each test?

What settings are you using on the export and import?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Ericga

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Losing diagrams' content on import
« Reply #6 on: July 15, 2010, 09:47:20 pm »

> OK, are you confirming the scenario in my last post?  Round-trip into the same repository?  

yes

>How are you reseting the diagram for each test?

Just dragging a couple of related classes to it and saving

>What settings are you using on the export and import?

I just experimented again and got different results. I am exporting with these settings:

XMI 1.1
Enable full EA Roundtrip
Format XMI output
Use DTD
Write Log

And I import in a single transaction with Write Log. I do NOT check the Strip GUID option.

I am obviously doing something differently this time because the diagrams are just refresh instead of wiped out. However I get a ton of error messages like this while importing:

DAO.Field [3163]

The field is too small to accept the amount of data you attempted to add.  Try inserting or pasting less data.

ps: I have seen such errors in the past and instead of writing the errors to the log EA pops an error dialog for each one. An large imports the only solution is to kill the EA process unless you want to click OK a few thousand times.

So I am getting much better results now and the initial problem seem resolved (although I have no idea why) but I am now getting these error messages on import. I would like to ignore them but clicking OK repeatedly  for 5 minutes is irritating and I have no idea what field data I am losing yet)

Thanks for all the help

Eric


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Losing diagrams' content on import
« Reply #7 on: July 15, 2010, 10:07:45 pm »
Eric,

How old is your database/eap file?
Recently there have been some database schema changes, so it might be that your database schema is out of date. (and some fields have an incorrect length)
What I would do is following:
- Create a new eap file
- Do a model transfer from your old model to your new one
- Repeat the test on this new database.

Geert

Ericga

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Losing diagrams' content on import
« Reply #8 on: July 15, 2010, 10:22:30 pm »
Geert,

If by model transfer you mean importing the XMI in the new eap file I get the same error:


---------------------------
EA
---------------------------
DAO.Field [3163]

The field is too small to accept the amount of data you attempted to add.  Try inserting or pasting less data.
---------------------------
OK  
---------------------------

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Losing diagrams' content on import
« Reply #9 on: July 15, 2010, 11:38:30 pm »
Eric,

With model transfer I mean Tools/Data Management/Project Transfer

Geert

Ericga

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Losing diagrams' content on import
« Reply #10 on: July 15, 2010, 11:43:38 pm »

I transfered to a new project and tried importing again but got the same DAO errors.

Ericga

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Losing diagrams' content on import
« Reply #11 on: July 16, 2010, 05:23:38 am »
I have managed to make it work

Thanks a lot for the help

eric
« Last Edit: July 16, 2010, 05:24:13 am by Ericga »

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Losing diagrams' content on import
« Reply #12 on: July 16, 2010, 09:22:49 am »
Quote
I have managed to make it work

Thanks a lot for the help

eric
Yes but how, what was the problem, and how did you resolve it
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Ericga

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Losing diagrams' content on import
« Reply #13 on: July 16, 2010, 09:51:33 am »
I had to transfer the model and then re-export. Previously I had tried to re-import in the transfered model the XMI that I had exported from the old one.

The downside is all previous XMI exports are useless of course but we have a workaround if the legacy eap file is still around.