Oracle Error RMAN-20230: datafile copy not found in the repository

Oracle Error Message

RMAN-20230: datafile copy not found in the repository

Reason for the Error

The specified datafile was not in the recovery catalog or target database control file or it was marked deleted.

Solution

check the datafile copy name or key