Troubleshooting
Some common issues installing and loading our tools are listed below, organized by software component. Please check through these common scenarios before contacting support.
Last updated
Some common issues installing and loading our tools are listed below, organized by software component. Please check through these common scenarios before contacting support.
Last updated
First, check to make sure you have the most recent version of the tools installed. Minor bug fixes may be fixed and updated in the component's source code repository download section.
If you are upgrading from a previous version, before installing an update, be sure to close SWAT+ Editor, QSWAT+, and QGIS. If you have trouble opening the software, or loading your existing projects in SWAT+ Editor, open the task manager and verify no instances of swatplus_rest_api.exe
are running. If they are, right-click and end the task, and reinstall.
Please note that on Windows, the minimum QGIS version allowed is 3.16.14, however we strongly recommend using version 3.22.
For most users, the QSWAT+ plugin should appear automatically in your QGIS toolbar after install. If it does not, click on the Plugins menu, then verify it is listed and checked in your list of installed plugins. If not, check the QGIS messages by clicking the thought bubble icon in the lower right corner of the screen. Click the QSWAT+ tab and copy and paste the messages in a new post in the QSWAT+ User Group. If there is no QSWAT+ tab, check the other tabs for information.
This can happen when opening an existing project. If you are using the standard SWAT+ plant table, use the plant pull-down menu in the Create HRUs form, select Use CSV file, and load SWATPlus/Databases/plant.csv
.
Make sure you have installed the most recent version of QSWAT+ and followed the manual's installation instructions closely.
If you received an error during steps 1, 2, or 4 of the QSWAT+ interface, please consult the QSWAT+ user group. Check existing questions to see if anyone else had the same problem. If not, please post your error and be as descriptive as possible about what you were doing when you received the error message.
SWAT+ Editor is most often accessed during step 3 of the QSWAT+ plugin. It may also be launched on its own (search for SWATPlusEditor
, or find this file in your SWATPlus/SWATPlusEditor
installation folder). Make sure you have installed the most recent version of SWAT+ Editor.
If your error is not covered by the solutions below, please consult the SWAT+ Editor user group.
If you receive an error message similar to the image below, or you see a loading spinner for a minute followed by a message that the editor did not load correctly, it's possible that your installation didn't work properly.
Verify the files located in your SWATPlus installation folder, SWATPlus/SWATPlusEditor/resources/app.asar.unpacked/static
. The contents should be as described below:
api_dist
swatplus_api.exe
swatplus_rest_api.exe
swat_exe
There should be several executable files matching the current model revision number
appsettings.json
swatplus_vardefs.sqlite
If any or all of the files above are missing, your installation did not complete successfully. You might try disabling your antivirus and installing again.
If you receive this message when you first launch your project in the editor, it is a sign the editor did not load its services correctly.
Click the question mark icon in the lower left corner to open the help page. Scroll to the bottom and looking for the "Troubleshooting" section. If you see a message stating "Unable to connect to SWAT+ API", please try the following steps before contacting support:
Open a command prompt window. Make sure you are in the drive where you installed SWAT+. Browse to the location below, then run the swatplus_rest_api.exe file.
If it is working properly, you should receive something similar to the following:
If this is what you received, please simply close SWAT+ Editor and try launching it again.
If you get no message on the screen at all, it might be a permission error or problem related to your computer settings. Try installing to another location on your machine, such as another hard drive, or even install to a flash drive. If this still does not work, try another machine.
If you still cannot get it to open, contact the developer.
When loading your projects from a previous version of the editor, the project should open right away and show a screen similar to the following:
If this is what you see, simple click the update project button to continue. While a backup of your project database will be created automatically, it is not a bad idea to keep a backup of your entire project folder manually yourself. Be sure to read the release notes for a full understanding of what has changed in the model since the last version. Some manual data updates may be necessary.
If you do NOT see the above screen and instead your see a loading spinner for a minute followed by a message that the editor did not load correctly, it's possible that your update didn't work properly. Verify the date of the two files located in your SWAT+ installation folder, SWATPlus/SWATPlusEditor/resources/app.asar.unpacked/static/api_dist
.
If either file has a date earlier than the release date of the editor, they did not get updated during installation. Please uninstall SWAT+ entirely, manually delete the SWATPlus
folder, and install everything again.
If you receive any other error messages from SWAT+ Editor, from its menu go to View -> Toggle Developer Tools. In the windows that pops open, toggle the Console tab and take a screenshot or copy an errors received and post to the SWAT+ Editor user group.
If you received an error running the model, first make sure you have run it in debug mode and checked the detailed error received. If you are not able to make sense of the source of the model error, please post to the SWAT+ model user group AND include your project files. This error is likely project specific and we cannot help you without seeing your project files.