I also received this message. The problem was that the test data in the db was incorrect.
I didn't have validation on when I was testing and hence i had null values for IDs for fields that do not allow nulls. Once I fixed the data, the update-database command ran successfully.