Why the Upload Record(s) activity from the UiPath.CommunicationsMining.Activities package is not holding the output variable?
Note: Based on https://docs.uipath.com/communications-mining/automation-cloud/latest/developer-guide/uipath-official-activities
Upload Record(s) - Enables users to upload messages to a Communications Mining source. First use the Create Record activity to map your data, then use Upload Record(s) to upload it. Using this activity will charge 1 AI unit for each message created or updated
Issue: Why the Upload Record(s) activity from the UiPath.CommunicationsMining.Activities package is not holding the Output variable?
While trying to use UiPath.CommunicationsMining.Activities package versions 1.0.2, 1.0.3, and 1.0.4 for the Upload Record(s) activity in UiPath Studio, and trying to add/insert an output variable and click off of the activity, the output gets emptied and will not get saved to the activity. If the variable is created in the Output, the variable will be created, but it will not be tied to the activity. If the already created variable is set to the output, again, it will be removed automatically at the next activity out-of-focus. This is tested in Studio 2023.4.3, Studio 2023.10.0, and Studio 2023.4.2 in Windows and Cross-Platform compatibility.
What happens if the auto-generated _outUploadRecords1_Responses variable is used?
It will not be available for usage, because the variable disappears after clicking off of the activity. If the variable is used and run the automation in debug mode, it will throw an error that the variable is not initialized.
Resolution:
- Ensure to have Communication Mining enabled as a Service in your Tenant from the Admin section
- In Studio, ensure the Robot is connected to the Orchestrator tenant where the Communication Mining is enabled
- Use/ Add this https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json feed in Studio project -> Manage Packages ribbon
- Install the UiPath.CommunicationsMining.Activities package and choose version 1.0.5
5. Add the Upload Record(s) activity from the UiPath.CommunicationsMining.Activities package and set for it a new Output variable.
Example: