<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to branch_copy(checkout=True) liefert ungültigen Projekt-Handle (0) in CODESYS V3.5 SP22 Patch 3</title><link>https://forge.codesys.com/forge/talk/Engineering/thread/2b35ac7757/</link><description>Recent posts to branch_copy(checkout=True) liefert ungültigen Projekt-Handle (0) in CODESYS V3.5 SP22 Patch 3</description><language>en</language><lastBuildDate>Tue, 22 Sep 2026 12:37:04 -0000</lastBuildDate><atom:link href="https://forge.codesys.com/forge/talk/Engineering/thread/2b35ac7757/feed.rss" rel="self" type="application/rss+xml"></atom:link><item><title>branch_copy(checkout=True) liefert ungültigen Projekt-Handle (0) in CODESYS V3.5 SP22 Patch 3</title><link>https://forge.codesys.com/forge/talk/Engineering/thread/2b35ac7757/?limit=25#aeca</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boiwithproblems</dc:creator><pubDate>Tue, 22 Sep 2026 12:37:04 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com6299626d45a4a35b05ebb18e0469dc554e1b9537</guid></item></channel></rss>