<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts by boiwithproblems</title><link href="https://forge.codesys.com/u/boiwithproblems/" rel="alternate"></link><link href="https://forge.codesys.com/u/boiwithproblems/profile/feed.atom" rel="self"></link><id>https://forge.codesys.com/u/boiwithproblems/</id><updated>2026-09-22T12:37:04Z</updated><subtitle>Recent posts by boiwithproblems</subtitle><entry><title>branch_copy(checkout=True) liefert ungültigen Projekt-Handle (0) in CODESYS V3.5 SP22 Patch 3</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2b35ac7757/?limit=25#aeca" rel="alternate"></link><published>2026-09-22T12:37:04Z</published><updated>2026-09-22T12:37:04Z</updated><author><name>boiwithproblems</name><uri>https://forge.codesys.com/u/boiwithproblems/</uri></author><id>https://forge.codesys.com6299626d45a4a35b05ebb18e0469dc554e1b9537</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Since upgrading from V3.5 SP21 P3 to SP22 P3, this previously working scripted call fails:&lt;/p&gt;
&lt;p&gt;project, current_branch = project.git.branch_copy(current_branch,new_branch_name,checkout=True)&lt;/p&gt;
&lt;p&gt;Error:&lt;/p&gt;
&lt;p&gt;_3S.CoDeSys.Core.Objects.InvalidProjectHandleException&lt;br/&gt;
Standard Error: The project handle 0 is invalid&lt;/p&gt;
&lt;p&gt;Workaround:&lt;/p&gt;
&lt;p&gt;When you do branch copy with checkout=False and then checkout the branch in a seperate line everything works. The issue seems to be that Codesys doesn't give back a proper handle when you do branch_copy with checkout=True. &lt;/p&gt;
&lt;p&gt;This is mainly so that issue gets noted and resolved in a further Patch and that people with the same issue might have an easier time debugging their scripts.&lt;/p&gt;
&lt;p&gt;With kind regards&lt;/p&gt;
&lt;p&gt;Matthias Rudigier&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>