Microsoft Office 365 : Find Files And Folders Activity Validation Error

Hi, I am trying to use the Find Files And Folders Activity for getting the childern name from a particular sharepoint folder. When I am trying to assing the value to the output property(Results) I am getting the error as : Error ERROR Validation Error Compiler error(s) encountered processing expression “arrstrFiles”.
Reference required to assembly ‘netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ containing the base class ‘System.Object’. Add one to your project. _Test.xaml

Please find the screenshot for the same below.

Could anyone help me on the same.

Thanks.

@Aniket_Mugal

what is the datatype of the given variable?

Did you try creating the variable going to output field and clicking ctrl+k which will create the variable with required type

Cheers

Yes, I have created the variable using ctrl+k and the data type for the same is DriveItem

@Aniket_Mugal

Try importing system.object or upgrade theoffice365 pack

Cheers

I have tried both the ways but still no luck :expressionless:

@Aniket_Mugal , Did you find a solution to this? I have run into the same issue. All my DriveItem type vars are showing this error. Just randomly popped up in a project that I had not been into in about two months.

@Bill_Richardson

Please try these

Cheers

Thanks @Anil_G . After playing with it for a while with no success, I tried adding a new DriveItem var. As soon as I created another var, the error went away. I was even able to delete the new var that I added, and the error did not return. Wondering if there maybe was some kind of issue in 22.10.5 because the error showed up right after I installed that update.

1 Like

@Bill_Richardson

There is the issue…the drive item type has been changed slightly from
Older version to the newer version…

So recreating basically created as you need as per the new updates namespace

Cheers

2 Likes

Hello

I found the error to be specific to each XAML even within the same project.

XAML A - no errors.
XAML B - error message.

Create XAML C and replicate XAML B and error message is gone.

Hopefully that made sense and helps someone else.

Cheers

Steve

thanks. it helps me to solve this issue

1 Like