Depending on the the element types, sometimes revit will not automatically cut them together. I have had this with generic void family when placed does not automatically cut its host or intersecting elements unless the cut tool is used.
Therefore you might need to add some additional logic for cutting one element against another.
Review in the context of: there are a LOT of reasons thing A can’t be cut by thing B, and without the model (really just a model with thing A and thing B in it and nothing else) we can’t really help much beyond speculating as to which of the many reasons it is. Non-aligned types are a good starting point as @Brendan_Cassidy pointed out. Geometry alignments are another.
This is a case of “if the UI prevents it Dynamo won’t let it happen either” though, so you may want to check a Revit forum as well.
i found it. so i have a sloped wall and the opening is touching slidly the surface.
So when i make the opening bigger it works! but it still remains difficult to detect such openings.