Skip to main content
Question

SystemCaller command 'query user' throwing error


australgis
Contributor
Forum|alt.badge.img+3

SystemCaller command 'query user' works perfectly well on Windows CMD command prompt but throw an error on workbench:

SystemCaller: Failed to Execute `query user'

There is something wrong with my syntax or this is just a bug?

I am running FME 2022.1 by the way.

5 replies

DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • August 24, 2023

Hi @australgis​ Are you getting an error or just a warning? I get a warning too but if I redirect the output to a file then I see that it worked. See https://community.safe.com/s/question/0D54Q000080hVEXSA2/is-it-possible-to-run-a-command-line-command-in-fme and https://community.safe.com/s/question/0D54Q000080hf1MSAQ/return-result-in-attribute-with-systemcaller for more examples using the SystemCaller.


australgis
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • August 24, 2023

The message belongs to the category Information, but as it says "Failed" and SystemCaller sends an Error Code : 1. I just wanted to know exactly why exactly fails.  The command actually works but sends a fail message. Should I just ignore it? Seems like a bug to me.

2023-08-24 16:22:24|   0.7|  0.0|WARN  |SystemCaller: Failed to Execute `query user /server:myserver>>C:\temp\HealthCheck\Myserver.txt'

 


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • August 24, 2023
australgis wrote:

The message belongs to the category Information, but as it says "Failed" and SystemCaller sends an Error Code : 1. I just wanted to know exactly why exactly fails.  The command actually works but sends a fail message. Should I just ignore it? Seems like a bug to me.

2023-08-24 16:22:24|   0.7|  0.0|WARN  |SystemCaller: Failed to Execute `query user /server:myserver>>C:\temp\HealthCheck\Myserver.txt'

 

@australgis​ I've filed FMEFORM-29308 about this incorrect warning message.


australgis
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • August 24, 2023
DanAtSafe wrote:

@australgis​ I've filed FMEFORM-29308 about this incorrect warning message.

Thank you!


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • September 13, 2023

Hi @australgis​ FMEFORM-29308 has been fixed for FME 2023.2 (not yet available). 'query' seems to always return an error level of 1, regardless of the result.  The fix is that FME will now INFORM rather than WARN:

SystemCaller: Command '"query user >> "C:/Users/...\user620.txt""' exited with status '1' which may indicate an error

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings