New BusinessRuleException not working

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.

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

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

1 Like

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.