Alternatively you can get this error because of a wrong version number and not a wrong id number. As per this answer https://stackoverflow.com/a/73917597/24058693
use version number, and only the number, e.g. "1" -- Do not use "v1.0" or "Version 1 on Oct 1, 6:10 AM" or your deployment's Description
Id and Version number have to match otherwise you'll get an error on both.