# \#csharp

**URL:** https://forum.uipath.com/tag/csharp/1565.md

[Latest](https://forum.uipath.com/latest.md) · [Categories](https://forum.uipath.com/categories.md) · [Tags](https://forum.uipath.com/tags.md)

---

## [Tip: How to use Late Binding](https://forum.uipath.com/t/tip-how-to-use-late-binding/283691)

<div class="topic-metadata">

**Author:** [@StefanSchnell](https://forum.uipath.com/u/StefanSchnell)\
**Replies:** 1\
**Last updated:** [September 7, 2021, 4:25am UTC](https://forum.uipath.com/t/tip-how-to-use-late-binding/283691 "2021-09-07T04:25:12Z")

</div>

Late Binding is a mechanism to invoke methods from objects at the runtime of a program. We know this calling method mainly from the Component Object Method (COM) environment. Based on my approach to using the Win32 API I…

---

## [Bug(?): Orphaned brace breaks workflow parsing (C#)](https://forum.uipath.com/t/bug-orphaned-brace-breaks-workflow-parsing-c/2746656)

<div class="topic-metadata">

**Author:** [@andrzej.kniola](https://forum.uipath.com/u/andrzej.kniola)\
**Replies:** 1\
**Last updated:** [March 18, 2025, 2:23pm UTC](https://forum.uipath.com/t/bug-orphaned-brace-breaks-workflow-parsing-c/2746656 "2025-03-18T14:23:37Z")

</div>

Studio version: 24.10.9 (C# project) If there is an orphaned opening brace { in any activity, the whole workflow up to that point breaks with CS0106 errors. Ironically, the activity with the orphaned brace does not hav…

---

## [Invalid VB Working Correctly in Production](https://forum.uipath.com/t/invalid-vb-working-correctly-in-production/745614)

<div class="topic-metadata">

**Author:** [@matt.theisen](https://forum.uipath.com/u/matt.theisen)\
**Replies:** 3\
**Last updated:** [June 27, 2024, 12:49am UTC](https://forum.uipath.com/t/invalid-vb-working-correctly-in-production/745614 "2024-06-27T00:49:00Z")

</div>

I have been making a large update to a large 2021 project. I updated all of the package versions and did a big overhaul which I was prepared for. However, the method for adding new pairs into a dictionary which they us…

---

## [Coded workflow unable to use C# generics](https://forum.uipath.com/t/coded-workflow-unable-to-use-c-generics/728853)

<div class="topic-metadata">

**Author:** [@Henrik\_Sondergaard](https://forum.uipath.com/u/Henrik_Sondergaard)\
**Replies:** 5\
**Last updated:** [April 2, 2024, 2:03am UTC](https://forum.uipath.com/t/coded-workflow-unable-to-use-c-generics/728853 "2024-04-02T02:03:32Z")

</div>

I’m working on making a Coded\_Workflow for my library, that should turn a QueueItem into a C# model. For this I want to use basic generics in C#. public (T model, Exception ex) Execute\<T\>(QueueItem queueItem, T model) w…

---

## [C# Invoke Code issue for segregating Excel Data](https://forum.uipath.com/t/c-invoke-code-issue-for-segregating-excel-data/719103)

<div class="topic-metadata">

**Author:** [@Ana\_Patricia](https://forum.uipath.com/u/Ana_Patricia)\
**Replies:** 2\
**Last updated:** [February 13, 2024, 6:51am UTC](https://forum.uipath.com/t/c-invoke-code-issue-for-segregating-excel-data/719103 "2024-02-13T06:51:07Z")

</div>

I have an excel which has data in below format … ID column occurs three times & we need to collate all id’s into one & their corresponding adjacent component column values … ID Comp1 ID Comp2 ID Comp3 12 1232 …

---

## [Cannot get returned the value of variables in the immediate panel: Expression Activity type 'CSharpValue\`1' requires compilation in order to run. Please ensure that the workflow has been compiled](https://forum.uipath.com/t/cannot-get-returned-the-value-of-variables-in-the-immediate-panel-expression-activity-type-csharpvalue-1-requires-compilation-in-order-to-run-please-ensure-that-the-workflow-has-been-compiled/707504)

<div class="topic-metadata">

**Author:** [@Nestor\_Gabriel\_Lucian1](https://forum.uipath.com/u/Nestor_Gabriel_Lucian1)\
**Replies:** 7\
**Last updated:** [December 20, 2023, 5:46am UTC](https://forum.uipath.com/t/cannot-get-returned-the-value-of-variables-in-the-immediate-panel-expression-activity-type-csharpvalue-1-requires-compilation-in-order-to-run-please-ensure-that-the-workflow-has-been-compiled/707504 "2023-12-20T05:46:56Z")

</div>

I started a project in REFramework using C# in legacy mode, then converted to modern since I couldn’t create a modern project directly in C#. I had no problems so far, apart from the issue I encountered when debugging m…

---

## [Invoke code activity throw exception in second iteration](https://forum.uipath.com/t/invoke-code-activity-throw-exception-in-second-iteration/705234)

<div class="topic-metadata">

**Author:** [@Anil\_Potekar](https://forum.uipath.com/u/Anil_Potekar)\
**Replies:** 9\
**Last updated:** [December 11, 2023, 11:17am UTC](https://forum.uipath.com/t/invoke-code-activity-throw-exception-in-second-iteration/705234 "2023-12-11T11:17:06Z")

</div>

I’m using invoke code activity inside for each item in datatable. It throw exception when second time or in second iteration first time it’s generate output.

---

## [Using LINQ with C# language framework](https://forum.uipath.com/t/using-linq-with-c-language-framework/701798)

<div class="topic-metadata">

**Author:** [@xdasda\_asdasd](https://forum.uipath.com/u/xdasda_asdasd)\
**Replies:** 2\
**Last updated:** [November 23, 2023, 8:59am UTC](https://forum.uipath.com/t/using-linq-with-c-language-framework/701798 "2023-11-23T08:59:13Z")

</div>

Hello just a quick question. I keep getting this the following error message I am attempting to use LINQ to query the last row of a DataTable with the name 通勤経路 and then attempt to retrieve the value of the 到着 column a…

---

## [C# invoke code](https://forum.uipath.com/t/c-invoke-code/626323)

<div class="topic-metadata">

**Author:** [@Jan\_RPA](https://forum.uipath.com/u/Jan_RPA)\
**Replies:** 1\
**Last updated:** [October 6, 2023, 12:10pm UTC](https://forum.uipath.com/t/c-invoke-code/626323 "2023-10-06T12:10:59Z")

</div>

Hi all! I need to use a C# code in my project but I can not get it working. I got the following error: Framework/Dispatcher.xaml: No compiled code to run error CS1001: Identifier expected At line 1 error CS1001: Ide…

---

## [Unable to execute c# code in uipath invoke activity](https://forum.uipath.com/t/unable-to-execute-c-code-in-uipath-invoke-activity/608759)

<div class="topic-metadata">

**Author:** [@rds0511](https://forum.uipath.com/u/rds0511)\
**Replies:** 9\
**Last updated:** [September 26, 2023, 7:43pm UTC](https://forum.uipath.com/t/unable-to-execute-c-code-in-uipath-invoke-activity/608759 "2023-09-26T19:43:10Z")

</div>

Hi Team, I am trying to invoke c sharp code in invoke activity. System.Windows.Forms.MessageBox.Show(“Hello from UiPath!”); But I am getting below error. Invoke Code: No compiled code to run error CS0234: The type …

---

## [How to access c# class without Libraryname.classname](https://forum.uipath.com/t/how-to-access-c-class-without-libraryname-classname/581112)

<div class="topic-metadata">

**Author:** [@Ranya](https://forum.uipath.com/u/Ranya)\
**Replies:** 2\
**Last updated:** [September 10, 2023, 7:35am UTC](https://forum.uipath.com/t/how-to-access-c-class-without-libraryname-classname/581112 "2023-09-10T07:35:05Z")

</div>

Hi. I am saving some variables inside c# static class. I want to access these variables without writing library name. For ex: I want to use CustomClass.var1 instead of CustomLibrary.CustomClass.var1

---

## [I am unable to export custom activity to UiPath](https://forum.uipath.com/t/i-am-unable-to-export-custom-activity-to-uipath/548175)

<div class="topic-metadata">

**Author:** [@rameespk23](https://forum.uipath.com/u/rameespk23)\
**Replies:** 12\
**Last updated:** [May 26, 2023, 5:05am UTC](https://forum.uipath.com/t/i-am-unable-to-export-custom-activity-to-uipath/548175 "2023-05-26T05:05:00Z")

</div>

Hi Everyone , I am finding difficulty in implementing custom activity to UiPath 2022.4.4.I have used VS community version 2022 and UiPath activity creator V4 for building custom activity. I am stuck with 3 challenges de…

---

## [Invoke Power Shell returns wrong encoding value](https://forum.uipath.com/t/invoke-power-shell-returns-wrong-encoding-value/543110)

<div class="topic-metadata">

**Author:** [@PythonDev85](https://forum.uipath.com/u/PythonDev85)\
**Replies:** 10\
**Last updated:** [May 15, 2023, 9:42am UTC](https://forum.uipath.com/t/invoke-power-shell-returns-wrong-encoding-value/543110 "2023-05-15T09:42:19Z")

</div>

Hi, I’m using an Invoke Power Shell activity to run a Python script. This script outputs multiple values that I have to use in a For Each activity later on. Everything works fine, except one detail : I get the wrong en…

---

## [Tip: How to use Lambda Expressions as Sub/Function Replacements in Invoke Code Activity](https://forum.uipath.com/t/tip-how-to-use-lambda-expressions-as-sub-function-replacements-in-invoke-code-activity/350387)

<div class="topic-metadata">

**Author:** [@StefanSchnell](https://forum.uipath.com/u/StefanSchnell)\
**Replies:** 14\
**Last updated:** [April 3, 2023, 10:59am UTC](https://forum.uipath.com/t/tip-how-to-use-lambda-expressions-as-sub-function-replacements-in-invoke-code-activity/350387 "2023-04-03T10:59:39Z")

</div>

Functions can generally be used to structure code sequences. However, due to the technical necessity of the Invoke Code Activity, it is not possible to apply this approach here. In this post I show how lambda expressions …

---

## [Error invoking activity from custom library](https://forum.uipath.com/t/error-invoking-activity-from-custom-library/314455)

<div class="topic-metadata">

**Author:** [@Adrian\_Star](https://forum.uipath.com/u/Adrian_Star)\
**Replies:** 2\
**Last updated:** [December 6, 2022, 1:35pm UTC](https://forum.uipath.com/t/error-invoking-activity-from-custom-library/314455 "2022-12-06T13:35:46Z")

</div>

Hi, I have problem with invoking my custom activity from my API JIRA library in process. Activity with C# code run and works fine in library workflow. Code in library: When I add library to new Robotic Process and…

---

## [Does Re-Framework template in C# exist?](https://forum.uipath.com/t/does-re-framework-template-in-c-exist/495881)

<div class="topic-metadata">

**Author:** [@wilbardmtei](https://forum.uipath.com/u/wilbardmtei)\
**Replies:** 6\
**Last updated:** [December 4, 2022, 4:55am UTC](https://forum.uipath.com/t/does-re-framework-template-in-c-exist/495881 "2022-12-04T04:55:44Z")

</div>

Hi guys, I have notice the current Re-Framework template is based in VB, is there a C# version out there?

---

## [Creat Xml node in UiPath Studio using LoadXml function](https://forum.uipath.com/t/creat-xml-node-in-uipath-studio-using-loadxml-function/475395)

<div class="topic-metadata">

**Author:** [@noob\_dev](https://forum.uipath.com/u/noob_dev)\
**Replies:** 3\
**Last updated:** [September 26, 2022, 2:05am UTC](https://forum.uipath.com/t/creat-xml-node-in-uipath-studio-using-loadxml-function/475395 "2022-09-26T02:05:12Z")

</div>

hi guys, I’m trying creat a xNa in type System.Xml.XmlNode from a XElement (type System.Xml.Linq.XElement. I’m following this tutorial but in invoke code the LoadXml function doesn’t work. This is my code: Can I…

---

## [The Added namespace don't work](https://forum.uipath.com/t/the-added-namespace-dont-work/475256)

<div class="topic-metadata">

**Author:** [@noob\_dev](https://forum.uipath.com/u/noob_dev)\
**Replies:** 21\
**Last updated:** [September 23, 2022, 7:32am UTC](https://forum.uipath.com/t/the-added-namespace-dont-work/475256 "2022-09-23T07:32:14Z")

</div>

Hi guys, I would like to use some function in “System.Security.Cryptography.Xml” .Net package, especially use System.Security.Cryptography.Xml.signedXml variable type. I have install System.Security.Cryptography.Xml in …

---

## [How to use Late Binding with C# Invoke Code Activity](https://forum.uipath.com/t/how-to-use-late-binding-with-c-invoke-code-activity/352003)

<div class="topic-metadata">

**Author:** [@StefanSchnell](https://forum.uipath.com/u/StefanSchnell)\
**Replies:** 0\
**Last updated:** [October 11, 2021, 6:32am UTC](https://forum.uipath.com/t/how-to-use-late-binding-with-c-invoke-code-activity/352003 "2021-10-11T06:32:57Z")

</div>

A longer time ago I present the possibility how to use late binding via a dotNET code provider, which compiles and executes the code in memory. In this tutorial I show now a way how to use late binding with the Invoke Co…

---

## [How to use Late Binding with C# Invoke Code Activity with dotNET 5 and 6](https://forum.uipath.com/t/how-to-use-late-binding-with-c-invoke-code-activity-with-dotnet-5-and-6/353710)

<div class="topic-metadata">

**Author:** [@StefanSchnell](https://forum.uipath.com/u/StefanSchnell)\
**Replies:** 0\
**Last updated:** [October 18, 2021, 7:25am UTC](https://forum.uipath.com/t/how-to-use-late-binding-with-c-invoke-code-activity-with-dotnet-5-and-6/353710 "2021-10-18T07:25:14Z")

</div>

A few days ago I presented the possibility to use late binding in the Invoke Code Activity. With the current version of UiPath we have the possibility to choose between different versions of dotNET. The approach above is…

---

## [Need to adjust powerpoint Header with correct position](https://forum.uipath.com/t/need-to-adjust-powerpoint-header-with-correct-position/469800)

<div class="topic-metadata">

**Author:** [@Mathkar\_kunal](https://forum.uipath.com/u/Mathkar_kunal)\
**Replies:** 2\
**Last updated:** [September 2, 2022, 6:02am UTC](https://forum.uipath.com/t/need-to-adjust-powerpoint-header-with-correct-position/469800 "2022-09-02T06:02:03Z")

</div>

Hello, I am working on automation where i need to take screenshot from scpecific webpage i need to scroll down and again i need to take screenshot and merge both and paste it into powerpoint slide with heading. i able …

---

## [Having Trouble Installing My Own Activity](https://forum.uipath.com/t/having-trouble-installing-my-own-activity/462923)

<div class="topic-metadata">

**Author:** [@Michael\_Halpin](https://forum.uipath.com/u/Michael_Halpin)\
**Replies:** 1\
**Last updated:** [August 6, 2022, 8:01pm UTC](https://forum.uipath.com/t/having-trouble-installing-my-own-activity/462923 "2022-08-06T20:01:27Z")

</div>

I created a new activity using the UiPath plugin for Visual Studio 2019. I then followed the instructions to upgrade it to .NET 6. I manage to resolve all the errors and get the project to compile and package to a Nuge…

---

## [UiPath.Shared.Activities.dll is not compiling in C# custom activity project on .NET 6](https://forum.uipath.com/t/uipath-shared-activities-dll-is-not-compiling-in-c-custom-activity-project-on-net-6/460835)

<div class="topic-metadata">

**Author:** [@Michael\_Halpin](https://forum.uipath.com/u/Michael_Halpin)\
**Replies:** 4\
**Last updated:** [August 5, 2022, 9:32pm UTC](https://forum.uipath.com/t/uipath-shared-activities-dll-is-not-compiling-in-c-custom-activity-project-on-net-6/460835 "2022-08-05T21:32:00Z")

</div>

I have been working on creating an example project for custom activities in .NET 6. I have whittled all errors down to just one that I am having trouble getting past: My Project looks like this: I think the probl…

---

## [Code to convert xml into a table](https://forum.uipath.com/t/code-to-convert-xml-into-a-table/459333)

<div class="topic-metadata">

**Author:** [@MasterOfLogic](https://forum.uipath.com/u/MasterOfLogic)\
**Replies:** 7\
**Last updated:** [July 25, 2022, 2:48pm UTC](https://forum.uipath.com/t/code-to-convert-xml-into-a-table/459333 "2022-07-25T14:48:59Z")

</div>

Hello just opened this xml as a text file and here is what i see. Please I would love to change it to a table in the most effective way sample.xml (148 Bytes)

---

## [How to solved error: Convert from string to char in Split text with C#](https://forum.uipath.com/t/how-to-solved-error-convert-from-string-to-char-in-split-text-with-c/449752)

<div class="topic-metadata">

**Author:** [@Rpa\_compara](https://forum.uipath.com/u/Rpa_compara)\
**Replies:** 15\
**Last updated:** [June 21, 2022, 3:55pm UTC](https://forum.uipath.com/t/how-to-solved-error-convert-from-string-to-char-in-split-text-with-c/449752 "2022-06-21T15:55:24Z")

</div>

Hello all, How to setup a correct split parameter in C#? Look the image & attachment bellow

---

## [How can I use a Window Handle with an Application/Browser Card?](https://forum.uipath.com/t/how-can-i-use-a-window-handle-with-an-application-browser-card/443068)

<div class="topic-metadata">

**Author:** [@grosner](https://forum.uipath.com/u/grosner)\
**Replies:** 2\
**Last updated:** [May 27, 2022, 1:03am UTC](https://forum.uipath.com/t/how-can-i-use-a-window-handle-with-an-application-browser-card/443068 "2022-05-27T01:03:52Z")

</div>

I have several windows with duplicate title bar text. Therefore, my Applicaton Card’s selector targets the most recently active window (most of the time). I understand how to pass a window handle id number into the work…

---

## [Is there an Application/Browser Card Window Handle Property?](https://forum.uipath.com/t/is-there-an-application-browser-card-window-handle-property/443045)

<div class="topic-metadata">

**Author:** [@grosner](https://forum.uipath.com/u/grosner)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 7:32pm UTC](https://forum.uipath.com/t/is-there-an-application-browser-card-window-handle-property/443045 "2022-05-26T19:32:48Z")

</div>

Click this link to see the solution.

---

## [Remove unused variables not working as intended on C# projects](https://forum.uipath.com/t/remove-unused-variables-not-working-as-intended-on-c-projects/420221)

<div class="topic-metadata">

**Author:** [@lucas.stern](https://forum.uipath.com/u/lucas.stern)\
**Replies:** 3\
**Last updated:** [May 5, 2022, 5:52pm UTC](https://forum.uipath.com/t/remove-unused-variables-not-working-as-intended-on-c-projects/420221 "2022-05-05T17:52:47Z")

</div>

The option to removed unused variables is showing variables that are being used. I got this issue currently only on c# projects on 22.4.

---

## [Tutorials on SAP, C# and more](https://forum.uipath.com/t/tutorials-on-sap-c-and-more/261926)

<div class="topic-metadata">

**Author:** [@StefanSchnell](https://forum.uipath.com/u/StefanSchnell)\
**Replies:** 2\
**Last updated:** [October 25, 2020, 5:20pm UTC](https://forum.uipath.com/t/tutorials-on-sap-c-and-more/261926 "2020-10-25T17:20:47Z")

</div>

SAP Contributions to automate SAP GUI, BAPI and ABAP 51 Tutorials / Posts / Answers Set SAP GUI Scripting Registry Entries Creation date 28.09.2022 Changes of the SAP GUI Scripting Creation date 05.04.2021 / Last up…

---

## [VB.net or C#.net](https://forum.uipath.com/t/vb-net-or-c-net/343489)

<div class="topic-metadata">

**Author:** [@Rohit\_More](https://forum.uipath.com/u/Rohit_More)\
**Replies:** 2\
**Last updated:** [September 8, 2021, 9:38am UTC](https://forum.uipath.com/t/vb-net-or-c-net/343489 "2021-09-08T09:38:59Z")

</div>

Hi All, I want to take an advice: UiPath added support for C# in project, so which language should I choose to use, VB or C#? Thanks!!!

[Next page](https://forum.uipath.com/tag/csharp/1565.md?match_all_tags=true&page=1&tags%5B%5D=csharp)
