I am currently working with Dynamics SL 2015 where i am trying to automate the generation of Sales Orders on a scheduled basis.
I have created a working Transaction import process using the relevant control and data files and I can verify it works as expected when I manually run them in the Transaction import screen.
Where i am having issues is in how to automate this task to run in the 2 methods I have attempted thus far.
In method 1 I tried to use the Application Server - where I set up all the parameters in the Transaction Import as I normally would. Then submit it to the Application Server to run at a scheduled time.
When the time comes the Application Server appears to make the call by opening the Sales Order screen but then it does not enter any data. The process just keeps running indefinitely until it is cancelled.
In method 2 I tried using a scheduled batch script below:
(as referenced from this Link )
if exist "S:\Transaction import\upload.csv" (
"S:\OM\4010000.exe" [TI]TM=3 [TI]TC="S:\Transaction import\SalesOrderControlFile.CTL" [TI]TD="S:\Transaction import\upload.csv" [TI]TO="S:\Transaction import\Output.txt" [TI]TL=2 [TI]TE=1 [TI]Minimize=N
)
All the paths are correct and the batch file calls up the Sales Order screen, multiple other screens appear to flash then it closes the Sales order screen with nothing being written.
Would anyone be able to point me in the right direction for rectifying these issues or point me to a better solution?