on 08-02-2007 9:07 AM
<p ct="TextView" class="urTxtStd" style="white-space:nowrap;">Hello,<br>we have problem with file content conversion on file (FTP) sender<br>adapter when reading flat delimited file.<br><br>Error:<br>Conversion of file content to XML failed at position 0:<br>java.lang.Exception: ERROR converting document line no. 2 according to<br>structure 'P':java.lang.Exception: ERROR in configuration: more<br>elements in file csv structure than field names specified!<br><br>Details:<br>We have windows machine and line in a file is ended with CRLF.<br>We have PI 7.0 SP10, and following pathches:<br>SAPXIAF10P_3-10003482<br>SAPXIAFC10P_4-10003481<br><br><br>Adapter Type: File<br>Sender<br>Transport Protocol: File Transfer Protocol (FTP)<br>Message Protocol: File Content Conversion<br>Adapter Engine: Integration Server<br><br>FTP Connection Parameters<br>Transfer Mode: Binary<br><br>Processing Parameters<br>File Type: Binary<br><br>Channel: IN_XXXXX_FILE_WHSCON<br><br>Input File: (WZ00008.DAT)<br>N|0025013638||0000900379|0000153226|2007-07-24|2007-07-24||||<br>P|000030|2792PL1|2303061|1|KRT|||||<br><br>Content Conversion Prameters:<br>Recordset Structure: N,1,P,<br>Recordset Sequence: Ascending<br><br>Key Field Name: KF<br>Key Field Type: String<br><br>N.fieldNames: N1,N2,N3,N4,N5,N6,N7,N8,N9,N10<br>N.fieldSeparator: |<br>N.endSeparator: 'nl'<br>N.processFieldNames: fromConfiguration<br>N.keyFieldValue: N<br><br>P.fieldNames: P1,P2,P3,P4,P5,P6,P7,P8,P9,P10<br>P.fieldSeparator: |<br>P.endSeparator: 'nl'<br>P.processFieldNames: fromConfiguration<br>P.keyFieldValue: P<br><br><br>At the same time we have another channel very similar to this on which<br>works:<br><br>Channel: IN_XXXXX_FILE<br><br>Input File: (PZ000015.DAT)<br>N|2005-11-25|13:01||<br>P|0570001988|2005|305|6797PL1|2511091|3500|SZT|2005-11-<br>25|1200|G002|1240|G002|||<br><br><br>Content Conversion Prameters:<br>Recordset Structure: N,1,P,<br>Recordset Sequence: Ascending<br><br>Key Field Name: KF<br>Key Field Type: String<br><br>N.fieldNames: N1,N2,N3,N4<br>N.fieldSeparator: |<br>N.endSeparator: 'nl'<br>N.processFieldNames: fromConfiguration<br>N.keyFieldValue: N<br><br>P.fieldNames: P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15<br>P.fieldSeparator: |<br>P.endSeparator: 'nl'<br>P.processFieldNames: fromConfiguration<br>P.keyFieldValue: P<br><br>Converted file:<br><?xml version="1.0" encoding="utf-8"?><br><ns:PZ_MT xmlns:ns="<a href="http://xxxxx.yyyyy.hr">" target="_blank" title="Open this link in a new window">http://xxxxx.yyyyy.hr"></a><br><PZ><br> <N><br> <N1>N</N1><br> <N2>2005-11-25</N2><br> <N3>13:01</N3><br> <N4></N4><br> </N><br> <P><br> <P1>P</P1><br> <P2>0570001988</P2><br> <P3>2005</P3><br> <P4>305</P4><br> <P5>6797PL1</P5><br> <P6>2511091</P6><br> <P7>3500</P7><br> <P8>SZT</P8><br> <P9>2005-11-25</P9><br> <P10>1200</P10><br> <P11>G002</P11><br> <P12>1240</P12><br> <P13>G002</P13><br> <P14></P14><br> <P15></P15><br> </P><br></PZ><br></ns:PZ_MT><br><br>And, if we remove last delimiter before CRLF in WZ00008.DAT file then<br>file works, but we dont't have fields N10 and P10 in a XML converted<br>file.<br><br>Converted file:<br><?xml version="1.0" encoding="utf-8"?><br><ns:WZ_MT xmlns:ns="<a href="http://xxxxx.yyyyy.hr">" target="_blank" title="Open this link in a new window">http://xxxxx.yyyyy.hr"></a><br><WZ><br> <N><br> <N1>N</N1><br> <N2>0025013639</N2><br> <N3></N3><br> <N4>0000900379</N4><br> <N5>0000153226</N5><br> <N6>2007-08-01</N6><br> <N7>2007-08-01</N7><br> <N8></N8><br> <N9></N9><br> </N><br> <P><br> <P1>P</P1><br> <P2>000010</P2><br> <P3>0212PL1</P3><br> <P4>2007071</P4><br> <P5>1.000</P5><br> <P6>KRT</P6><br> <P7></P7><br> <P8></P8><br> <P9></P9><br> </P><br></WZ><br></ns:WZ_MT><br><br>Regards,<br>Mladen Kovacic</p>
Hi,
In FCC use this
<RecordSetStructure>.additionalLastFields = ignore.
Cheers,
*RAJ*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
N yeah itz available from SP 19 Onwards.
<b>Cheers,
*RAJ*</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
it seems that we have problem with SAP XI AF CPA Cache.
We make this changes and after this AF Cache stops working.
In the Visual Administrator, in service SAP XI AF CPA Cache, set the SLDAccess parameter to false
Save your entry and start the service
In service SAP XI AF CPA Cache, check that the cacheType parameter has the value DIRECTORY
In service SAP XI Adapter: XI, enter values for:
o xiadapter.isconfig.url - http://xidev:8038/sap/xi/engine?type=entry
o xiadapter.isconfig.username - XIAFUSER
o xiadapter.isconfig.password
o xiadapter.isconfig.sapClient - 001
o xiadapter.isconfig.sapLanguage - en
On the Integration Server, use transaction SMICM to check that you have entered the correct URL for the Integration Server.
On the Integration Server, use transaction SU01 to create a new user XIAFUSER
Assign the role SAP_XI_AF_SERV_USER_MAIN to the user XIAFUSER
In the Visual Administrator, check whether the user synchronization was successful
Use the new user to log on to the Integration Server and change the initial password to master password
Any idea for SAP XI AF CPA Cache update?
Hello all,
We restored SAP XI AF CPA Cache as it was before
In the Visual Administrator, in service SAP XI AF CPA Cache, set the SLDAccess parameter to true
SLD.selfregistration.hostName=xidev
SLD.selfregistration.httpPort=53800
Save your entry and start the service
After this content conversion works OK.
Thanks all
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.