web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / GeneralRobinScriptExec...
Power Automate
Unanswered

GeneralRobinScriptExecutionError - error when running desktop flow in unattended/attended mode

(0) ShareShare
ReportReport
Posted on by 36

I am getting the following error when trying to execute a desktop flow via a cloud flow on my virtual machine.

 

The desktop flow works perfectly when triggered manually on the VM. Other flows also work on this VM fine. Nothing is appearing in the log either as it doesn't appear to get that far.

Any ideas?

 

 

{
 "error": {
 "code": "GeneralRobinScriptExecutionError",
 "message": "Encountered an unexpected error during Desktop flow script execution: 'System.NullReferenceException: Object reference not set to an instance of an object.\r\n at Microsoft.Flow.RPA.Desktop.Robin.Core.Connectors.Providers.ConnectorDefinitionManager.<GetConnectorDefinitionForLocalizationAsync>d__21.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Flow.RPA.Desktop.Robin.Core.Packager.Packager.<>c__DisplayClass28_0.<PrepareProgramConnectorDefinitions>b__0(ProjectConnectorDefinition definition)\r\n at Microsoft.Flow.RPA.Desktop.Common.Structures.Extensions.EnumerableExtensions.ForEach[T](IEnumerable`1 en, Action`1 action)\r\n at Microsoft.Flow.RPA.Desktop.Robin.Core.Packager.Packager.PrepareProgramConnectorDefinitions(IList`1 projectConnectorDefinitions, IList`1 statements)\r\n at Microsoft.Flow.RPA.Desktop.Robin.Core.Packager.Packager.BundleProgram(Program program)\r\n at Microsoft.Flow.RPA.Agent.Server.Components.ScriptEngines.RobinEngine.Helpers.RobinHelpers.PackProgramToDirectory(IPackageProvider packageProvider, Program program, String directory, Nullable`1 flowId)\r\n at Microsoft.Flow.RPA.Agent.Server.Components.ScriptEngines.RobinEngine.Helpers.RobinHelpers.PackProjectToDirectory(ILifetimeScope lifetimeScope, Project project, String directory, Guid flowId)\r\n at Microsoft.Flow.RPA.Agent.Server.Components.ScriptEngines.RobinEngine.DataResolvers.DataResolverV2.GetFlowDataAndSetState(Guid scriptId, Guid runId, Dictionary`2 flowInfoCache, String directory)\r\n at Microsoft.Flow.RPA.Agent.Server.Components.ScriptEngines.RobinEngine.RobinScriptProvider.ResolvePackagePath(Guid flowId)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at Microsoft.Flow.RPA.Agent.Server.Components.ScriptEngines.RobinEngine.RobinEngine.<Execute>d__23.MoveNext()'."
 }
}

 

 

Thanks

flow-error-2.png
flow-error-1.png
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I would recommend trying out a few things (while checking if the issue disappears after each step - no need to do everything if one of these resolves it):

    1. If it used to work previously, but stopped working after an update - try rolling back to a previous version of PAD.
    2. Disable the new designer on the cloud flow, if you have enabled it.
    3. Delete the Desktop flows connection in the cloud portal and create a new one.
    4. Reinstall PAD on the machine.
    5. Try running it on a different machine to see if it works there.

     

    If neither of these help or at least give you some hints to the possible problem, submit a bug report to MS support.

  • dcullenleics Profile Picture
    36 on at

    Thanks @Agnius

     

    I have tried all of these steps and no luck i'm afraid. I tried running on another VM are same issue occurs.

     

    I do have an open ticket with MS support though so see what comes back from that, quite frustrating as this is my first real project and falling at the first hurdle.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    This is not normal and I have personally not experienced something like this. Might be a bug. Hopefully, MS support will help you resolve it and then you can build great things with PAD!

  • dcullenleics Profile Picture
    36 on at

    This looks like a bug when calling a desktop flow (with SharePoint actions) from a cloud flow.

     

    Microsoft currently working on a fix.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 134 Super User 2026 Season 2

Last 30 days Overall leaderboard