Search Engine: Elastic

Article ID: 130051, created on Dec 24, 2016, last review on Dec 24, 2016

  • Applies to:
  • Operations Automation 6.0


Office 365 APS1.2 subscription upgrade to APS 2.0 fails with the error:

Subscription #111001: Unable to find domain in account #1051234


There are too many hosted domains (over 1000) on the account. The script retrieves domains with the following query:


but default limit for REST queries to APS bus is 1000.


  1. Edit the script
  2. Find the line #309 (inside the function reregisterDomains):

    path = "/aps/2/resources?implementing(%s)" % dnsZoneType
  3. Modify it as below:

    path = "/aps/2/resources?implementing(%s),limit(0,3000)" % dnsZoneType

    (set the limit value higher than number of domains on the account)

  4. Save the file and re-run the script.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF