Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Error Handling
Unanswered

undefined

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

When trying to create a connection to desktop from power automate I am encountering an issue.

Here are the steps I have made:

1. install pwatuomtae desktop

2. created desktop flow

3. created pw cloud flow

On the next step when I try to create a connection to desktop:

- ran power automate machine runtime and received the below error message:

Message = Exception has been thrown by the target of an invocation.
Error = System.Reflection.TargetInvocationException
Full text = System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Flow.RPA.Desktop.MachineRuntime.UI.ViewModel.MainViewModel.OnMachineInfoUpdatedEvent(MachineInfoUpdatedEvent obj)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at Microsoft.Flow.RPA.Desktop.Shared.ApplicationFlow.Internal.ApplicationEvents.RaiseInternal[T](T domainEvent)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

What do i need to do in order to fix it?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Error Handling

#1
stampcoin Profile Picture

stampcoin 86

#2
DS-11051211-0 Profile Picture

DS-11051211-0 20

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 9

Overall leaderboard

Featured topics