Problem Restoring backup

Problem Restoring backup

While trying to restore a backup (and after changing the name of the application to "AppName backup" on line 6 I get another error about [Sub_View] column 'FORM_ID' cannot be null .  No idea where this error occurs in the script or how to find it.