I've tried pushing data from TM1 directly into Redshift via ODBC connection. It works however it takes way too long. I've been offered an alternative solution by the data engineers.
I am exporting the required data from TM1 into a CSV and then executing a batch file to push the data up into the S3 bucket
If i execute the batch file from the TM1 server it works fine however i am having issues trying to execute the command from the TI process
TM1:
Code: Select all
sCommand= 'cmd /c E:\Scripts\upload_core_to_s3.bat';
ExecuteCommand(sCommand,0);
Code: Select all
forfiles /P "E:\Temp\Core_SKU" /M *.csv /D +0 /C "cmd /c aws s3 cp @path s3://upload-to-bi-redshift/merchandising-core/"
Any help/advice on this would be greatly appreciated
Thanks!