I was running a dam breach simulation and had the following error at the very end of the simulation and was not allowing to save the results:
Unsteady flow encountered an error.
HDF5-DIAG: Error detected in HDF5 (1.8.11) thread 0:
#000: ..\..\src\H5Dio.c line 234 in H5Dwrite(): can’t prepare for writing data
1D Post Process Skipped (simulation is all 2D)
The problem was originated on the 2D flow area. It was basically due to the Tailwater Connection of the Dam Breach to the 2D flow area having elevations higher than the elevation of the bottom of the breach. In other words, the final bottom elevation of the breach was below the terrain elevation in a few locations.
To solve this issue, I reduced the length of the connection 2D Flow Area/Dam by moving points on the 2D Flow Area and checked that all points at this connection were below the final breach bottom elevation.
Hope this helps!