[BUG] Not able to publish a process after adding Trigger Scope activity

There is already a thread with this… but there is no solution on it. Not sure if I’m doing something wrong or its a bug.
Create a new project, Add a Trigger Scope, and some trigger, for example hotkeys or process start. Add some action like a message log. The automation works but if i try to publish it throws this error

23.10.0+Branch.master.Sha.e038c5a32a4f890ba12a3c04ac465dc8811521e0

Object reference not set to an instance of an object.

Error: System.NullReferenceException: Object reference not set to an instance of an object.
at UiPath.Studio.ProjectPackager.Packager.Services.LocalTriggersPublishConfigurator.ProcessTriggers(IWorkflowProjectModel projectModel, CancellationToken ct)
at UiPath.Studio.ProjectPackager.Packager.Services.LocalTriggersPublishConfigurator.SetupAsync(IWorkflowProjectModel projectModel, IWorkflowProject project, CancellationToken ct)
at UiPath.Studio.ProjectPackager.Publish.Services.ProcessPublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)
at UiPath.Studio.ProjectPackager.Publish.Services.PublishService.PublishAsync(IWorkflowProjectModel projectModel, IPublishSettings settings), HResult -2147467261

thanks in advance

Hi @APW ,
Can you share your screen short
regards,

Hello @APW

  1. Update Packages: Ensure all project dependencies and packages are up-to-date.
  2. Review Triggers: Check trigger setups for correctness, especially custom expressions or configurations.
  3. Inspect Actions: Verify that actions associated with triggers, like hotkeys or process start actions, are set up correctly.
  4. Check Code: Review custom code for potential null references.
  5. Simplify Workflow: Temporarily remove or simplify parts of the workflow to identify the problematic component.
  6. Update UiPath Studio: Use the latest version of UiPath Studio.

Thanks & Cheers!!!

Thank you for the extra report. As mentioned in the first thread, we will investigate this:

Let’s keep the discussion in one place as well. I will close this topic as a duplicate.

Duplicate of the linked topic (same issue).