#13579 Fix synchronization error event record context
The LogSynchError method in Integration Synch. Job Errors table now passes the newly inserted error record to the OnAfterLogSynchError event instead of the ambient record, allowing subscribers to receive the correct error data. Two regression tests were added to verify the fix.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-11-05 by JesperSchulz · 2 files (+104 -2), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- LogSynchError passes the populated, inserted IntegrationSynchJobErrors record to OnAfterLogSynchError event
- Subscribers now receive the newly logged error instead of empty or unrelated caller record
- Two regression tests added covering empty and existing caller record contexts
- Tests verify event invocation, entry numbers, job/source/destination IDs, messages, timestamp, and exception details
- No new infrastructure or country-layer overrides required
- Behaviour changes for users or extensions.
AL objects touched
- Table 5339 “Integration Synch. Job Errors”, Base Application: modified
Context
- Fixes: #8041 [Bug]: table 5339 “Integration Synch. Job Errors” | Integration Event OnAfterLogSynchError(Rec); (closed)
- Work items: AB#657780
- Labels: ADO: Sync, Team: Integrations
- Systems: integration
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- View the Status of Synchronization Jobs — possibly related: Documents synchronization errors page displaying status of coupled record synchronization jobs. (model-linked)
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).