Message: Could not load file or assembly ‘UiPath.Robot.Activities.Api, Version=20.4.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.
I made a reuseable component (i.e. a Library) to fetch data from salesfoce using Salesforce API key.
While running the code, I am getting the above error.
I believe you are using different version of reusable component and salesforce activities in the project you want to use this component in. Please check the version and upgrade/downgrade it to the version which was used to built the reusable component.
Other Solution is(if you are not aware of the version):
just delete the salesforce activities from your reusable component and then drag and drop them again. It will work.