Seeburger SFTP with conversion
Hi all,
I need to download simple xml structure form sap proxy to SFTP tab delimited file on SFTP server <<XXX>> on path <<YYY>>:
file structure:
<head>
<root>
<data1>
<data2>
<root>
<root>
<data1>
<data2>
<root>
</head>
localejbs/Seeburger/solution/sftp
localejbs/AF_Modules/StrictXml2PlainBean
localejbs/ModuleProcessorExitBean
parameters:
dataRec.fieldSeparator - \t
singleRecordType - dataRec
When using this on some SFTP server <<XXX>> (or using StrictXML2PlainBean module on FTP server) i got expected result on some path <<ZZZ>> with key <Z>.
data1 data2
data1 data2...
But for some paths <YYY> on that same SFTP server <<XXX>> (using key <X> ) this generates file
data 1 data2
... with lot of empty rows but file size is same as when generated correctly.
Tried using AF_Modules/MessageTransformBean also and got same result.
Have anybody have ever similar situation? Is this bug with SFTP adapter or something additional need to be configure in SFTP adapter?
When I put file manually on SFTP server it is there copied fine so no authorization or connection problem.
Best regards,
Nenad
Hi,
I tried also SimpleXML2Plain before with same result.
Problem I cannot explain is that on same SFTP server I have 2 different keys for 2 different paths. On one path\key works flawless and I leave CC as it is and change just key in SFTP adapter and path = on other path shows just first line and lots of spaces and empty rows (well in the middle of data there is some random data row) .
And there is no authorization or connection problem as I can simply manually copy new files.
Regards,
N.
Similar Messages
-
Seeburger SFTP - Message Transformation Bean Issue
Using Seeburger SFTP adapter to read a tab delimited file. File is being successfully read; however, content conversion need to be performed to convert the file content to XML. Thus, using Message Transformation Bean with the following module parameters.
Issue: It is reading the file as is u2013 there is not content conversion is being performed.
Processing Sequence:
1 localejbs/Seeburger/solution/sftp Local Enterprise Bean solutionid
2 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean mtb
3 localejbs/CallSapAdapter Local Enterprise Bean exit
Module Configuration:
mtb Transform.Class com.sap.aii.messaging.adapter.Conversion
mtb Transform.ContentType text/xml;charset=utf-8
mtb xml.conversionType SimplePlain2XML
mtb xml.documentName XXX_EXPENSES_mt
mtb xml.fieldContentFormatting trim
mtb xml.fieldNames FIELD1,FIELD2,FIELD3,FIELD4
mtb xml.fieldSeparator '0x09'
mtb xml.processFieldNames fromConfiguration
mtb xml.structureTitle RECORD
The following the noticeable details on CC:
Error type: TASK_ERROR >> Error date: 12/5/10 12:42 PM >> Description: Polling finished with errors. 1 file initiated. 1 file not polled due to errors.
Message initiated succesfully
Error type: TASK_ERROR >> Error date: >> Description: File <amex.dat> could not be polled from directory </usr/sap/interfaces/FTP1/send> on host <sapdv1ci>; Reason: removeFile: File xxx.dat could not be removed. SftpStatusCode: SSH_FX_NO_SUCH_FILE; Reason: No such file
Any help is greatly appreciated.
ThanksCheck the following...
1. Make sure you don't have any scripts running at your target folder.
Example: If you are reading your file from TEST folder make sure you don't have any scripts running here.
2. In File Setting section make sure you uncheck Delete file checkbok.
Regards
Srikanth Baki -
SFTP Connetnet Conversion Issue
Hi All,
I am using SFTP adapter with content conversion, it is failing with the following error:
Message initiation failed: Error during processing local bean: localejbs/AF/Modules/MessageTransformBean
Below are the details of the content conversion.
Thanks
Mahi.Hi All,
As an additional info, this is seeburger SFTP sender Adapter. -
MIME settings for SEEBURGER SFTP channel
Can we have MIME settings for SFTP, is Attachment option in SFTP seeburger adapter same as MIME extentions
Thanks Naveen for the reply..
I missed to mention that we are working on XI3.0 with SP19 and seeburger sFTP is 1.7.4
Looks like key exchange is working properly as after every restart of adapter all failed messages are processed successfully..
It is observed that if there is an idle time of 8-10 hours between last data transfer and current data transfer then this error occurs.
We have increased connection timeout and transmission timeout parameters also for sFTP properties in visual admin.
Thanks,
Minal
Edited by: Minal Vaidya on Oct 5, 2011 8:46 AM -
Error in Seeburger SFTP receiver in append mode.
Hi,
I am trying to do content conversion in Seeburger SFTP adapter at the receiver side and was successfully able to create the first CSV record.
I am using append mode in receiver adapter.
But when sent another record from sender; I got below error.
Always, first record gets processed successfully then second and subsequent records always fails.
Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.sap.aii.af.ra.cci.XIRecoverableException: >> Description: putFile: Target filename <out.txt>; Flags set: appending=<true>; ; Reason: Failed to convert Ace to the native form.>> Details: putFile: Target filename <out.txt>; Flags set: appending=<true>; ; Reason: Failed to convert Ace to the native form.>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMPONENT_ERROR>>Retryable: true>>Fatal: true, >> Description: putFile: Target filename <out.txt>; Flags set: appending=<true>; ; Reason: Failed to convert Ace to the native form.>> Details: putFile: Target filename <out.txt>; Flags set: appending=<true>; ; Reason: Failed to convert Ace to the native form.>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMPONENT_ERROR>>Retryable: true>>Fatal: true
Regards,
Anirudh.An update.
Error message "Unable to convert ACE to native format" means it is not able to convert A SCII C ompatible E ncoding to the native encoding which is used in file system.
I am unable to make head or tail of it... I am doing content conversion in adapter module tab and have specified Transform.ContentType = text/plain;charset=utf-8
The file which gets generated is of ANSI encoding and doesn't appear to be a problem as it works when the file gets generated for the first time.
Also, it works OK when I use unique file name in receiver adatper where 1 file for each record is generated.
The problem is only in append mode.
When checked in Seeburger RWB, there was inconsistency in file details for messages.
For the successful message, file details were:
File details
Host LTFBG-ANIRUD-PI.com
Path /out
File name OUT.CSV
Remote file name OUT.CSV
Detailed status description PUT command for file <OUT.CSV> has been performed successfully.
whereas, for failed messages it was:
File details
Host LTFBG-ANIRUD-PI.com
Path /out
File name null
Remote file name null
Detailed status description Error on send, will be retried
Could that be product error?
Has anyone faced this problem before?
regards,
Anirudh.
Edited by: Anirudh Vyas on Apr 10, 2009 8:31 PM
Edited by: Anirudh Vyas on Apr 10, 2009 8:45 PM -
Error in Seeburger SFTP : Cannot create pending keystore PENDING/SSH_hosts
Hi All,
I am developing a scenario where my sender is file and receiver is SFTP. It is pass through interface and to achive SFTP i used seeburger SFTP adapter. I generated the public from the certificate and shared the key with SFTP admin.
Now whe i test the scenario i facing the following error in the SFTP channel @ RWB. The error is
Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: javax.resource.ResourceException: >> Description: putFile: Could not connect to remote host; Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.HostVerificationException: Cannot create pending keystore PENDING/SSH_hosts/>> Details: putFile: Could not connect to remote host; Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.HostVerificationException: Cannot create pending keystore PENDING/SSH_hosts/>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: false>>Fatal: false, >> Description: putFile: Could not connect to remote host; Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.HostVerificationException: Cannot create pending keystore PENDING/SSH_hosts/>> Details: putFile: Could not connect to remote host; Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.HostVerificationException: Cannot create pending keystore PENDING/SSH_hosts/>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: false>>Fatal: false
Has anyone faced the similar problem and resolved it , please help me on the same.
Thanks,
Siva.Hi Srikanth,
I resolved the above error by creating aview in my keystore(nwa) . Now i am facing a new error.
The error looks something like this:
Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: javax.resource.ResourceException: >> Description: putFile: Could not connect to remote host; Reason: Unable to establish a connection to SSH server, the authentication has failed. Details: Server returned AUTHENTICATION_FAILED. Check user and key/password-settings.>> Details: putFile: Could not connect to remote host; Reason: Unable to establish a connection to SSH server, the authentication has failed. Details: Server returned AUTHENTICATION_FAILED. Check user and key/password-settings.>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: false>>Fatal: false, >> Description: putFile: Could not connect to remote host; Reason: Unable to establish a connection to SSH server, the authentication has failed. Details: Server returned AUTHENTICATION_FAILED. Check user and key/password-settings.>> Details: putFile: Could not connect to remote host; Reason: Unable to establish a connection to SSH server, the authentication has failed. Details: Server returned AUTHENTICATION_FAILED. Check user and key/password-settings.>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: false>>Fatal: false.
I am using a private key authentication and I gave my SAP PI userid as User and private key as the key present in NWA.
Can you please help me in resolving this error.
Thanks,
Sivarama Krishna -
Seeburger sFTP receiver adapter error: Socket Write Error, EOF Received
Hello experts,
We have a sFTP to sFTP scenario for which we are getting below error every time the scenario is executed.
Error Messages are as follows:
Put File: Could not connect to remote host, Reason: Unexpected termination; software caused connection abort; socket write error[unknown cause].
Sometimes below error occurs :
Put File: Could not connect to remote host, Reason: EOF received from remote side [unknown cause].
Every time after restart of sFTP adapter on XI box, failed messages are sent successfully to receiver sFTP server.
There is no error for sender sFTP channel. This error occurs only for the receiver sFTP channel.
On receiver sFTP side, we are using Public key-private key authentication.
Can anyone please let me know what could be the cause of connection failure. ?
Thanks a lot in advance!
(I searched many threads on SDN but could not find anything relevant to this particular situation, so posting a separate question.)
MinalThanks Naveen for the reply..
I missed to mention that we are working on XI3.0 with SP19 and seeburger sFTP is 1.7.4
Looks like key exchange is working properly as after every restart of adapter all failed messages are processed successfully..
It is observed that if there is an idle time of 8-10 hours between last data transfer and current data transfer then this error occurs.
We have increased connection timeout and transmission timeout parameters also for sFTP properties in visual admin.
Thanks,
Minal
Edited by: Minal Vaidya on Oct 5, 2011 8:46 AM -
Help req in Seeburger SFTP adapter
Hi All,
I have a scenario where i need to send a file to SFTP server. I used Seeburger SFTP adapter to connect to SFTP.
This is a pass through interface and i havent used any party at the confiuration( normal configuration without party)
In SFTP channel @ modules i configured it as:
localejbs/Seeburger/solution/<solutionName> Local Enterprise Bean solutionid
localejbs/ModuleProcessorExitBean Local Enterprise Bean exit
Module Key Parameter Name Parameter Value
exit JNDIName deployedAdapters/SeeXISFTP/shareable/SeeXISFTP
When i test the scenario i facing the following error in the receiver communication channel( SFTp Adapter) @ RWB
Delivering the message to the application using connection SFTP_http://seeburger.com/xi failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of ModuleProcessorExitB ean..
Can someone please help how to resolve this problem.
Thanks,
SivaHi,
can you share how you solved this issue? i am having the same issue with the sftp and receiving the same error.
Thanks in advance. -
Seeburger SFTP - File Adapter -- Filename in reciever channel
I am using a Seeburger SFTP Sender channel, and a "FILE" channel configured to use FTP.
I need to have the FTP adapter to write the file name as it was sent by the SFTP adatper.
I looks like I will need to use variable substitutions to do this, but I can't figure out how to populate a variable with the http://seeburger.com/xi/common/dtSubject that contains the file name from the SFTP Adapter.All you need is 1 UDF that retrieves the value of dynamic configuration. The name space is http://seeburger.com/xi/common/dtSubject as you said. I am not sure the technical name for FileName for Seeburger adapter. But you can see this in SXMB_MONI under the dynamic configuration node. Using this value populate the dynamic configuration with name space http://sap.com/xi/XI/System/File and technical name FileName. This represents the file name for standard File adapter.
Regards
Jai -
Using secure FTP (SFTP) with XI 3.0.
Hi,
I must bring a document with SFTP protocol.
Is it possible use SFTP with XI 3.0. What must I do use SFTP with XI. Is it necessary to install some component to XI or it needs some 3hrd party components?
ThanksHi Cemil,
Right now, XI does not have the feature of communicating with SFTP. You can extend the functionality of the File Adapter by writing some adapter modules to enable it to communicate with SFTP.
Regards,
Hari. -
Problem with conversion of strings like THISStr - this_str capitalization
Problem with conversion of strings like. THISStr -> this_str
Can anybody pass on the reverse code. I have one, but its faulty.
public static String convertFromPolycaps(String str) {
Pattern pattern = Pattern.compile("\\p{Upper}+");
Matcher matcher = pattern.matcher(str);
StringBuffer result = new StringBuffer();
// We do manual replacement so we can change case
boolean notFirst = false;
int grpP = 0, grpA = 0;
String last = "";
String now = "";
while (matcher.find()) {
grpA = matcher.end();
if (notFirst) {
now = matcher.group().substring(0).toLowerCase();
if (grpA - grpP > 1) {
matcher.appendReplacement(result, now);
result =
new StringBuffer(
result.substring(0, (result.length() - 1))
+ "_"
+ result.substring(result.length() - 1));
} else {
matcher.appendReplacement(result, "_" + now);
} else {
matcher.appendReplacement(result, matcher.group().substring(0).toLowerCase());
notFirst = true;
grpP = matcher.end();
////index++;
last = now;
matcher.appendTail(result);
System.err.println(str + " : " + result.toString());
return result.toString();
}succesfully converts :
AccountNmnc : account_nmnc
CustNameJ : cust_name_j
Resume : resume
BeneBrCode : bene_br_code
ApprovedPerson : approved_person
but fails for:
GLCode : glcode
VISHALErrCode : vishalerr_code
GHASUNNAcNo : ghasunnac_noCan anybody pass on the reverse code. I have one, but
its faulty.Post it, I'm sure we can fix it... -
How to file mask in sender seeburger SFTP adapter
Hello Gurus,
Please help on
How to perform a file mask in sender seeburger SFTP adapter? eg. I want to pick all the files but not *.tmp files.
thanks
KishoreKishore
A work around:
Use another interface File to file (By pass) using file adapter which does the mask exclusion of the file which are not required.
Regards
Raj -
Create EDI 997 with conversion agent
Hello,
I work with conversion agent by ItemField to convert EDI messages to xi and from XI to EDI.
I succeeded to receive EDI 850, to parse this message and to transfer it to the IDOC and create purchase order.
Now I try to send back to the customer EDI acknowledgment (997).
I'll be happy to hear if someone use with conversion agent to create EDI 997.
EladHi Elad,
What are 997s?
997 Functional Acknowledgments are EDI transactions that a receiver of EDI transaction sets sends back to the party that sent the EDI transaction sets. All EDI transactions require an EDI 997 to be sent back.
Here is an example
Wal-Mart sends an EDI Purchase Order to a supplier. With EDI Standard X12, Wal-Mart expects a 997 to be sent back to them. The 997 lets Wal-Mart know that the supplier received the Purchase Order. It does not say that the supplier accepts the terms or conditions of the purchase order. It simply lets them know that the supplier successfully received the Purchase Order.
Here is another example. A supplier sends Wal-Mart an EDI Invoice. Wal-Mart will send a 997 back to the supplier. The 997 informs the supplier that Wal-Mart has successfully received the invoice.
CovalentWorks handles all of your EDI transactions for you, including 997s, as an outsourced EDI service. If you choose us as your EDI provider, our system will automatically send and receive all your 997 Functional Acknowledgements. And every one of them is processed for you at no charge.
Thanks,
Satya Kumar.. -
File Adapter with Conversion - XML with Hierarchy?
XI 3.0 (SP9)
We are using the inbound file adapter with conversion to convert a flat file that has header and line items. I would have thought that the data type should have been setup something like this:
<data type>
<header>
<item>1</item>
<item>2</item>
</header>
</data type>
Our flat file looks like this:
H12345
I12345
We have only been able to configure the file adapter to bring in the data like this:
<data type>
<header></header>
<item>1</item>
<item>2</item>
</data type>
What is the proper way to inbound data through a file adapter that has structure conversion like this?
Do all of the elements get put under the root node, or is there a way to build structure?
Do we need to build the data type to correspond with the exact way that the data will come in from the file adapter?
Thanks
PeterNot quite sure what you want to get, as the flatfile and xml structure does not contain the same values.
However, I will try to give you an example:
Your flat file looks like this:
H12345
I12345
If the first row is header and the next is a line, then you need to specify the fila adapter with the following:
Document name = datatype
Recordset name = recordset
Recordset structure = header,1,item,*
Recordsets per message = *
Recordset sequence = Ascending (need SP10 for this, but you do not need it for this)
Keyfieldname = id
header.fieldFixedLengths = 1,5
header.fieldNames = id,number
header.keyFieldValue = H
header.lastFieldsOptional = Yes
item.fieldFixedLengths = 1,5
item.fieldNames = id,number
item.keyFieldValue = H
item.lastFieldsOptional = Yes
This will create something like this:
<datatype>
<recordset>
<header>
<id>H</id>
<number>12345</number>
</header>
<item>
<id>I</id>
<number>12345</number>
</item>
</recordset>
</datatype>
Hoever, if both rows are "item" rows , then you need to specify the file adapter with the following:
Document name = datatype
Recordset name = header
Recordset structure = item,*
Recordsets per message = *
Recordset sequence = Ascending (need SP10 for this, but you do not need it for this)
item.fieldFixedLengths = 1,5
item.fieldNames = id,number
item.lastFieldsOptional = Yes
This will create something like this:
<datatype>
<header>
<item>
<id>H</id>
<number>12345</number>
</item>
<item>
<id>I</id>
<number>12345</number>
</item>
</header>
</datatype>
Q: Do we need to build the data type to correspond with the exact way that the data will come in from the file adapter?
A: Yes!
Good luck! -
XML to EXCEL with Conversion agent error: XML to EXCEL PROCCES FAILD
Hello,
I have scenario from Oracle database to Excel.
For this scenario I use with conversion agent by itemfield to transfer data from XML to EXCEL.
The scenario not worked.
Few points:
1. I add the conversion agent module to SAP XI receiver communication channel.
2. When I change the scenario to oracle to xml (without using conversion agent) the scenario works OK.
3. When I drag the CME file to the studio I found the error message: XML to EXCEL PROCCES FAILD.
4. I use with conversion agent in other scenario (EDI to IDOC) without any problem.
5. I'm not found any clue for this problem in XI RWB.
Eladhi Elad,
to do the conversion,you have to define a module and import it into you CC.
also see nexts blog
Yet another "from database or internal table to Excel"
Reading Excel Data from Java Using HSSF API
Reading Excel line items using the jExcel API
Read Excel instead of XML through FileAdapter
Thanks
Rodrigo
Maybe you are looking for
-
Keeping itunes media folder organised slows down itunes
My itunes became very very slow indeed when I updated to version 9. I looked at self help forums and discovered that it should speed up if I unchecked "keep itunes media folder organised". I did that, and sure enough, itunes was cured. Somebody then
-
Lightroom 4 Help does not work
When I go to Help in Lightroom 4 the search panel only has references to Photoshop Elements and not Lightroom. Is that normal? The Lightroom help is in the panel to the right but how do I search in it?
-
Editing video in Photoshop - apply to all frame
I'm editing some HD video in Photoshop. I have a filter (Gaussian blur in an area selection) that I want to apply to all frames of the video. I can do it by selecting each layer at a time (it works, but painfully slow) but how do I apply the same fi
-
How do I shut down programs running in the background on the new os for iphones
Just uploaded the new ios 7 for my iphone 4s. I have several apps running in the background, when I push the com butten twise it shows me the apps running in the background but I cant' get them to turn off. I tryed holding my finger on it for sever
-
Hi, I want to make one field containing movement type 301 to be appeared unchangeable or not modifiable in MB1B. Is there any way to make that Movement type field mandatory with 301 only. Regards, seenu