correct, if you create a repository do run a replication right after before you assign to repository to devices.
the error message very probably is related to your repo being out of date
Yes, you need to update your repository (Full ePO Product Replication) after you created it and before assigning it to your system groups. also for safe side do
Thannks & Regards,