Skip to Content
0
Dec 06, 2007 at 02:38 PM

** File Content Conversion Error in Receiver CC - How to solve this?

18 Views

Hi friends,

My target structure looks like below.

EmployeeJobDetails --> Message Type

JobCode --> Node

EmployeeNumber xsd:string

Domain xsd:string

JobTrack --> Node

Department xsd: string

Position xsd: string

I use the FCC parameters in the receiver CC as below:

Recordset Structure: JobCode,JobTrack

JobCode.fieldSeparator = |

JobCode.endSeparator = 'nl'

JobTrack.fieldSeparator = |

JobTrack.endSepartor = 'nl'.

Because, we want the output like below

1099|Raja

Accts|JuniorAccountant

1100|Ram

HR|Recruiter

like this.

In this scenario Source is XML and target is txt file.

I am using XSLT Mapping. The FCC works fine, if my source input file contains some records. But, when we send empty source XML file as below

-


<?xml version="1.0" encoding="UTF-8"?>

<EMPLOYEE_DATA/>

-


Mapping works fine. Message is processed successfully in SXMB_MONI. The payload in response also comes with Message Type name like below

<EmployeeJobDetails namespace >

</EmployeeJobDetails>

While convert this, the system throws below error.

Error Message:

-


Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'

-


Friend, how to convert this when source XML is empty.

But, if we remove JobTrack node in target strucutre and remove the JobTrack parameters in CC, then if we send the same empty XML file FCC is working fine and we get the target text file 0 KB. (Amazing !!)

But, in the first case, how to solve the issue?

Kind Regards,

Jegathees P.