Symptoms

Provider tries to create a subscription via API call. Request fails with the following output:

<name>error_message</name>
    <value>
        <string>Failed to encode 'record1-domain-tld._domainkey.example.onmicrosoft.com': error code 300.</string>
    </value>

As a result, subscription is not created. Record in the error message is CNAME record that was added via API manually.

Cause

Current version of OA (6.0.9) does not support underscore ( _ ) symbol in "host" part of CNAME records. When OA checks account resources, it parses domain resource records. Error occurs when OA checks aforementioned CNAME record. Under normal circumstances, UI blocks attempts to add records with underscore. However, due to software-related issue POA-100717, it is possible to add records with underscores. This issue will be fixed in future product versions.

Resolution

To successfully process activateSubscription call, please remove all CNAME records containing underscores from domain in question.

Internal content