The trial court erred in denying a motion to seal portions of a juvenile record on the basis that the appellant did not qualify as satisfactorily completing his probation under section 786, subdivision (c)(1). At the time of the adult conviction of appellant, he was on probation as a result of the first two juvenile petitions, but he was not yet on probation for the third. This means that appellant met the first part of the section 786, subdivision (c)(1). The court should have, therefore, addressed the second part of the test: determining whether appellant had substantially complied with the reasonable orders of his probation. The court did not reach this issue, so the Court of Appeal remanded the matter.