Maybe y have a collection set to render but not be viewable in viewport?
i saw it now it worked thanks