The opportunity for enhanced functional properties in semiconductor solid solutions has attracted vast scientific interest for a variety of novel applications. However, the functional versatility originating from the additional degrees of freedom due to atomic composition and ordering comes along with new challenges in characterization and modeling. Developing predictive synthesisstructure-property relationships is prerequisite for effective materials design strategies. Here, we present a first-principles based model for property prediction in such complex semiconductor materials. This framework incorporates non-equilibrium synthesis, dopants and defects, and the change of the electronic structure with composition and short range order. This approach is applied to ZnSnN 2 (ZTN) which has attracted recent interest for photovoltaics. The unintentional oxygen incorporation and its correlation with the cation stoichiometry leads to the formation of a solid solution with dual sublattice mixing. We uncover a non-monotonic doping behavior as function of This article is protected by copyright. All rights reserved. 2 the composition, and the degenerate doping of near-stoichiometric ZTN, which is detrimental for potential applications, can be lowered into the 10 17 cm -3 range in highly off-stoichiometric material, in quantitative agreement with experiments.