Skip to main content

MGCLatticeAsyncOperationTracking

Tracking table for asynchronous service operations queued to the D365 batch framework. Records the target service and operation, serialized request payload, lifecycle status (Queued, Processing, Succeeded, Failed), batch job reference, and the resulting document, posted document number, error code or error details. RequestId (the submission's idempotency key) is unique. CreatedBy is the submitting user (platform-stamped, unlike the caller-supplied UserContext); the processor re-checks that user's access to the target service operation before it runs the operation. ProcessingStartedDateTimeUtc and RecoveryCount drive the recovery of operations whose processing stopped without a result (see MGCLatticeAsyncOperationProcessorService::recoverStaleProcessing).

Fields​

NameTypeMandatoryDescription
TrackingIdMGCLatticeTrackingIdNoIdentifier returned when an asynchronous operation is queued. Use it to query the status of the operation.
RequestIdMGCLatticeRequestIdNoIdentifier the caller assigns to a service request. The services recognize a repeated request by this ID, so the operation is not run twice.
CorrelationIdMGCLatticeCorrelationIdNoIdentifier that traces a request across systems. It is copied to the log entries and responses of that request.
ServiceNameMGCLatticeServiceNameNoName of the custom integration service.
OperationNameMGCLatticeOperationNameNoName of the service operation.
LegalEntityIdDataAreaIdNo
UserContextUserIdNo
StatusMGCLatticeAsyncOperationStatusTypeNoAsynchronous operation status.
SubmittedDateTimeUtcTransDateTimeNo
CompletedDateTimeUtcTransDateTimeNo
DocumentIdMGCLatticeDocumentIdNoIdentifier of the resulting document.
PostedDocumentIdMGCLatticeDocumentIdNoThe number of the document the operation produced (invoice, packing slip, confirmation, journal or created order). A repeated request with the same request ID returns it.
ErrorCodeMGCLatticeServiceErrorCodeTypeNoMachine-readable service error code.
MessageMGCLatticeLogMessageShortNoShort log or status message.
ErrorDetailsMGCLatticeSamplePayloadNoSample request or response payload content.
RequestPayloadMGCLatticeSamplePayloadNoSample request or response payload content.
BatchJobIdMGCLatticeBatchJobIdNoReference to the D365 batch job record.
ProcessingStartedDateTimeUtcTransDateTimeNoThe time a processor claimed the operation and started to run it.
RecoveryCountMGCLatticeAttemptCountNoThe number of times the operation was queued again after its processing stopped before it started posting.