Hi.
After upgrading to Dynamicweb Version 9.9.3 (where you start controlling master id on grids), we've experienced issues with the update script.
You are missing a script that creates the field GridRowMasterRowId in the GridRow table.
After we added the column manually, the error disappeared and we were able to use the system again.