# Error microsoft.codeanalysis.syntax tree error in latest version

**URL:** <https://forum.uipath.com/t/error-microsoft-codeanalysis-syntax-tree-error-in-latest-version/453031>\
**Category:** Studio\
**Tags:** system, activities\
**Created:** [July 1, 2022, 10:03am UTC](https://forum.uipath.com/t/error-microsoft-codeanalysis-syntax-tree-error-in-latest-version/453031 "2022-07-01T10:03:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gagan\_Chaudhari](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@Gagan\_Chaudhari](https://forum.uipath.com/u/Gagan_Chaudhari)\
**Post date:** [July 1, 2022, 10:03am UTC](https://forum.uipath.com/t/error-microsoft-codeanalysis-syntax-tree-error-in-latest-version/453031/1 "2022-07-01T10:03:16Z")

</div>

Hello,  
I am using Invoke Code activity for simple VBA code.  
Code is running fine on Community Edition

But giving error on 2020.4.3

 ![Invoke Error](https://global.discourse-cdn.com/uipath/original/4X/8/8/a/88af24a6b9aa2803c496ae941af163cb0e6f367e.png)

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [July 1, 2022, 10:06am UTC](https://forum.uipath.com/t/error-microsoft-codeanalysis-syntax-tree-error-in-latest-version/453031/2 "2022-07-01T10:06:14Z")

</div>

Hi,

The following post will help you.

> [@Invoke Code error with UiPath.System.Activities v21.10.5](https://forum.uipath.com/t/invoke-code-error-with-uipath-system-activities-v21-10-5/452725/4):
>
> Hi, we are using UiPath [Studio](https://docs.uipath.com/studio/docs/introduction) v2020.10.6 and UiPath.System.[Activities](https://docs.uipath.com/activities/docs/introduction) v21.10.5. InvokeCode activty in System.Activities package 21.10.x doesn’t support Studio 20.10.x. Please see “known issues” of the following document. So, can you try to downgrade system.activities package to 20.10.x, OR upgrade Studio to 21.10 or above? Regards,

Can you try to downgrade system.[activities](https://docs.uipath.com/activities/docs/introduction) package to 20.10.x, OR upgrade [Studio](https://docs.uipath.com/studio/docs/introduction) to 21.10 or above?

Regards,

---

<div class="post-metadata">

**Author:** ![Gagan\_Chaudhari](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@Gagan\_Chaudhari](https://forum.uipath.com/u/Gagan_Chaudhari)\
**Post date:** [July 1, 2022, 10:18am UTC](https://forum.uipath.com/t/error-microsoft-codeanalysis-syntax-tree-error-in-latest-version/453031/3 "2022-07-01T10:18:53Z")

</div>

Thanks for the response Since I am using Enterprise Edition Windows License.  
And I am new to this Can you please guide me how can I Upgrade ?

Am I suppose to download new version from website and then install ?

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [July 1, 2022, 10:25am UTC](https://forum.uipath.com/t/error-microsoft-codeanalysis-syntax-tree-error-in-latest-version/453031/4 "2022-07-01T10:25:17Z")

</div>

Hi,

> Am I suppose to download new version from website and then install ?

Yes, we can upgrade Studio using higher version installer.

If you have an enterprise account of automation cloud, you can download it from ResourceCenter in AutomationCloud.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/0/2/f02e58eef65fed74fdcd598f63057b7de6510663.png)

Regards,

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [July 11, 2022, 12:17pm UTC](https://forum.uipath.com/t/error-microsoft-codeanalysis-syntax-tree-error-in-latest-version/453031/5 "2022-07-11T12:17:40Z")

</div>

Closed on July 11, 2022, 12:17pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
