on 11-23-2016 3:50 PM
Hi Experts,
I've been trying to load BW Master Data from BW to BPC Dimension through Transformation/Conversion File.
Transformation File:
Conversion File - NODENAME:
Conversion File - ID:
My BW InfoObject:
I've tested the command through http://www.w3schools.com/js/tryit.asp?filename=tryjs_string_replace, an it works there.
When I try to Execute through Run Package, it gives me an error:
----
Task name CONVERT:
No 1 Round: Error in Admin module or a component used by Admin module
Dimension member TOT-ADM/MG is an invalid member ID in dimension TEST_ORGSTRUC
model: TEST_PAYROLL. Package status: ERROR
----
I've tested for usual characters and the command worked. I've tested only for second record and it loaded without conversion, as intended.
What can be done to convert correctly this kind of value?
Regards,
Maurício.
The correct js for ID:
js:%external%.toString().replace(/\s+/g,"").replace(/\/+/g,"")
And remove NODENAME - incorrect here!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Or using [...]
js:%external%.toString().replace(/[\s\/]/g,"")
In [] 2 symbols are defined:
\s - space
\/ - / (has to be used prefixed with \)
g - all matches of each symbol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, but what do you mean by NODENAME in CONVERSION section???
Looks like you are loading master data, not the hierarchy - 2 separate processes!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I understand that. I've already read the articles.
This part of transformation file is a test to understand the transformation file actions, because I was unable to find the problem with my javascript code. I thought it was a problem looking for the correct field to convert, that's the reason for the test.
I tried removing the first replace line (removing spaces) and it worked. What is the best practice when you need to remove more than one character?
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.