Not sure what the error is, there might be an issue with the changes you are making with the script.
Any errors in that log file?
Restoring a db only might show issues with the files that are not restored. So a record for the file might be in the db, while the file itself isn’t available. This is what is meant with the warning. Nothing to worry about in your case I supect (not knowing what script you ar erunning however).
Maybe the easiest solution is to perform the update/conversion with a microlfow action in stead of the direct SQL approach.