The presence of dust in spiral galaxies affects the ability of photometric decompositions to retrieve the parameters of their main structural components. For galaxies in an edge-on orientation, the optical depth integrated over the line of sight is significantly higher than for those with intermediate or face-on inclinations, so it is only natural to expect that for edge-on galaxies, dust attenuation should severely influence measured structural parameters. In this paper, we use radiative transfer simulations to generate a set of synthetic images of edge-on galaxies that are then analysed via decomposition. Our results demonstrate that for edge-on galaxies, the observed systematic errors of the fit parameters are significantly higher than for moderately inclined galaxies. Even for models with a relatively low dust content, all structural parameters suffer offsets that are far from negligible. In our search for ways to reduce the impact of dust on retrieved structural parameters, we test several approaches, including various masking methods and an analytical model that incorporates dust absorption. We show that using such techniques greatly improves the reliability of decompositions for edge-on galaxies.