I have run into something that puzzles me: attached a screendump.
The solid union does operate on the first instance, but not on the next, while input is the same.
The branch you used for Solid Union (0,0) which give you an error “should” have 6 brep objects… but it’s difficult to tell more from just a picture.
Can you copy what the orange bubble error message is saying?
Even better, attach a short version of your problem, with internalized data.
(the 2 trees after Trim and Graft would be the best)
Sorry for the delayed response: I didn’t have the file available over the weekend.
When preparing your request based on a slightly different file I noticed a repetition in the issue; It seems that the component had problems with some situations of solids were an edge is shared. The goal of the union at this point in the process was to make 1 solid of all involved solids, and some solids had (only) an edge joined.
I remember I have had similar problems in Rhino. Solids that are only touching via an edge can not be unioned.
I guess the fail was a result of the order in which the joining was taking place. If intersecting solids were joined first, one edge was eliminated and therefor posing no problem for further joining with solids that shared that edge, as it wasn’t shared anymore. This obscured the problem.
The problems seems solved by altering the solids a bit: by making sure no edges that are falling inside a larger solid (and therefor have no effect on the actual result) are in the same position, the union is succesfull.