cancel
Showing results for 
Search instead for 
Did you mean: 

MessageTransformBean, Blank XML Tags

NishantChavan
Participant
0 Kudos

Hi Experts,

I have a interface for to convert the Fixed length file into XML, I am not using mapping, its simple conversion which I am doing using MessageTransformBean, if the last fields are blank then XML is generating without the tags ( I am expecting empty tags). When i try to remove parameter "xml.lastFieldsOptional" then its failing in PI and not generating XML. Is there any other parameter present for this bean?

Thanks,

Nishant

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

xml.lastFieldsOption is depreciated. try below paramter with "add" value


xml.missingLastFields=ignore|add|error

If the inbound structure has less fields than specified in the configuration then the XML outbound structure is created as follows:

■  ignore

Outbound structure only contains the fields in the inbound structure

■  add

Outbound structure contains all fields from the configuration; the fields missing in the inbound structure are empty.

■  error

Conversion is terminated due to the incomplete inbound structure. An error message is displayed.

Reference :

Answers (1)

Answers (1)

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Nishant,

Can you try using missingLastFields and the value as add.

Regards

former_member184720
Active Contributor
0 Kudos

Vishnu - Again, how is it different from what has been suggested?

This is not the first time i believe. Follow SCN rules

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Hareesh,

It's purely coincidence as I have already read the blog which talks about references between MTB & FCC. So, when I saw this query, I was checking for this blog, so hence after replying to the query, I came across you that already posted...

former_member184720
Active Contributor
0 Kudos

If someone has already replied, you don't need to suggest it again(echo with that person).

You are always welcome to add anything in addition but no point in summarizing the same answer.

pvishnuvardan_reddy
Active Contributor
0 Kudos

HI Hareesh,

Yes, I completely agree with you on this.

After replying, the post has updated with the replies. So, coming forward, I will always reply to the updated post..