Message Oracle RMAN-06552 - newname for datafile number was set to NEW, but file was not restored

ERRORnewname for datafile number was set to NEW, but file was not restored
CAUSEA SWITCH command was specified for a datafile, but the newname was set to NEW and the file was not restored. If newname is set to NEW, the file must be restored before issuing a SWITCH command.
ACTIONCorrect and resubmit the SWITCH command.