Skip to Content

conversion file formula not working

I have the below scenario.. (BPC NW 7.5 Version)

in flat file for cost center dimension, i have values as

1. 65-adm-01

2. 65-fa-01

where as bpc costcenter dimension wont accept the symbol "-" (hyphen) . i want to conver the above into ("-_) (underscore)

1. 65_adm_01

2. 65_fa_01

i tried giving the below in converison file and also in the transformation file i have written CONVERSION_INTERNAL = YES

external | internal | formula

-


|--


|--


  • | * | js: %external%.replace("-", "_");

it is not working..am i missing somethgin.... Pls advice.. Thank you..

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 23, 2011 at 06:55 PM

    Hi,

    Please try two things.

    1. remove CONVERSION_INTERNAL = YES

    2. external | internal | formula

    -


    |--


    |--


    • | js: %external%.replace("-", "_"); |

    So it should not be in the formula.

    Formula is just for calculation.

    Regards,

    James Lim

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.