cancel
Showing results for 
Search instead for 
Did you mean: 

input is 10 digit date (dd/mm/yyyy) some times instead of date they will se

Former Member
0 Kudos

Hi Experts,

requirement is

input is 10 digit date (dd/mm/yyyy) some times instead of date they will send as space(10 digit). it should not fail in PI.

kindly help me on this.

regards

Elton

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use if else mapping.

If Field is Blank(Costant and 10 space) Then pass the same to target side

Or

Use the Date Trans function and convert the date

Answers (3)

Answers (3)

Shabarish_Nair
Active Contributor
0 Kudos

the standard datetrans function will not help you to handle exceptions hence as suggested by others, do the validation earlier before passing the value to datetrans or using direct mapping.

Former Member
0 Kudos

HI,

input is 10 digit date (dd/mm/yyyy) some times instead of date they will send as space(10 digit). it should not fail in PI.

input -> constant(10 space) -> equals ->if ->

then -> constant(date) ->target ( in taget side date is mandatary then pass constant value)

else -> input->target filed

thanks,

Former Member
0 Kudos

I have given like

if input equals to constant(space)

then constant(space)

else

input

eventhough it is failing.

regard elton

Former Member
0 Kudos

HI,

I have given like

if input equals to constant(space)

then constant(space)----


> here you have to pass constant date / system date

else

input

input -> constant(10 space) -> equals ->if ->

then -> constant(date) ->target

else -> input->target filed

thanks,

Former Member
0 Kudos

thank experts. it is working fine.

Former Member
0 Kudos

Hi,

You need to handle that externally.

If date.equals("          ") ----> Constant("") ---> Data(PI)
Esle
use the currently mapping!

Regards

Ramesh