DataGrip Is Not Loading Saved UML Database Diagrams

I created multiple database diagrams in DataGrip. I saved the database diagrams as individual UML files. DataGrip sees the files in it's explorer window. When I open a UML file in DataGrip, nothing shows up. When I right-click the diagram and choose Analyze Graph → Show Graph Common Characteristics, it's showing zero nodes. When I open the UML files inside a text editor, the entire file is populated with XML and I can see that the tables are there.

Why isn't DataGrip displaying my saved UML database diagrams? What can I do to get these working again?

0
7 comments

Hi,

What version of DataGrip do you use?

Have you tried zooming in/out when opening the .uml file? Or pressing any other control buttons to see if the contents would get updated?

Have you tried generating a diagram for a different data source?

Does the problem persist if you disable all of the downloaded plugins and restart the IDE? Preferences | Plugins | ⚙ | Disable all downloaded plugins

If it does, please provide:

  1. A screenshot of the entire IDE window with the .uml file opened
  2. The XML contents of the exported diagram
  3. DataGrip log file: Help | Show Log in…. I will search for exceptions there. The file can be uploaded privately to https://uploads.jetbrains.com
0

What version of DataGrip do you use?

Version 24.1

 

Have you tried zooming in/out when opening the .uml file? Or pressing any other control buttons to see if the contents would get updated?

Yes. This does not affect the diagram.

 

Have you tried generating a diagram for a different data source?

Yes, but that does not address the issue. I need to be able to reopen diagrams that have been saved and edit them. Otherwise, I'm starting from the beginning and that is too time consuming and defeats the purpose of saving files in the first place.

 

Does the problem persist if you disable all of the downloaded plugins and restart the IDE?

Yes

 

If it does, please provide:

1. A screenshot of the entire IDE window with the .uml file opened

 

2. The XML contents of the exported diagram

<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
  <ID>DATABASE</ID>
  <OriginalElement>60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table1</OriginalElement>
  <nodes>
    <node x="50.5" y="-831.0">60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table1</node>
    <node x="-227.0" y="-820.0">60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table2</node>
    <node x="-168.5" y="-680.0">60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table3</node>
    <node x="78.0" y="-960.0">60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema2.Table4</node>
  </nodes>
  <notes>
    <note x="-293.0" y="-543.0">
      <node>60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table3</node>
      <value>Lorem Ipsum</value>
      <edge>
        <point x="0.0" y="27.0" />
        <point x="0.0" y="-30.0" />
      </edge>
    </note>
    <note x="-293.0" y="-955.0">
      <node>60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table2</node>
      <value>Lorem Ipsum</value>
      <edge>
        <point x="0.0" y="-27.0" />
        <point x="0.0" y="22.0" />
      </edge>
    </note>
    <note x="-33.0" y="-675.0">
      <node>60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table1</node>
      <value>Lorem Ipsum</value>
      <edge>
        <point x="0.0" y="38.0" />
        <point x="0.0" y="-22.0" />
      </edge>
    </note>
    <note x="-33.0" y="-1095.0">
      <node>60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema2.Table4</node>
      <value>Lorem Ipsum</value>
      <edge>
        <point x="0.0" y="-27.0" />
        <point x="0.0" y="22.0" />
      </edge>
    </note>
  </notes>
  <edges>
    <edge source="60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table1" target="60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema2.Table4" relationship="REFERENCES">
      <point x="0.0" y="-38.0" />
      <point x="0.0" y="27.0" />
    </edge>
    <edge source="60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table1" target="60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table2" relationship="REFERENCES">
      <point x="-77.5" y="-0.0" />
      <point x="95.0" y="-0.0" />
    </edge>
    <edge source="60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table2" target="60b088bb-8201-4327-b79b-e68799d55363.TABLE:database1.Schema1.Table3" relationship="REFERENCES">
      <point x="0.0" y="27.0" />
      <point x="0.0" y="-27.0" />
    </edge>
  </edges>
  <settings layout="Orthogonal Groups" zoom="1.0" showDependencies="false" x="-2.0" y="-789.0" />
  <SelectedNodes />
  <Categories>
    <Category>Comments</Category>
    <Category>Key columns</Category>
  </Categories>
</Diagram>

Please note that sensitive data has been replaced with generic data, but the file structure and other contents remain unchanged.

 

3. DataGrip log file

I uploaded this file to the link provided.

0

Hi Samus, 

When you open the uml file, do you see it listed in your project directory in the Files view? Also, do you open this file in the same project? For testing purposes, please open the diagram click on Fit Content in the toolbar, and save the diagram in uml. See if you can open it

I did a test with a basic schema having pk-fk relations in 2024.1.1 - it worked for me. You have also not provided the upload id required to find your uploaded data. Therefore, please upload the logs and provide the upload id you should get after the upload is finished.

0

Upload id: 2024_04_25_DVZ7kbVBPTDziHDJDe4p13 (file: idea.log)

0
Thanks for the update.

I have reported your issue here:

https://youtrack.jetbrains.com/issue/DBE-20622

In the meantime, please upgrade your IDE to 2024.1.2 and see if it improves the situation.
0

The situation remains the same after upgrading to 2024.1.2; none of the UML files load properly.

0
Thanks for confirming this.

This has been noted. Please follow the issue above to stay updated on the progress.
0

Please sign in to leave a comment.