The Upgrade Paths

On-Prem environment needs to be v25 or higher to be able to do the cloud migration, please refer to Microsoft's documentation:

Migrate on-premises data to Business Central Online - Business Central | Microsoft