Compilation failed or was cancelled for Microsoft office 365 scope

Hello,

I’m trying to create a library for Send Mail Activity using Microsoft Office 365 scope. When I try to publish, I’m getting the following error.

Unexpected error has occurred during the library compilation process:
Unable to create activity builder for SendMail_WithoutAttachment.xaml. Reason was ‘Could not load file or assembly ‘System.Text.Json, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The system cannot find the file specified.’.

Attached the xaml for reference.

SendMail.zip (2.9 KB)

Hi,

It might not be very good solution, but can you try to downgrade Office365 package to 1.13.0-preview, as workaround?

Regards,

Appreciate your reply. However, getting same error after updating to preview version.

Thanks.

Hi,

In my environment(Studio22.4.6 and 22.10.3CE), it works if downgrade O365 pack to 1.13.0-preview as the following.

SendMail.1.0.1.nupkg (22.5 KB)

Can you try to publish the following project?

SendMailv2.zip (2.9 KB)

Regards,

Ok, the problem is the that we are trying to create library for get mail and send mail using office 365. if i downgrade the office 365 package to v1.11.1 get mail package is affected. please refer the below screenshot.

HI,

If you don’t use Email property of the GetMail activity, can you try to replace the error activity with GetMail activity in 1.11.1? It might be necessary to note information for settings in advance.

Regards,

Thank you Yoichi, I downgraded to preview version of v1.13.1 and it worked for both send and get mail activities. Great help! cheers!

1 Like

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