Book a Demo

Author Topic: MDG document templates not available  (Read 4220 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
MDG document templates not available
« on: May 13, 2020, 06:52:14 pm »
Hi all,


Got a bizarre one.

I've got a couple of MDG Technologies that I'm working on, and a couple of different projects. The technologies are deployed to a shared directory, not imported into the projects.
I also have a test directory for in-progress versions, which only I use. There are profiles, doc templates and scripts in these technologies, most importantly a DocumentGenerator script.

Last night I ran off a document using my main generator script, from an in-progress version. It came out as expected.

This morning, I repeated the same generation but this time, basically nothing comes out.
I get the cover page (which is located in the project, not the technology), and I get the header/footer from a linked document, same deal.
I then get the text "Contents" so presumably the TOC is generated, although the table is empty because no other content is generated.

If I go into the templates dialog, there are no technology templates. None.

This explains why the generation doesn't work, but why are they missing?

The technology worked fine last night. It doesn't now.

And if I switch the client to read technologies from the deployment directory, which works for everyone else, it still doesn't work for me.

So it appears my installation has broken.

Has anyone seen this before?
How do I fix it?


/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: MDG document templates not available
« Reply #1 on: May 13, 2020, 07:01:53 pm »
I've seen this type of thing when people "accidentally" imported an MDG (that was already imported into the model) in their user profile.
(I say "accidentally" because they had no business importing MDG's anywhere, and they didn't mention that fact when they complained about not being able to generate documents >:()

When EA finds duplicate MDG's everything gets messed up.

Another case was when someone selected the wrong perspective. That also made the technology templates disappear.

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: MDG document templates not available
« Reply #2 on: May 13, 2020, 07:12:37 pm »
OK, thanks.

I haven't fiddled with anything like that, but I deleted all recently changed files from %AppData%\Roaming\Sparx Systems\EA. That worked.

These were the files, so one of them was the offender:
  • files.xml
  • UserTechnologySet.xml
  • {GUID1}_recent.xml (had a <recentdiagramlist>)
  • {GUID2}_recent.xml (had a <recentdiagramlist> and a <recentdocumentlist>)
UserTechnologySet is a prime suspect, but I'll swear blind that I haven't touched the perspectives.

Weird.

But fixed.

/U
My theories are always correct, just apply them to the right reality.