cancel
Showing results for 
Search instead for 
Did you mean: 

File Name Error

vijender_p
Active Participant
0 Kudos

Hi all ,

Currently in my scenario ,am using dynamic configuration in the which i have use serial counter and also format by example to reflect file name.

But, it is throwing error  in the name . my requirement is that  it should not get the number format with the 1,940 and have to be only 1940 without comma separator.

please help me out !!!

regards,

vijender

Accepted Solutions (1)

Accepted Solutions (1)

vijender_p
Active Participant
0 Kudos

OK thanks Vishu ....

You mean to say like this only right .

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hii Vijender,

Yes.

Try this out and let me know if you are facing issues.

Regards

Vishnu

former_member229127
Participant
0 Kudos

Hi viender,

good

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Vijay very good

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Vijender,

As suggested by Inaki in the above reply, either you can achieve this in udf like below


fileName= fileName.replace(",", "");

or

Just after format number function in the graphical mapping, use replace String function, for the first argument of replace function pass the output of format number, for the second argument use Constant function of value ,  and for the third argument use Constant function of  BLANK value, and the remaining graphical mapping remains as it is.

Try any one of the above.

Regards

Vishnu

vijender_p
Active Participant
0 Kudos

Thanks for the reply !!!

But when am using the replace string in the which 1st argument is format number and in the 2nd am passing the value of the function and 3rd function am using the constant value as blank .

please correct me if am wrong !!!


pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Vijender,

By BLANK value I mean, don't give any value in the constant function.

In the second argument, pass , as the value in the constant function.

Regards

Vishnu

iaki_vila
Active Contributor
0 Kudos

Hi Vijender,

You can ommit all the commas from your filename with:


fileName= fileName.replace(",", "");

Regards.

vijender_p
Active Participant
0 Kudos

Hi vila ,

Thanks for the reply .

You mean to say i have to change in the Dynamic configuration or have to write separator
please can you elaborate .

regards,

vijender 

iaki_vila
Active Contributor
0 Kudos

Hi Vijender,

Yes, before the instruction conf.put.

Regards