Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
"parse command output" fails when running dir command to a shared network drive that MID server does not have access to, even though the target host of the pattern does. - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • "parse command output" fails when running dir command to a shared network drive that MID server does not have access to, even though the target host of the pattern does.
KB0855646

"parse command output" fails when running dir command to a shared network drive that MID server does not have access to, even though the target host of the pattern does.


748 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Description

"parse command output" fails when running dir command to a shared network drive that MID server does not have access to, even though the target host of the pattern does


When using dir command to a shared network drive in "Parse Command Output" operation, if the MID server doesn't have access to the shared network drive / is not able to do WMI query to the shared network drive, the command fails with below error, even if the target host of the pattern has access to the network drive, and the "Execution Mode" is Default (Remote):

Failed to retrieve remote data: All command implementations (SHELL_COMMAND) failed on host .... Host might be down or unreachable. ()


Sample Affected component:

> The "Create SAP App Connection" connection section for "SAP ASCS Application" pattern, step 1.4. get all related applications windows.

Steps to Reproduce

In any pattern, create a Parse Command Output, run bellow command, make sure MID server doesn't have access to the drive, but the target of the pattern does:
"dir /b " + "\"\\server02\NoAccessforMIDHost\""

Above command fails.

Now change command to:
"dir /b " + "\\server02\NoAccessforMIDHost"
Try again, and it works as it's executed in remote mode

Workaround

A general workaround is to remove the double quote wrapping from the shared network drive.


For example, if the affected component is:

"Create SAP App Connection" connection section for "SAP ASCS Application" pattern, step 1.4. get all related applications windows.


Apply below workaround:

Open "Create SAP App Connection" connection section for "SAP ASCS Application" pattern,
In step 1.3 add " to profile,
add a Precondition: 1 equals 2 to skip this step.

So previously in 1.4, value of config_directory is: "\\SAPPPSCSCS\sapmnt\...."
Now the value will become: \\SAPPPSCSCS\sapmnt\....


Related Problem: PRB1411487

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.