«JCA Binding run 'Write' reference operations have to: translation error.»

Hi, I'm reading a file delimited with an incoming file adapter, I used a mediator to the records of the road to the outgoing file adapter. My input.txt file contains 10 recordings such as Fname, Lname.I have used the native format generator to generate xsd. To achieve the transformation, the Mediator, I have traced only the source to traget Fname using a foreach loop. I am trying to publish documents in batches of 2 then I configured adapter of incoming file accordingly. My incoming file adapter reads the first two records and the same is visible to the em console mediator instance (payload), I'm even able to see the first two records is there transformed the load transformed in the details for instance of mediator but the outgoing file adapter, I get an error saying:

Error calling operation 1 channel 'write' on the service target "writeFile".

Exception occurred when the link was invoked. Exception occurred during invocation of the JCA binding: "JCA binding run 'Write' reference operations have to: translation error.» Translation error. Error message in native format translation. Please ensure that the payload for the outbound interaction conforms to the schema. ". The called JCA adapter threw an exception of resource. Please review the error message above carefully to determine a resolution.


When I map the Fname and Lname in the mapping of xsl file, I get the result. But I need only one field to the i: e the Fname and Lname the outfile.

Below are the details of the interface:

My Flow Interface: InboundFileAdapter - ReadsFile-> Medaitor - Transformation-> OutboundFileAdapter - writesFile


Entrance of payload (comma-delimited text file)

Brad, Pitt

Keanu Reaves

Martin, Lannoy

Johnny, Depp

.

.

etc.

etc.

Payload schema definition:

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

" < xsd: Schema container = ' http://www.w3.org/2001/XMLSchema "

' xmlns:nxsd = ' http://xmlns.Oracle.com/pcbpel/nxsd "" "

' xmlns:tns = ' http://targetNamespace.com/ReadFile "

" targetNamespace = ' http://targetNamespace.com/ReadFile "

elementFormDefault = "qualified".

attributeFormDefault = "unqualified".

nxsd:version = "NXSD".

nxsd:stream = "chars".

nxsd: encoding = "US-ASCII" >

< xsd: element name = "Root Element" >

< xsd: complexType >

< xsd: SEQUENCE >

< xsd: element name = "Employee" minOccurs = "1" maxOccurs = "unbounded" >

< xsd: complexType >

< xsd: SEQUENCE >

< xsd: element name = "Pnom" type = "xsd: String" nxsd:style = 'completed' nxsd:terminatedBy = ',' nxsd:quotedBy = "' & quot;" / > "

< xsd: element name = "Lname" type = "xsd: String" nxsd:style = 'completed' nxsd:terminatedBy = nxsd:quotedBy ' ${eol} "=" "& quot;" / > "

< / xsd: SEQUENCE >

< / xsd: complexType >

< / xsd: element >

< / xsd: SEQUENCE >

< / xsd: complexType >

< / xsd: element >

< / xsd: Schema >

XSL map:

< xsl: template match = "/" >

< imp1:Root - item >

< xsl: for-each select = "/ imp1:Root - element / imp1:Employee" >

< imp1:Employee >

< imp1:Lname >

< xsl: value-of select = "imp1:Lname" / >

< / imp1:Lname >

< / imp1:Employee >

< / xsl: foreach >

< / imp1:Root - item >

< / xsl: template >

< / xsl: stylesheet >

Please help me with the error mentioned above and if above transformation is possible using a mediator instead of BPEL

Kind regards

SAIF

Hi Axel, thanks for your response.

I got the result following your suggestion, but I could not understand the logic behind why we need to map all segments of the xsl file when we use same xsd to the incoming and outgoing file adapter. Also, when I add in my xsl file like u did in the xsl above, I find the side Fname source not mapped to Fname side destination in design mode.

So, if you could please explain the logic to do these steps and why can't we just card only the fields that are necessary for the output (if we rae using xsd even).

Kind regards

SAIF

Tags: Fusion Middleware

Similar Questions

Maybe you are looking for

  • Reset onboard computer

    IM giving my computer to someone. How it reset to the factory settings?

  • Download of fash Player plugin 11.7.700.202 did not finish.

    When I updated to Firefox 21.0, I found that Flash Player plugin 11.7.700.202 did not work. Videos would not play. Had no problems before the update to Firefox. I downloaded a new copy of the player, but the download would not end. An error message (

  • NETGEAR cd3000dv2rg on twc, what do mean?

    Error codes Time priority descriptionTue Feb 16 18:08:59 2016 warning (5) Admin login authentication failTue 16 Feb 09:23:30 error 2016 (4) Miss BP Configuration setting Type TLV: 17,8; CM - MAC is c4:04:15:37:d1:50;. CMTS-MAC = 00:01:5 c: 64:92:66;

  • Equium L20-197: no not line-in jack - how to record from an external audio source

    Hello I am generally very happy with my Equium L20, but I now find some trouble which I assume are from cost reduction. For example, there are no micro shipped, so need to buy one for Voip purposes. And I would like to use this notebook to record fro

  • Choose between the control of sting and constant string.

    Hello I need help with a program. I've attached what I'm trying to do here. There are 2 cases init and Add. I enter a value chain in the chain I / p or control channel and click on add, it will add cases where the value of the entered string goes in