[Bug]: table 5339 "Integration Synch. Job Errors" | Integration Event OnAfterLogSynchError(Rec);
Open
@Groenbech96 is already working on this.
Since Jun 4, 2026.
- #8474 by @copilot-swe-agent — closed without merging
Approved
Team: Integrations
- Dominant language
- AL
- Stars
- 683
- Forks
- 459
- Avg merge
- 3d 26m
- Merged PRs (30d)
- 633
Description
Describe the issue
Event OnAfterLogSynchError raises with a wrong variable.
procedure LogSynchError(IntegrationSynchJobId: Guid; SourceRecordId: RecordID; DestinationRecordId: RecordID; ErrorMessage: Text)
var
IntegrationSynchJobErrors: Record "Integration Synch. Job Errors";
StackTraceOutStream: OutStream;
begin
IntegrationSynchJobErrors.Init();
IntegrationSynchJobErrors."Integration Synch. Job ID" := IntegrationSynchJobId;
IntegrationSynchJobErrors."Source Record ID" := SourceRecordId;
IntegrationSynchJobErrors."Destination Record ID" := DestinationRecordId;
IntegrationSynchJobErrors."Date/Time" := CurrentDateTime;
IntegrationSynchJobErrors.Message := CopyStr(ErrorMessage, 1, MaxStrLen(IntegrationSynchJobErrors.Message));
IntegrationSynchJobErrors."Error Message" := CopyStr(ErrorMessage, 1, MaxStrLen(IntegrationSynchJobErrors."Error Message"));
IntegrationSynchJobErrors."Exception Detail".CreateOutStream(StackTraceOutStream);
StackTraceOutStream.Write(GetLastErrorCallstack);
IntegrationSynchJobErrors.Insert(true);
OnAfterLogSynchError(Rec);
end;
Expected behavior
Event OnAfterLogSynchError should raise with IntegrationSynchJobErrors instead of Rec
Steps to reproduce
see code
Additional context
No response
I will provide a fix for a bug
- I will provide a fix for a bug
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.