"Error 118 The following system error occurred: No mapping between account names and security IDs was done."
This error may look a little bit strange, but once you know what it’s complaining about it’s an easy fix.
Most likely you have a role defined in database that contains users or user groups not available in deployment environment. For example you have user group Domain1\UserGroup1 specified in role, but you are trying to deploy this database in environment where Domain1 is not available. To fix this error simply replace users or user groups with values that are correct in deployment domain.
And…we’re done 🙂