Skip to content

Avoid starting a write transaction under ShowCanCreateAgent - #10253

Open
Joshua (mynjj) wants to merge 1 commit into
mainfrom
bugs/pa-writetransaction-showcancreateagent-2
Open

Avoid starting a write transaction under ShowCanCreateAgent#10253
Joshua (mynjj) wants to merge 1 commit into
mainfrom
bugs/pa-writetransaction-showcancreateagent-2

Conversation

@mynjj

@mynjj Joshua (mynjj) commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

See bug 646707 for the platform side, explaining why we are calling ShowCanCreateAgent after the Commit when we have 3rd party code like:

procedure ChangeUserName()  
var  
    User: Record User;  
    ShowUserQst: Label 'Show User?';  
begin  
    User.FindFirst();  
    User."Full Name" := 'New Full Name';  
    User.Modify();  
    Commit();  
    if Confirm(ShowUserQst, false) then  
        Page.RunModal(Page::"User Card", User);  
end;  

In the meantime, we ensure that no write transactions are started when computing ShowCanCreateAgent.

Fixes AB#641849

@mynjj
Joshua (mynjj) requested a review from a team August 14, 2026 11:47
@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 Finance GitHub request for Finance area labels Aug 14, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Aug 14, 2026
Comment thread src/Apps/W1/PayablesAgent/app/Setup/PayablesAgentSetup.Codeunit.al
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 Finance GitHub request for Finance area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants