Assign: process was not started by this object so requested information cannot be determined

Hi team ,

I’m getting this error
Assign: process was not started by this object so requested information cannot be determined.

I’m using this query in assign value:
(from n in allProcessList where n.ProcessName. ToLower.Contains (processName) and n.StartInfo.EnvironmentVariables
(“USERNAME”).Equals(userName) select n). ToArray

Kindly share your suggestions

Thank you in advance…

@Rupali_Shinde,

Not tried as don’t have your list but try this.

(From n In allProcessList Where n.ProcessName.ToLower().Contains(processName.ToLower()) AndAlso If(n.StartInfo.EnvironmentVariables("USERNAME"), String.Empty).Equals(userName, StringComparison.OrdinalIgnoreCase) Select n).ToArray()

Hi Ashok

I’m using this query in assign value:
(from n in allProcessList where n.ProcessName. ToLower.Contains (processName) and n.StartInfo.EnvironmentVariables
(“USERNAME”).Equals(userName) select n). ToArray

And in assign To value using filterprocesslist with system.diagnostics.process var type.

@Rupali_Shinde,

May I know what you are trying to achieve?

@ashokkarale

I am working on the Windows migration project, and this issue isn’t present in the Windows Legacy code. However, after converting to Windows, the issue is occurring in the KillProcess.xaml file. I don’t have much context about the project, and the developer mentioned that it’s being used for the kill process.

Sry for the delay in response.

Thank you.

@Rupali_Shinde,

Ok this could have done to kill the processes for the current user only. Earlier version of Kill Process activity didn’t had the option to Applies To - Only Current User

What you can do is, you would have a list of appliactions you would be killing. So iterate that list of application and in that Foe Each activity use Kill Process activity and pass the iterating process to kill with property ‘Applies To - Only Current User’

Like this.

@ashokkarale, Thank you the issue got resolved .

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.