Incompabilitiy between UiPath Studio v21 versions and MicrosoftOffice365 activities v1.14+

Hi there,

at my company, we are currently experiencing difficulties with the MicrosoftOffice365 newer versions (1.14 upwards) in combination with our UiPath Studio v21.10.5/7.

With any POST-related activities (e. g. Move file or folder, Copy file or folder, Delete file or folder), an error message occurs stating:

method ‘disposeasync’ in type ‘system.text.json.utf8jsonwriter’ from assembly ‘system.text.json, version=5.0.0.2, culture=neutral, publickeytoken=cc7b13ffcd2ddd51’ does not have an implementation

This is not the case when simply using activities, that only contain GET activities (e. g. Get Sharepoint List Info or Find Files And Folders).

A similar issue has been filed with regard to the Exchange mail activities in this thread that has been closed/fixed midst of last year:
method ‘disposeasync’ in type ‘system.text.json.utf8jsonwriter’ from assembly ‘system.text.json, version=5.0.0.2, culture=neutral, publickeytoken=cc7b13ffcd2ddd51’ does not have an implementati

Because of this issue, we are using the workaround to stay with v1.11.1 of the MicrosoftOffice365 package which works fine for all activities for us.

However, in this version there is no ‘GetListItem’ Activitiy for Sharepoint lists. Therefore, we built up a seperate library to cover that activity as well, using the newest v2.0.3 package.

Any indication by UiPath on when this issue will be fixed would be appreciated. Thanks for your support.

Kind regards,
Jan

I just hit this problem today. We just learned last week how to use these 365 activities, and I’ve been using the Get Mail activity with UiPath.MicrosoftOffice365.Activities 2.0.1 with no problems.

Today I just added a Move Mail activity to the process and immediately got the above error.

@sandeepallaka @loginerror This is a major issue as it makes the latest versions of your 365 activities package unusable.

I just tried v2.0.3 and got the same error.

I downgraded to v1.11.1 and of course now I’m getting “Missing or invalid activity” so now I have to redo all this code.

We are on Studio 2021.10.5.

If it’s an issue of needing a certain version of Studio, then this should be handled in the Manage Packages window. If I’m not on the necessary version of Studio for a package, it shouldn’t let me install the package.

1 Like

I investigated this a bit. I found that it happens when one package or runtime component makes a call to a missing method, and that can happen because its dependency build version is older than the latest version injected by some other component.

In this case, it might be the system.text.json issue.

Could you try working with just the MicrosoftOffice365 package to see if the issue still reproduces?

If yes, could you try upgrading the dependencies of other packages? Naturally, we try to catch those issues and align on the dependencies as much as possible by default.

Hey guys,

We’ve investigated this one, and it seems as if you make sure to have the latest packages for all your packages they should work together, and you won’t have this incompatibility issue.

Best regards,