cancel
Showing results for 
Search instead for 
Did you mean: 

issue in content conversion .fieldSeparator

Former Member
0 Kudos

Hello !!

I am trying to post a file with * delimiter and for that I am using the below content conversion :

record.fieldNames -


f1,f2,f3,f4,f5

record.fieldSeparator -


*

all the fields under record are optional. When the sending system is sending the data as

<record>

<f1> 111</f1>

<f5> 555 </f5>

</record>

The file is created as follows :

111*555

I want that file should be created as

111*****555

"***" for the missing f2,f3,f4 fields , so that the receiving system wouldnt take 555 as f2 field value.

Thanks

Peeru

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

send a space from MM, then CC will place a * in f2,f3,f4.

in messagmapping add mapwithdefault function for all the fields and give a space by doubleclicking on the funtion, when ever the filed is empty MM will send a blank space to adapter and adapter will place a *.

Try this and let us know if you face issues.

Regards,

Sukarna.Chirumamilla

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Peeru,

Not sure how are you converting this data but to get this, you need to have empty tags.

<record>

<f1> 111</f1>

</f2>

</f3>

</f4>

<f5> 555 </f5>

</record>

If you are using any XSD or WSDL to do this mapping, that should take care of this

Thanks

-Kulwant

Also in mapping you can specify to create EMPTY element if no input is found. That way this is easy

Edited by: Kulwant Bhatia on Nov 6, 2008 5:20 PM

justin_santhanam
Active Contributor
0 Kudos

Peeru,

That's not possible. In your mapping program you want to make all the fields present even if they don't have values. In that case you can have 1****555

raj.