You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

epmautomate.bat flag -d not available when running Powershell?

Summary:

I need to redirect the output from "epmautomate runIntegration" to a file when executing from Powershell, but am getting an error. The output file does get generated.

When running from a command batch file, I am able to redirect the output to a file without error.

Content (please ensure you mask any confidential information):

$ret = &$epmAutomate $JobType $JobName importMode=Replace exportMode=Merge periodName="{$periodStart}{$periodEnd}" -d 2>&1

At C:\...\Bin\Load_CY_LOCFX_PSActuals.ps1:204 char:8

+ $ret = &$epmAutomate $JobType $JobName importMode=Replace exportMode= ...

+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  + CategoryInfo     : NotSpecified: (EPMAutomate version is 23.12.26:String) [], RemoteException

  + FullyQualifiedErrorId : NativeCommandError


Version (include the version you are using, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!