What is the root cause for the error "Reply to Mail: Method 'DisposeAsync' in type 'System.Text.Json.Utf8JsonWriter' from assembly 'System.Text.Json, Version=5.0.0.2, Culture=neutral, PublicKeyToken=cc7fdffssd2ddd51' " with the specific version 1.14.1 of Microsoft Office 365?
Issue Description
Note: The contents of this KB refer to older versions of the package. Our recommendation is to always use the latest versions of our deployed activity packages.
Getting error: "Method 'DisposeAsync' in type 'System.Text.Json.Utf8JsonWriter' from assembly 'System.Text.Json, Version=5.0.0.2, Culture=neutral, PublicKeyToken=cc7fdffssd2ddd51' does not have an implementation" while running process with Microsoft Office 365 package 1.14.1 version.
With version 1.11.1 of the Microsoft Office 365 package, this error is not received.
Root Cause
The issue happens because one package or runtime component makes a call to a missing method, because its dependency build version is older than the latest version injected by some other component. Multiple UiPath Packages use the system.Text.Json as a sub-dependency, so when they have various versions of it, there is a conflict which leads to this error.
Workaround
Downgrade the Microsoft Office 365 package to 1.11.1 version or downgrade/upgrade the other activity packages in the project that use System.Text.Json so that they have matching versions of this sub-dependency. Usually, if activity packages are upgraded to the latest available versions, the error should not occur.