# Having issues compiling my code

**URL:** <https://forum.uipath.com/t/having-issues-compiling-my-code/580357>\
**Category:** Studio\
**Tags:** breakpoints-management, question, studio\
**Created:** [September 7, 2023, 7:17am UTC](https://forum.uipath.com/t/having-issues-compiling-my-code/580357 "2023-09-07T07:17:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheesesandwichcrackers](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cheesesandwichcrackers/32/425722_2.png) [@cheesesandwichcrackers](https://forum.uipath.com/u/cheesesandwichcrackers)\
**Post date:** [September 7, 2023, 7:17am UTC](https://forum.uipath.com/t/having-issues-compiling-my-code/580357/1 "2023-09-07T07:17:12Z")

</div>

Hello, new here and I have been using UI Path Studio Community edition, however I am having problems compiling my workflow, it keeps stating “Compilation failed. Remove unused imports and try again.” I have uninstalled the software once and reinstalled again but I am still having this issue.

---

<div class="post-metadata">

**Author:** ![vinitha\_yachamaneni](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vinitha_yachamaneni/32/357108_2.png) [@vinitha\_yachamaneni](https://forum.uipath.com/u/vinitha_yachamaneni)\
**Post date:** [September 7, 2023, 7:21am UTC](https://forum.uipath.com/t/having-issues-compiling-my-code/580357/2 "2023-09-07T07:21:26Z")

</div>

Hello @cheesesandwichcrackers

- The error message you’re encountering, “Compilation failed. Remove unused imports and try again,” typically indicates that there is an issue with the dependencies or imports in your UiPath workflow.
- This error occurs when UiPath Studio detects unused or unnecessary imports in your project, and it’s preventing the workflow from compiling successfully.

---

<div class="post-metadata">

**Author:** ![cheesesandwichcrackers](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cheesesandwichcrackers/32/425722_2.png) [@cheesesandwichcrackers](https://forum.uipath.com/u/cheesesandwichcrackers)\
**Post date:** [September 7, 2023, 7:24am UTC](https://forum.uipath.com/t/having-issues-compiling-my-code/580357/3 "2023-09-07T07:24:51Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/4X/b/9/5/b95130b0c77e7517bded24ae95b767f709d89ef5.png)

---

<div class="post-metadata">

**Author:** ![arjunshenoy](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/arjunshenoy/32/404588_2.png) [@arjunshenoy](https://forum.uipath.com/u/arjunshenoy)\
**Post date:** [September 7, 2023, 7:25am UTC](https://forum.uipath.com/t/having-issues-compiling-my-code/580357/4 "2023-09-07T07:25:22Z")

</div>

Hi @cheesesandwichcrackers

In order to tackle this issue, remove the unused imports like this:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/4/6/b/46ba9363d7affcc6b25bc1717331edcad7e88cc0.png)

Hope this helps,  
Best Regards.

---

<div class="post-metadata">

**Author:** ![vinitha\_yachamaneni](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vinitha_yachamaneni/32/357108_2.png) [@vinitha\_yachamaneni](https://forum.uipath.com/u/vinitha_yachamaneni)\
**Post date:** [September 7, 2023, 7:31am UTC](https://forum.uipath.com/t/having-issues-compiling-my-code/580357/5 "2023-09-07T07:31:02Z")

</div>

@cheesesandwichcrackers

Try these steps once

- Open the workflow where you’re encountering the error.
- Look for any imported namespaces or libraries that are not being used in the workflow.
- Remove these unused imports. To do this, go to the “Imports” or “Imports” panel in UiPath Studio, find the unnecessary imports, and delete them.

---

<div class="post-metadata">

**Author:** ![cheesesandwichcrackers](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cheesesandwichcrackers/32/425722_2.png) [@cheesesandwichcrackers](https://forum.uipath.com/u/cheesesandwichcrackers)\
**Post date:** [September 7, 2023, 7:42am UTC](https://forum.uipath.com/t/having-issues-compiling-my-code/580357/6 "2023-09-07T07:42:45Z")

</div>

Hi all, I have removed the imports already, but I am still having the same error. When I try to select “remove imports”, it indicates “No unused imports were found”.

---

<div class="post-metadata">

**Author:** ![cheesesandwichcrackers](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/cheesesandwichcrackers/32/425722_2.png) [@cheesesandwichcrackers](https://forum.uipath.com/u/cheesesandwichcrackers)\
**Post date:** [September 8, 2023, 8:27am UTC](https://forum.uipath.com/t/having-issues-compiling-my-code/580357/7 "2023-09-08T08:27:02Z")

</div>

BUMP BUMP BUMP BUMP…

---

<div class="post-metadata">

**Author:** ![supermanPunch](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/supermanpunch/32/133652_2.png) [@supermanPunch](https://forum.uipath.com/u/supermanPunch)\
**Post date:** [September 8, 2023, 11:33am UTC](https://forum.uipath.com/t/having-issues-compiling-my-code/580357/8 "2023-09-08T11:33:47Z")

</div>

> [@cheesesandwichcrackers](#):
>
> Hi all, I have removed the imports already, but I am still having the same error. When I try to select “remove imports”, it indicates “No unused imports were found”.

Hi @cheesesandwichcrackers ,

Could you provide us with a Screenshot of your workflow where we can look at your Workflow file names like in the below way ?  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/8/0/6/8068c30219a576ad802104795402e22a3b774a17.png)

Also, Could you let us know what was the Language set ? VB or C# ?

Check the below post which does discuss on the same issue :

> [@C# Compilation is broken in Studio 23.4.1](https://forum.uipath.com/t/c-compilation-is-broken-in-studio-23-4-1/542470/10):
>
> I’ve also reproduced the issue in my setup using the attached projects. However, removing the unused imports did not fix the issue, in my case. What actually worked was to remove both the activities and then add them back to the project. By doing so, compilation was successful. I’ve tried replicating the bug using newly created libraries and projects, but I couldn’t. They all worked as expected in my setup, which indicates this issue also has something to do with the upgrade. I’ve …

---

<div class="post-metadata">

**Author:** ![vinitha\_yachamaneni](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vinitha_yachamaneni/32/357108_2.png) [@vinitha\_yachamaneni](https://forum.uipath.com/u/vinitha_yachamaneni)\
**Post date:** [September 8, 2023, 4:55pm UTC](https://forum.uipath.com/t/having-issues-compiling-my-code/580357/9 "2023-09-08T16:55:17Z")

</div>

Hello @cheesesandwichcrackers

After Removing your unused imports from your workflow, try to Rebuild or Reopen Workflow or Restart the UiPath Studio

And also, Make sure you are using the latest version of UiPath Studio Community Edition. Sometimes, updating the software can resolve known issues and improve stability.
