Grid-tied inverters, used in renewable energy sources, are exposed to distortions emitted by various sources including the reference signal, external power grid, and DC-link along with harmonics created by the pulse width modulation unit. However, the effect of these sources on grid-tied inverter output, especially near the resonant frequency of the inverter's filter, is unknown. In this study, a comprehensive harmonic model of the grid-tied inverter is presented by considering all three types of external sources. The proposed model can be utilised for low and high-frequency harmonic emission of grid-connected inverters. A new analytical expression is introduced as an indicator of the maximum possible individual grid current harmonic in the case of harmonic injection of multiple external sources. The impact of series damping resistor on harmonic rejection ability of the inverter is analysed at the range of frequencies around resonance. The simulation and experimental results fulfil the proposed harmonic model of the inverter.