I'm a bit perplexed, but maybe I'm being too ambitious. I am trying to combine a year field from a column in my data file with 12 data columns for each month of that year using *MVAL to pick up those columns. Basically I want to pull from the file with a result like 2014P1 and then use a Time conversion to make it 2014.OCT.
I have found that the Mapping statement *Col(1)+*MVAL(25:36) does not work, but reversing it does, i.e. *MVAL(25:36)+*Col(1). This brings the small problem in the conversion file of making P1* convert for both P1 and P10, so to solve this I added +*Str(.) in the middle of the mapping statement. This brings results like P1.2014 and P10.2014 to be converted in the conversion file.
After several attempts the conversion I ended up with is:
EXTERNAL P1.* : INTERNAL *.OCT
EXTERNAL P2.* : INTERNAL *.NOV etc etc to P12
When validating the Transformation file it returns the error:
Input string was not in a correct format
Validation with data file failed
[The conversion file validated and processed with no problems, even with some VB added to reduce the year by 1 in the first three Periods.]
The strange thing is that the Rejected List is not greyed out, but it is completely empty - usually this error generates some rejected items that you can then learn from and revise your mappings or conversions.
If I change the conversion to repeat the * after the month, *.OCT*, then I do get rejections that correctly tell me that the conversion does not match my time id's. I see 2014.OCT2014 in the rejected items. This confirms that the correct part is being picked up by the conversion *.OCT, but that for some reason it is not accepted.
Running this for an Import in Data Manager also fails - this is not a bug in the transformation validation routine.
So, my questions are:
- am I doing something obviously wrong? or
- am I being too ambitious with *MVAL? or
- should this work, so that a dynamic conversion for any year can be set up - in other words is this a bug?
We are running BPC v10 MS SP12 with EPM SP16. I attach my Transformation file and the Time conversion.
Thanks
Chris