Issue
Error: An error has occurred. There may be a problem with your permissions or the document package setup. (MetadataInvalid)
Resolution
This issue could be caused because you are querying the field "Billing Address". The "Billing Address" field is not just a single field, it is composed by several fields: Street, State, etc... hence in order to use it in the SOQL query you need to query them separately, "Billing Street", "Billing State", etc...