cancel
Showing results for 
Search instead for 
Did you mean: 

Batch File Running On DS Server But Not When Data Services Executes It

01-27-2019 12:44 AM
1372 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

I created a Visual Basic script to create a Telnet session, execute commands, and write to a log file on the Windows server that hosts our Data Services platform. When I execute this script manually it runs and populates the log file, but when I execute the same script through Data Services, the Data Services log says it ran successfully but the log file doesn't contain data.

I'm running this in a script component in Data Services:

print(exec('cmd.exe','C:\DS_Files\Veeder\Scripts\VeederScript_HumanReadable.vbs "[$StoreNumber]"',8)); 

I've also created a Batch file to execute the VB script, which also runs successfully when executed manually, but also doesn't update my log file when executed by Data Services. I also tried this by using 'cscript' instead of 'cmd.exe' with the same result. Is this a permissions issue?

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member187605
Active Contributor
0 Likes

Correct. Your service account needs access to folders and files read and modified by the external program.

former_member187605
Active Contributor
0 Likes

In the Task Manager, Processes tab. The Username for the al_jobserver and al_engine executables..

Former Member
0 Likes

I can see our service account is running the al_jobserver and al_engine, which it should be. So now that service account user needs to have permissions to make changes that the batch file/VB script is attempting?

former_member187605
Active Contributor
0 Likes

Yes. The script runs with the DS credentials, i.e. the username DS was installed with.

Former Member
0 Likes

Thank you, dirk.venken. Where can I find which user is running the DS server? I've made adjustments in Windows services but haven't had any luck with this yet.