`"object variable or with block variable not set" error happenes when running DTW schedule job.
The format of the bacth file(*.bat) is not correct.
To run DTW schedule successfully,the batch file should keep below rules:
- Use "" mark to inculde the full path of DTW.Especially when space is inculed in the full patch.Example: "C:Program FilesSAPData Transfer WorkbenchDTW"
- Put the xml file under a folder where space is not inculded in the full path.Example: "D:Job" is OK."C:Documents and Settings" will cause error.
- Do NOT use "" mark to inculde the full path of xml file.
- Run all the commands of the batch file in command line(cmd) to ensure they can be executed correctly.
Below is a sample of correct batch file:
cd "C:Program FilesSAPData Transfer Workbench"
DTW -s d:JobsDailyOrders.x