Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Geometry2DImporter/SoilProfile2DImporter.cs =================================================================== diff -u -r5898 -r5903 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Geometry2DImporter/SoilProfile2DImporter.cs (.../SoilProfile2DImporter.cs) (revision 5898) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Geometry2DImporter/SoilProfile2DImporter.cs (.../SoilProfile2DImporter.cs) (revision 5903) @@ -166,6 +166,13 @@ return soilLayer2D.Soil; } } + string st = "surface "; + foreach (var geometryPoint in originalSurfaces[2].GeometrySurface.OuterLoop.Points) + { + st = st + " " + geometryPoint.ToString(); + } + + throw new InvalidOperationException("Soil should always be found at point X =" + point.X + " point Z = " + point.Z + " in surface " + st); return null; }