Hi,
We use BPC 10.0 MS with EPM Addin SP 16 Patch 1.
Our requirement is to hardcode (or fix) the Transformation File in the Import Package. For this purpose I have copied the standard Import Package and then I modified the script by adding the path to the Transformation File that I want the package to always call (Line 10). I also commented the Prompt to disable the screen which asks for the Transformation File (Line 3).
This is the modified script -
DEBUG(ON)
PROMPT(INFILES,,"Import file:",)
'PROMPT(TRANSFORMATION,%TRANSFORMATION%,"Transformation file:",,,Import.xls)
PROMPT(RADIOBUTTON,%CLEARDATA%,"Select the method for importing the data from the source file to the destination database",0,{"Merge data values (Imports all records, leaving all remaining records in the destination intact)","Replace && clear data values (Clears the data values for any existing records that mirror each entity/category/time combination defined in the source, then imports the source records)","Append data values"},{"0","1","2"})
PROMPT(RADIOBUTTON,%RUNLOGIC%,"Select whether to run default logic for stored values after importing",1,{"Yes","No"},{"1","0"})
PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when importing data.",1,{"Yes, check for work status settings before importing","No, do not check work status settings"},{"1","0"})
INFO(%TEMPFILE%,%TEMPPATH%%RANDOMFILE%)
TASK(CONVERT data,INPUTFILE,%FILE%)
TASK(CONVERT data,OUTPUTFILE,%TEMPFILE%)
TASK(CONVERT data,CONVERSIONFILE,\FinanceEnv\SalesModel\DataManager\TransformationFiles\BPC Support\NationalData.xls)
TASK(CONVERT data,Environment,%Environment%)
TASK(CONVERT data,Model,%Model%)
TASK(CONVERT data,STRUSERNAME,%USER%)
TASK(LOAD AND PROCESS,Environment,%Environment%)
TASK(LOAD AND PROCESS,Model,%Model%)
TASK(LOAD AND PROCESS,USER,%USER%)
TASK(LOAD AND PROCESS,DATATRANSFERMODE,4)
TASK(LOAD AND PROCESS,CLEARDATA,%CLEARDATA%)
TASK(LOAD AND PROCESS,FILE,%TEMPFILE%)
TASK(LOAD AND PROCESS,RUNTHELOGIC,%RUNLOGIC%)
TASK(LOAD AND PROCESS,CHECKLCK,%CHECKLCK%)
------------------------------------------------------
However, on running this package I get the error -
Transformation file does not exist [\FinanceEnv\SalesModel\DataManager\TransformationFiles\BPC Support\NationalData.xls]
I have checked and the Transformation File exists. I have validated it a number of times.
What am I missing? Please advise.
Thank you
Raj