"Substantial compliance" means meeting most of the requirements or rules, even if there are minor deviations or discrepancies. It is a way to acknowledge that someone or something has made a serious effort to follow the regulations, even if they haven't fully met them.
Full definition