Cannot implicitly convert type 'object' to 'bool'. An explicit conversion exists (are you missing a cast?)

Hi,
I’m having trouble compiling the project.

  • I cleared cache, nugets, temps
  • Updated and downgraded packages

My Packages:
System.Activities - 22.10.4
Mail.Activities - 1.18.2
Excel.Activities - 2.16.1
Database.Activities - 1.7.1

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:
 * Cannot implicitly convert type 'object' to 'bool'. An explicit conversion exists (are you missing a cast?)
 * Assuming assembly reference 'System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'UiPath.System.Activities' matches identity 'System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Data.Common', you may need to supply runtime policy
 * Assuming assembly reference 'System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'UiPath.System.Activities' matches identity 'System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Data.Common', you may need to supply runtime policy
 * Assuming assembly reference 'System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'UiPath.System.Activities' matches identity 'System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Data.Common', you may need to supply runtime policy
 * Assuming assembly reference 'System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'UiPath.System.Activities' matches identity 'System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Data.Common', you may need to supply runtime policy

do you have any idea to fix this?

Hi @Damian_Chamerski,

Are you invoking any workflows files anywhere in the code? If so, then you may want to check all the arguments and if you are getting an error in any one of them it will be highlighted in yellow. Please check all the arguments thoroughly since in some of the arguments you might not have given the correct variable datatype which is required.

Regards.