Domain exists in OA but does not exist on APS side, therefore attempts to use (create branding based on the domain, switch DNS hostin) fail with exception
Could not persist APS entity "http://aps-standard.org/types/dns/record/1.0"
The domain does not exist on APS side:
# curl -k -E /usr/local/pem/APS/certificates/poa.pem "https://localhost:6308//aps/2/resources/?implementing(http://parallels.com/aps/types/pa/dns/zone/1.1),name=domainname.tld" 
One of the possible reasons it was not created is that on adding domain registered elsewhere exception
Domain name 'domainname.tld' is reserved by domain part of existing service user. occurred. Domain was created in OA due to the bug with id #POA-113163 ("On exception "Domain name 'domain.tld' is reserved by domain part of existing service user." domain is created in OA but not in APS").
Either delete the domain (as it cannot be properly recreated) or delete the service user(s) which use the domain, delete the domain and add it back (it will be added correctly to both OA and APS).