New BusinessRuleException not working


#1

I have a developer who put in the following throw:
new BusinessRuleException(“in_strBillingEntityGrpNPI is null!”)

On her machine, there’s no problem. On mine, I get an error “BusinessRuleException is ambiguous, imported from the namespaces or types 'UiPath.Framework.Activities, UiPath.Core”.

We have the same version of UiPath and I don’t understand what that error means. It’s a throw.


#2

Could it be related to the packages the developer has installed vs what you have installed?


#3

Could you try with:
new UiPath.Core.BusinessRuleException(“text”)
as suggested in this thread:


#4

Indeed this happens many times.
And it happen to other functions too (like Path.Combine not working while System.Path.Combine do etc) across PCs with the same UIPath version. Still don’t know why though.