﻿# A Graph batch response is not a completed enterprise connector operation

Microsoft Graph can return a successful batch envelope containing denied or throttled requests. Correlate child outcomes before updating an AI workflow ledger.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/enterprise-ai-graph-batch-envelope-child-outcomes/
Language: en

## Locate the operation beneath the envelope

An assistant fetches directory information and creates a task through a single Microsoft Graph batch. The connector marks the whole workflow complete after receiving HTTP 200. Some child operations may nevertheless have failed, and a completed write can coexist with an unresolved read. The workflow ledger must represent the child operations that carry business meaning, rather than only the transport envelope that delivered their responses.

## Correlate children by identifier

The [batching guide](https://learn.microsoft.com/en-us/graph/json-batching) says responses can arrive in a different order from requests and provides an id for correlation. It also distinguishes a parseable batch envelope from successful individual requests. Retain the expected identifier set and match each response to its original method and target. Missing, unexpected or repeated identifiers should remain a protocol anomaly requiring investigation; array position is not a reliable join key for the business ledger.

## Do not turn a dependency into a transaction

The guide describes dependsOn ordering and status 424 when a prerequisite fails. Ordering does not itself establish atomic rollback across the batch. Classify dependency-blocked work separately from an attempted operation that returned its own failure. If a prerequisite already changed external state, preserve that result even when a later operation fails. For a task-creation response, retain the returned task identity before moving to dependent work. That identity enables reconciliation with the actual destination rather than a guess based on a missing later result. A workflow compensation requires its own supported operation and authority; it must not be inferred from the enclosing batch request.

## Retry throttled children deliberately

The [throttling guidance](https://learn.microsoft.com/en-us/graph/throttling) describes child status 429 inside a successful HTTP 200 batch. Use the affected child response’s retry-after evidence. It also warns that batched throttled requests are not automatically retried as ordinary non-batched SDK requests may be. Preserve successful children and construct a new attempt only for eligible unresolved work. Replaying the original envelope can repeat a completed task creation while trying to recover an unrelated directory read.

## Check a mixed-outcome response fixture

Prepare a synthetic batch response containing a successful read, a completed write, a denied child, a throttled child and a blocked dependent child. Shuffle response order and omit an expected identifier in another fixture. Acceptance requires each ledger transition to match its identified outcome and already completed effects to stay completed through recovery. No Microsoft Graph request or tenant configuration change was performed here. The fixtures test connector interpretation, not the provider’s availability.

## Publish the bounded workflow outcome

[External-operation lifetime](/journal/guide-temporal-mcp-timeout-running-request/) explains why orchestration observations need separate effect evidence. [Explicit POST idempotency](/journal/provider-post-retry-idempotency-ledger/) explains the risk of repeating writes. A batch result should name completed, failed and unresolved child work and the permitted recovery step. It must not become an empty success merely because its envelope parsed correctly. Keep response details bounded so operational evidence does not unnecessarily copy confidential directory attributes.
