Compilation error - error BC30560: ScopeActivityContext is ambiguous in the namespace UiPath.BAF.Activities.ContextModel

Whenever we use the UiPath.Smartsheet.Activities=1.1.0 and UiPath.ServiceNow.Activities=1.3.8 activities in a code, we are getting the compilation error as below.

error BC30560: ScopeActivityContext is ambiguous in the namespace UiPath.BAF.Activities.ContextModel.

Please help to fix this issue.

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • ‘ScopeActivityContext’ is ambiguous in the namespace ‘UiPath.BAF.Activities.ContextModel’.
  • ‘ScopeActivityContext’ is ambiguous in the namespace ‘UiPath.BAF.Activities.ContextModel’.
  • ‘ScopeActivityContext’ is ambiguous in the namespace ‘UiPath.BAF.Activities.ContextModel’.
  • ‘ScopeActivityContext’ is ambiguous in the namespace ‘UiPath.BAF.Activities.ContextModel’.
  • ‘ScopeActivityContext’ is ambiguous in the namespace ‘UiPath.BAF.Activities.ContextModel’.
  • ‘ScopeActivityContext’ is ambiguous in the namespace ‘UiPath.BAF.Activities.ContextModel’.

Try to use the newer versions, based on Integration Service. Older packages could not be used in the same time as the namespaces were colliding.