Tutorial Troubleshooting QGIS: Difference between revisions
Content deleted Content added
| (12 intermediate revisions by 4 users not shown) | |||
Line 13:
<li>Use the 'Save All' tool to save all unsaved control files:<br>
<br>
[[File:
<br>
</ol>
Line 23:
<li>A pencil icon on the layer ([[File:QGIS ToggleEditing.png]]) indicates that the layer is still editable and may contain unsaved edits. It is recommended to always turn off editing for all input layers. <br>
<br>
<br>
</ol>
Line 37:
<br>
===
<br>
<ol>
Line 55:
</ol>
===
<br>
<ol>
Line 69:
Note: The tool automatically increments a number if it is at the end of the file name.<br>
<br>
</ol>
<br>
===TCF does not exist===
Typos or spaces in the TCF name result in a 'does not exist' message in the
<ol>
<li>Check the name of the TCF is referenced correctly in the batch file.
Line 91:
===Ambiguous Command===
TUFLOW control files are command driven text files. The commands must be in the format and location TUFLOW is expecting. The <u>[https://
<ol>
<li>Example of a typo in the 'BC Control File ==' command: <br>
Line 102:
</ol>
<br>
===Editing File Extension===
When creating a control file from a .txt file, the file extension should be edited to reflect the control file type, such as .tgc, .tbc or .tcf. If the file extensions are hidden in Windows File Explorer, the intended changes to the file extension may be applied to the file name rather than the extension. This could result in control files being referenced incorrectly, which may cause the error message [[TUFLOW_Message_0008 | ERROR 0008]] - <filename> cannot be found.
To edit file extensions correctly, ensure file extensions are displayed by enabling the following option within Windows File Explorer:
<b> Windows 10 </b> <br>
<ol>[[File:File Ext Win10.png]]</ol>
<b> Windows 11 </b><br>
<ol>[[File:File Ext Win11.png]]</ol>
=Troubleshooting Steps=
=== Simulation
When batch file is double clicked and the simulation
<ol>
<li>Check the TUFLOW executable can be found with the specified filepath (absolute or relative).
<li>Double click the executable, this performs a licence check and
<li>TUFLOW doesn't run from a batch file if the filepaths are specified as UNC paths. The folder with both, the executable and the model, must be opened with a mapped drive. Type "net use <drive>: \\server_name\share_name" in the command line to map the drives.
<li>If using environment variable 'set exe', confirm there are no spaces surrounding the equals sign (e.g. set exe="..\..\..\exe\2023-03-AA\TUFLOW_iSP_w64.exe").
<li>Write 'pause' at the end of the script, rerun the batch file and the
<br>
<br>
</ol>
Line 122 ⟶ 134:
<li>Navigate to the '''TUFLOW\runs''' folder and open the '''_ TUFLOW Simulations.log''' in a text editor.
<li>Confirm if the simulation has 'Started' and 'Finished' line.
<li>If there is no log file, see <u>[[Tutorial_Troubleshooting_QGIS#Simulation
</ol>
Line 133 ⟶ 145:
<li>Review the error number, open the link provided in a web browser and read through the description and suggestions:<br>
<br>
<br>
<li>Open the .qgs workspace in QGIS from the '''TUFLOW\runs\log''' folder.
Line 140 ⟶ 152:
<li>In this example the 2d_bc SX point isn't snapped to the 1d_nwk culvert.<br>
<br>
<br>
<li>If no error messages appear in the .tlf and the last line shows 'Sending initialisation data to HPC...' see <u>[[Tutorial_Troubleshooting_QGIS#HPC_TUFLOW_Log_File_.28.
<br>
</ol>
| |||