cancel
Showing results for 
Search instead for 
Did you mean: 

File Content Conversion

Former Member
0 Kudos

Hi,

I am doing File Content Conversion.

This is the error coming in Communication Channel.

Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'Emp_Header.fieldFixedLengths' or 'Emp_Header.fieldSeparator' is missing Mandatory parameter 'Emp_Header.keyFieldValue': no value found Mandatory parameter 'Emp_Header.fieldNames': no value found .

Any suggestion will be appreciated.

Thanks

Rabi

Accepted Solutions (1)

Accepted Solutions (1)

former_member191435
Contributor
0 Kudos

Hi Rabi,

You have to mention keyfield value in Content conversion parameter. If you still face any issue just paste ur sender structure.

Thanks,

Enivass

Former Member
0 Kudos

Hi,

This is file content.

1,MM0155,RABI

2,21,40,100

2,22,40,200

3,360,300

And i have written in following way

EMP_HEADER.fieldNames :KEY,EMP_ID,EMP_NAME

EMP_HEADER.endSeparator : 'nl'

EMP_HEADER.fieldSeparator :,

EMP_HEADER.keyFieldValue :'1

EMP_HEADER.keyFieldInStructure :ignore

EMP_HEADER.processFieldNames :fromConfiguration

But it is showing same error again.

Thanks

Rabi

Former Member
0 Kudos

Hi,

In your content conversion you have given

EMP_HEADER.processFieldNames :fromConfiguration, its not processFieldNames

EMP_HEADER.fieldNames: mention all your field names here in the same sequence

Regards,

Sunitha

Former Member
0 Kudos

Hi,

The parameter you used EMP_HEADER.processFieldNames :fromConfiguration should be

EMP_HEADER.processConfiguration : FromConfiguration. Check this parameter and provide more details about the structure so that we can help you further.

Regards,

Deepthi Premnath

former_member191435
Contributor
0 Kudos

Hi rabi,

EMP_HEADER.fieldNames :KEY,EMP_ID,EMP_NAME

EMP_HEADER.endSeparator : 'nl'

EMP_HEADER.fieldSeparator :,

EMP_HEADER.keyFieldValue :'1

EMP_HEADER.keyFieldInStructure :ignore

EMP_HEADER.processConfiguration : FromConfiguration

Use above parameters in FCC you will get. If you still face an issue let me know.

Thanks,

Enivass

Former Member
0 Kudos

Hi Deepthi,

I am following the exact structure that is in the example of SapTechnical.com and also same additional parameters from it.

This is my data type structure for both sender and receiver.

RECORD

EMP_HEADER

KEY

EMP_ID

EMP_NAME

EMP_WEEKLY_DET

KEY

WEEK

WORK_HRS

WAGES

EMP_SUMMARY

KEY

TOT_HRS

TOT_WAGES

And above additional parameters I have defined as I have mentioned.

Will you please help to solve this??

Thanks

Rabi

Former Member
0 Kudos

Hi,

I have changed as you mentioned.But same error is coming.

Now I have just posted the data type structure and the flat file structure.

So any suggestion regarding this will be appreciated .

Thanks

Rabi

Former Member
0 Kudos

Hi Rabi,

If you have mentioned same parameters as in SAPTechnical.com, i would request you check whether you mentioned the parameters properly because it is case-sensitive.

Regards,

Deepthi Premnath

Former Member
0 Kudos

Hi,

Check whether you have given the correct message type, and namespace..

Once verify the xml content after content conversion in SXMB_MONI and then pick the xml file from there & use it in Message Mapping.

Regards,

Sunitha

Former Member
0 Kudos

Hi Deepthi,

Parameters should be maintained in sender channel only or it should be mentioned in receiver channel also.

And Parameters means only field names or anything else?

Thanks

Rabi

Former Member
0 Kudos

Hi Rabi,

If your source file and the target file expected format is text then fcc parameters should be maintained in sender and receiver communication channel.

FCC parameters are related to the structure and the values in the text file so, check whether the fieldnames are mentioned, the order of the fields should be same and the check the length of the fieldvalues.

Can you tell me your exact requirement aso that i can help you further.

Regards,

Deepthi Premnath

Former Member
0 Kudos

Hello ,

Thanks to you all.

Now this problem is solved.

As I had told you , I am doing File Content Conversion from a txt file to xml file.

In the processing mode I am using "delete" . So it is picking file from source folder,

but not saving the xml file in the target directory .

My receiver communication channel is showing green and the following message.

"Communication channel is correctly configured and started ".

Can you give any idea please??

Thanks

Rabi

Former Member
0 Kudos

Rabi,

check the message in RWB and see the error message.

--divyesh

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks to you .

This is solved

Former Member
0 Kudos

this is a very common exception... u have to specify KeyFiled value when u use multiple recordset structures...

make a search on SDN u will find plently of blogs and links for the same.