Could not write row in table error during compile