I find that when make Compound Path gives troubles, sometimes Minus Front in the Pathfinder panel will work.
Thank you so much for that.
I could not get my compound path to work properly. I did not know about all the pathfinder options, so this has a lot of possibilities for me now.
You saved me a lot of time.
Check also Winding Rule and Reverse Path buttons on the Attributes palette.
They can sometimes mend compound paths that don't work properly.
Compound paths can sometimes be very frustrating, even for experienced users. In addition to the other responses I would like to add this simple illustration:
Top row = composed of 5 big circles and 5 smaller ones directly on top. Doing a compound of all 10 gives an undesired result. This happens often when creating/editing type and trying to knockout the centers.
Bottom row = Solution. I grabbed the 5 smaller circles(They are selected in the screenshot) and made a compound path(nothing interesting happens at this point, but this step is important). Then I grabbed the compound path along with the 5 big circles. Now making a compound path give the desired result.
Thanks, that worked!
Changed from Non-Zero Winding Fill Rule to Even-Odd Fill Rule in fully expanded Attributes panel for both shapes and then Compound path worked.
This worked for me cheers!
For everyone here - many thanks - a combination of what is suggested here worked for me. I had text on top of objects. I did a compound of the text outline, selected the shape behind as well and then used minus front in pathfinder - worked a charm. I'd been trying to get both the text outline and shape to compound to no avail.