
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Supporting Tasks - Batch file is not running with UNC path
Hello Community, we wrote a batch files to copy text files from one place to another place. All these scripts are created in Qlikview Source documents folder and folders are shared folders.
I am running the batch file manually its working as expected. So I created Supporting Task on QEMC try to run with following command and its not working.
"\\servername\ExternalScripts\Batch\copytxt.cmd" ===> Not Working
But I copied the file QEMC server locally & running command its working.
"D;\Externalscripts\copytxy.cmd" ===> Working
Why the supporting Task is not running the batch file with UNC Path ? Is there any setting I need ti turn on ?
- « Previous Replies
-
- 1
- 2
- Next Replies »

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are the credentials used to map the d: drive the same as user that runs the QMC service? Perhaps, as a test, you could launch a command prompt or Explorer window as that user, and see if it lets you browse to that UNC path, just to verify that that user has rights to read/execute the file in that directory.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi the user have both read/write access on the \\servername\ExternalScripts\Batch.
I am accessing the above path inside server.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does the service account also have those permission for the Share?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you have any more information about the execution failure aside from "it doesn't work"? A Supporting task also creates a task log and that one may contain additional information about the failed batch execution.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
External tasks execution paths are normally specified using the drive letter on the server. Have you tried using the drive letter in the TaskDef?
-Rob

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The task triggered and completed in 1 sec. I can't find more details on the task log. It say completed not more details.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rob, Batch files are not local to QEMC server and batch files are on shared drive. If I copy the batch file to local folder and batch file running fine. But I am running through UNC path (shared drive path \\servername\) & its doing nothing.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Service account have both read/write permissions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Got it. If you invoke it using the unc path from your local machine, does it work? If not, you can debug t from there.
-Rob

- « Previous Replies
-
- 1
- 2
- Next Replies »