Book a Demo

Author Topic: Linked Doc oops  (Read 3479 times)

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Linked Doc oops
« on: May 16, 2006, 07:18:51 pm »
Oops, I've moved the project from one system to another  and I've now lost the linked doc template that I used here there and everywhere.  Result, all these elements have linked docs with "bad template id's" and when I (double) click on them  EA gradually crashes.

How or where do I find the linked doc info for an element?


:-[
bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: Linked Doc oops
« Reply #1 on: May 17, 2006, 12:28:56 am »
How did you move them?

I exported my top-level-Packages to XML (from oracle-DB) and imported them to a new project (EAP-file). All my "attach to element feature"-links where (hmmm... lets say) broken. The content of the text boxes where unprotected but readable. Futhermore, the "attach to diagram note"-links where broken as well and showed  empty squares.

However, I could reassign them all. My EA did not crash.

Stefan

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Linked Doc oops
« Reply #2 on: May 17, 2006, 04:19:26 pm »
Machine upgrade - copied the EAP's and "most" of the other add-ins and etc's but missed the linked doc templates some how.  Old machine government PC - now "gorn" - as in wiped clean before being sent to auction.

Netnasties will recover the files for me from backup but I need to give them the file names.  The ones I'm interested in are not, of course, the standard EA templates but my own highly evolved ones.

Are the templates in the EAP? or are they linked to external xml (or something) files?  I assumed the latter.  So I'm looking for where the file path is stored in the EAP tables.

tia
bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Linked Doc oops
« Reply #3 on: May 17, 2006, 04:27:47 pm »
Could it be in the t_template.Template memo field by any chance?

Or, t_document.FileName (check that one to be sure), or t_objectfiles.FileName, or my best guess: t_object.GenFile.
« Last Edit: May 17, 2006, 04:31:48 pm by Midnight »
No, you can't have it!

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Linked Doc oops
« Reply #4 on: May 17, 2006, 05:13:50 pm »
= This reply posted for the benfit of any future sufferers =

Quote
Could it be in the t_template.Template memo field by any chance?

Nope - that contains code and export (csv) templates (by value)  :(

Quote
Or, t_document.FileName (check that one to be sure),

t_document seems to be the actual linked doc and doesn't contain a "FileName" field. :(

Quote
or t_objectfiles.FileName

Nope - that's for (the old) linked files, not (the new) linked docs. :(

Quote
or my best guess: t_object.GenFile.

Nope thats the code gen file. :(

Maybe I'm ululating up the wrong eucalypt ???  

I have an artifact element (stereotype <<document>>) which has a linked document.  When I try to open that doc EA crashes  with the following sequence:
1) document window appears
2) msgbox popup title "Error" message "Some character formatting data missing" appears - click OK
3) msgbox popup title "Char Tag Ids" (sic)  message "Some character formatting data missing" appears - click OK
4) msgbox popup title "Char Lead Bytes" message "Some character formatting data missing" appears - click OK
5) msgbox popup title "Error" message "Font table incomplete" appears - click OK
6) Two exe crash debug error occurs at blah blah popups follow and EA exits.

The t_document row for the concerned element is as follows"

DocID={1FBBF414-A660-45ce-B363-8E3E138DAA3C}
DocName="Use Case Model::Artifact1"
Notes=""
Style=""
ElementID={609FB754-CA56-429b-A244-33D8CE15D4E4}
ElementType="ModelDocument"
StrContent=""
BinContent=<long binary data>
DocType="ModelDocument"
Author=""
Version=""
IsActive=""
Sequence=""
DocDate=""

So it looks like the document itself is corrupted.  But what I really want is the template I used back  :'(

I am placing a support request re the corrupt doc but has anyone else got any clues as to where the templates are stored?

bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.