Error: Invalid input mesh. Can't find 8 corners of a block by 2D mesh

I’m working on a mesh with bent pipes inserted into a rectangular shape. I made divisions in the geometry so that it had hexahedra in the model, although I have a problem when trying to make the 3D mesh. I want the mesh to be hexahedral, so I select the Hexahedron algorithm for 3D, Quadrangle mapping for 2D, and Wire Discretization for 1D. When I try to calculate the mesh, I receive the error message for the Hexa_3D algorithm #530(Solid) subshape “Invalid input mesh. Can’t find 8 corners of a block by 2D mesh.” Do you have any suggestions on how I can fix this?