Purview Audit / Unified Audit Log backend appears unhealthy for the tenant.

aolab 0 Reputation points
2026-06-09T19:23:02.58+00:00

Purview Audit Search is not functioning for the tenant even though Unified Audit Log ingestion is enabled and the tenant appears fully provisioned.
When I integrated it to third party it shows this error: Microsoft.Office.Compliance.Audit.DataServiceException: Tenant <Tenant Number> does not exist

Info:

  • Microsoft 365 E3 assigned (trial)
  • Exchange Online provisioned (trial)
  • Purview account status: Active
  • Purview account type: Enterprise
  • Azure resource status: Active

Account used to integrate to third party using authorization for CASB is also assigned multiple administrative roles including global administrator.

Checked:

  1. OpenID discovery endpoint successfully resolves for the tenant. The tenant is recognized by Microsoft identity services
  2. Mailbox retrieval succeeds. Ex: Get-EXOMailbox -ResultSize 1 -> Returned mailbox information successfully
  3. Get-OrganizationConfig | fl Name,AuditDisabled -> AuditDisabled : False
  4. Get-AdminAuditLogConfig | fl * -> AdminAuditLogEnabled : True UnifiedAuditLogIngestionEnabled : True
  5. In Microsoft Purview:

Audit → Search

Error:

"Sorry, we're having trouble figuring out if activity is being recorded. Try refreshing the page. Failed to load data. Please try again later."

  1. Command: Search-UnifiedAuditLog -StartDate (Get-Date).AddDays(-1) -EndDate (Get-Date)
    Result:

WARNING: Failed to process request via Sync Search mode, returning HttpRequestException. Exception: BadRequest Reason: Bad Request
7. When integrating with third party
Authentication succeeds, Admin consent succeeds, Enterprise Application is created successfully

However onboarding fails with:

Microsoft.Office.Compliance.Audit.DataServiceException: Tenant <Tenant Number> does not exist

What might be the problem that made the third party app fail to integrate with the reason that tenant I am using does not exist even though I checked the tenant number thrown as response match my tenant number?

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Oldest
  1. AI answer

    2026-06-09T19:23:19.45+00:00

    The behavior matches a backend/unified audit pipeline issue rather than a tenant or permissions misconfiguration.

    From the details provided:

    • Unified audit logging is enabled (UnifiedAuditLogIngestionEnabled : True).
    • Exchange Online and the tenant are provisioned and working (mailbox retrieval works, AuditDisabled : False, AdminAuditLogEnabled : True).
    • The account has sufficient roles (global admin and other admin roles).
    • Purview Audit search UI fails with a generic “Failed to load data” message.
    • Search-UnifiedAuditLog returns a BadRequest error.
    • The third‑party CASB integration receives Microsoft.Office.Compliance.Audit.DataServiceException: Tenant <tenantID> does not exist.

    According to the Office 365 Management Activity API troubleshooting guidance, this specific Tenant <tenantID> does not exist error is the typical symptom when unified auditing is not enabled for the organization. The documented resolution is to ensure unified audit logging is turned on for the tenant and then wait for the configuration to propagate.

    In this scenario, unified auditing is already reported as enabled, but both:

    • Native Purview Audit search, and
    • The Management Activity API consumer (third‑party CASB)

    are failing in ways that are consistent with a backend audit service problem for the tenant, not with client configuration or permissions.

    Given that:

    1. Unified audit logging is confirmed as enabled.
    2. The tenant and Exchange Online are provisioned and functioning.
    3. The same tenant‑level error appears from both PowerShell (Search-UnifiedAuditLog) and the third‑party API integration.

    The remaining supported action is to treat this as a service‑side issue and open a ticket with Microsoft Support so the audit/unified logging configuration for the tenant can be checked and corrected. The Management Activity API documentation explicitly directs customers encountering tenant‑level or throttling issues to contact Microsoft Support for tenant‑specific remediation.

    Until Microsoft Support corrects the backend state for the unified audit log for this tenant, Purview Audit search and any third‑party solution that relies on the Office 365 Management Activity API will continue to fail with these errors.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.