Used the Clean Up Diagram Button and Now the VI Is Broken

Updated Aug 30, 2018

Issue Details

  • Used the Clean Up Diagram button and now the VI is broken:
    • When trying to edit or add anything, everything except wires and some structures disappears from the block diagram.
    • After moving or editing, the VI no longer runs
    • Force closed the VI and internal warning 0x365219B4 popped up


A first step to try is to undo the Clean Up Diagram Button: 
  • Crtl + Z to undo
If this does not return the VI to the previous state, test to check if the file is corrupted:
  • Mass Compile
  • Create a copy of the VI as a new name and see if the problem persists
  • Open the VI on a different computer and see if the problem persists.


If the problem follows the file to a different copy or computer, then the VI is probably corrupt. Typically, the best course of action with corrupt files is to revert to a previous version of the file and continue development from there.

Additional Information

There is no one correct way to code. However, there are general best practices that should be taken into consideration. For the Clean Up Diagram button, it is not suggested to use on large VIs. In general, it should be used on small sections of code, and used throughout development if at all. It is meant to optimize the visual appearance of the Block Diagram, so it is not necessary to use.

In order to avoid VIs that take up multiple monitors of visual space, among other reasons, it is suggested to break parts of code into subVIs. These are especially useful if there are sections of code that are repeated.

It is also good practice to have some method of dataflow to determine the order of execution. Without any dataflow control, the Clean Up Diagram button will stack all of the code vertically, signifying to run everything in the stack at once. 


Not Helpful