I have created a workflow that uses a SysCommand to check if a given network directory exists, and if not, create it so that we can add files to it.
The SysCommand references a batch file, which looks like this:
@echo off
set myDirName=%1
IF exist %myDirName% ( echo %myDirName% exists ) ELSE ( mkdir %myDirName% && echo %myDirName% created)
Where %1 is a parameter passed in. When running this locally from the designer, it works as expected. However, when uploaded to our IPA server, we get this error:
Executing System Command Activity createDir...
Full system command: cmd.exe /C "E:BatchFilesForIPACheckDirectory.bat" \networkLocationgroupfiles1
Command output (combined): The user name or password is incorrect.
Command error output: The user name or password is incorrect.
createDir_errorOutput = The user name or password is incorrect.
System command error: command returned error code 1
Variables:
lastReturnMessage(Type=String) = System command error: command returned error code 1
lastErrorCode(Type=Integer) = 10
lastOutputData(Type=Object) = The user name or password is incorrect.
lastInformationCode(Type=Integer) = 1
createDir_errorCode = 10
createDir_informationCode = 1
createDir_returnMessage = System command error: command returned error code 1
createDir_outputData = The user name or password is incorrect.
Activity name:persDir id:6 failed @ 06/14/2024 04:11:34.407 PM
Executing Assign90 because activity persDir encountered an error
This error telling us we need to pass in credentials to create the directory, but how?
edit: fixing the wording of my question