Laboratory trials were conducted to determine whether the spotted wing drosophila, Drosophila suzukii (Matsumura) (Diptera: Drosophilidae), puparium can provide an effective physical barrier to protect immature stages of the pupal parasitoid Pachycrepoideus vindemiae (Rondani) (Hymenoptera: Pteromalidae) from spinosad treatments. Spinosad insecticides are currently an important suppression strategy for D. suzukii in organically managed fruit orchards although they are well known to cause mortality in hymenopteran parasitoids. High adult P. vindemiae female mortality (83%) occurred within 24 h of exposure to D. suzukii pupae treated with 10 mg a.i. l−1 spinosad and female parasitoids did not avoid the pupae treated with similar low levels of spinosad in choice tests that included untreated pupae. Pachycrepoideus vindemiae develops as an idiobiont ectoparasitoid on host fly pupa within the sclerotized host puparium. Significant P. vindemiae survival and emergence was recorded when parasitized D. suzukii puparia were exposed to field treatment levels of spinosad; however, the parasitoid survival was dependent on the time of the spinosad treatment of the host post‐parasitization. Significant parasitoid survival occurred when the host puparia were treated at 2 weeks when the parasitoid was in the pupal stage but did not occur when the host puparia were treated at 1 week post‐parasitization, when the parasitoids were still in a larval stage. The parasitoid adults consumed or otherwise came in contact with residual degrading spinosad when they exited the treated host, and consequently high and low adult parasitoid mortality occurred when the adults emerged from puparia treated at 2 and 1 week(s), respectively. Our study indicates that generally the integration of P. vindemiae parasitism into a sustainable D. suzukii management program is not compatible with spinosad treatments, although P. vindemiae in the pupal stage inside sclerotized host puparia appear to be minimally impacted by spinosad treatments, provided that the spinosad degrades before parasitoid emergence.