No CustomField named Asset.LocationId found

When profiles are included in user stories, you may come across the error below in the deployment:

"ERROR [Profile ] In field: field - no CustomField named Asset.LocationId found."

Asset.LocationId is a standard Salesforce field that is not available in the Asset object (take a look at this Salesforce article for more information), but the field permission has been added to the profiles and is retrieved in the .xml files. This is causing an error when deploying to the destination organization.

In order to avoid this error, you need to remove the field permission from the profiles in the branches. This has to be done in all the branches in the repository, including the master branch.

How did we do?