Problem joining plaster walls to a base wall with door and window openings

I want to join two plaster walls to a base wall that already has defined window and door openings. However, when I try to make the connection, only one of the plaster walls correctly inherits the openings, with one of them missing. Image of algorithm attached

  1. Has anyone else faced a similar problem when trying to join plaster walls to a base wall with openings in Revit using Dynamo?
  2. What suggestions or recommendations could you provide to solve this issue with the inheritance of the openings?
  3. Is there any best practice or technique that can be applied to ensure the correct joining of the elements?
  4. Is there any alternative or different solution that I could explore to achieve the desired result?
    I appreciate in advance any guidance or suggestions you can provide. I’m open to receiving your comments and advice.

I believe that the node throwing the warning expects the element, not its geometry, for the inputs.

The following warning message appears: “The elements do not intersect.” Image attached