cancel
Showing results for 
Search instead for 
Did you mean: 

removing zero in conversion file

former_member269849
Participant
0 Kudos

Hi experts ,

I'm trying to remove zeros in master data of a characteristic using the

js:parseInt(%external%) function.

but i'am getting the error duplicate ID and NaN.

here is my conversion file

what do you suggest ?

regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Kudos

What do you mean by this sentence:

"should I use external selection without the file selection ?"

I am talking about:

former_member269849
Participant
0 Kudos

i wanted to say without the conversion file ?

former_member186338
Active Contributor
0 Kudos

Just to remove leading zero's you don't need to use conversion file! Why not to test yourself?

former_member269849
Participant
0 Kudos

I tried to load with external format but i'm having this error

former_member186338
Active Contributor
0 Kudos

Sorry, but why do you think I can help without ANY information provided? No transformation file, no selection screenshots, no 0MATERIAL structure...

It looks like a joke - I have an ERROR, how to solve it?

In general try to limit selection only to few members and look on results...

former_member269849
Participant
0 Kudos

Sorry Vadim.

here is the transformation file

my selection:

0material structure:

the error:

please if you need any additional information don't hesitate to mention it .

regards

former_member186338
Active Contributor
0 Kudos

Sorry, but the transformation file is strange...

Where is:

ID=ID

???

former_member269849
Participant
0 Kudos

It can work without ID=ID i already did it if we don't have a compounding ID.

here is the validation of the ttransformation file :

with internal format:

validation with external format:

I've added ID=ID but it'snot working.

former_member186338
Active Contributor
0 Kudos

Try DELIMITER=TAB

former_member269849
Participant
0 Kudos

Hi vadim,

it's not working even with with delimiter =TAB.

don't you find it strange that the file is successfully validated with internal format and and we have error with external format ?

PS:I tried the samething with another characteristic and it worked perfectly.

should I activate something on bW?

former_member269849
Participant
0 Kudos

and when I tried it just for one value I put in selection ID=4000 .

the file is validated successfully , do you think that the problem is in some items and it's blocking the loading of all other values?

Answers (2)

Answers (2)

former_member186338
Active Contributor
0 Kudos

"and when I tried it just for one value I put in selection ID=4000 .

the file is validated successfully"

Then add more and test...at some point you will get an error - you will understand the reason.

former_member269849
Participant
0 Kudos

Thank you Vadim for your help 😃

former_member186338
Active Contributor
0 Kudos

Sorry, but not clear what are you doing!

You are loading master data?

You are loading it from ...?

What do you want to achieve with parseint?

former_member269849
Participant
0 Kudos

Hi Vadim,

I'm loading master data from BW to BPC .

Example:

000000000000001001 what i want to load to bpc 1001.

regards

former_member186338
Active Contributor
0 Kudos

To remove zero's use external selection when loading.

former_member269849
Participant
0 Kudos

should I use external selection without the file selection ?