swmm error: encountered during 2D initialization, please check diagnostics file
source: Innovyze support portal
This article shows the troubleshooting steps when getting the following error.
Show the Diagnostics on the map
The diagnostics file is located under the modeling folder, the default location is,
If it is not loaded, right click on the “Diagnostics” item in the layer list to load the file.
By default, XPSWMM only shows the first 5 messages. To overwrite that, right click on the file, the choose properties.
In the dialogue, switch to the data tab and make sure there are more items displayed than the number of items. You can turn off different type of messages to make it easier to locate them on the map.
Search for the error code
The error code can be found on the Tuflow website. Usually if you google “tuflow error xxxx”, it will take you to the official page of the error
An interface line needs to be connected to a node on both ends, as shown below, the left side of the interface line was digitized as two line segments instead of a continuous one. To fix this error, delete the left interface lines, and digitize a continuous one.