Companies Insurance Risks

I got a community order. I was under the impression my conviction was expired. I live in Scotland so the rules are different to England and Wales. Some solicitor told me once your order expires your conviction expires! Others say it’s unspent for 5 years.