How to get zip file in SFTP receiver adapter
Hi Experts,
we got one scenario, which the PI need to pick the .zip file from file path using file adapter and process to SFTP server with same name and extension .zip.
we tried using ASMA setting and when ever we are placing the '*' in receiver channel file name , it showing error as "Putting * failed".
so could you please provide solution how we can able to receive the .zip file with same name.
regards
raju
Hi Raju,
In ASMA the default namespace was like this http://sap.com/xi/XI/System you can changed it to http://sap.com/xi/XI/System/File.
please try this...
Regards
srinivas
Similar Messages
-
How to place a binary zip files using sftp receiver adapter
Hi experts,
we got one scenario , where we need to pick the file (.zip) from local source path and place it in SFTP server path.
we have done all configuration setting and processed a zip to SFTP server.
but the client are saying the .zip file is not in a binary formate.
so could any please help me and provide solution on this issue.
regards
rajuhi Praveen,
i clicked binary mode option in sender channel, and at receiver side sftp adapter channel i not found any option.
could you please help me.
regards
raju -
PGP Encryption Exception in File and SFTP receiver adapter.
Scenario: We have got the PGP (Private and Public key pair) and stored the same in PI server path.
We have sample partner Public key which is store at temporary shared location for testing purpose.
Issue: While doing the encryption we are getting below exception in case of File Adapter and SFTP adapter.
Case 1: File Receiver Adapter
Case 1: SFTP Receiver Adapter
Can anyone please suggest on below exception?
How to proceed to resolve the above issue or what should be the cause of the issue?
Thanks,
VertikaHi everyone,
Thanks for reply Sarah
I have downloaded and added the JCE unlimited strengthh juristiction policay files are updated as directed in above blogs.
Now I am able to encrypt the File using plane File Adapter (NFS). But still it is throwing exception for SFTP adapter. Below is the error detail:
MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.adapter.pgp.app, BC-XI-CON-B2B) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean@2648d238 for bean sap.com/com.sap.aii.adapter.pgp.app*xml|com.sap.aii.adapter.pgp.ejb.jar*xml|PGPEncryption in application sap.com/com.sap.aii.adapter.pgp.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageKey() of a null object loaded from local variable 'message'; nested exception is: javax.ejb.EJBException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.adapter.pgp.app, BC-XI-CON-B2B) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean@2648d238 for bean sap.com/com.sap.aii.adapter.pgp.app*xml|com.sap.aii.adapter.pgp.ejb.jar*xml|PGPEncryption in application sap.com/com.sap.aii.adapter.pgp.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method
What could be the reason of above exception in SFTP adapter? Please suggest.
Thanks,
Vertika -
How to delete zip file in sftp server
Hi Gurus,
I am having one .zip file with data files inside on the sftp server. Can you please how to delete the .zip files in the sftp server. I am able to delete normal files by using 'rm' on sftp.
And one more request my sftp is prompting for the password everytime, then i need to enter the password manually. Can any one suggest how to write in shell script to accept that.
Thanks in advance.
Regards
NagendraYou might want to look into user equivalence and configure a certificate for ssh so it does not prompt for a password.
It will also allow you to use sftp without a prompt for a password.
On the server side:
Edit /etc/ssh/sshd_config and remove the # from the following:
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
Then restart the ssh server:
/etc/init.d/sshd restart
Login as the user for whom this is for:
su - <username>
mkdir .ssh
chmod 700 .ssh
On the client side:
Run the following command:
ssh-keygen -t rsa (omit password)
Then use the following to copy the public key from the client to the
corresponding login .ssh directory on the server side;
scp .ssh/id_rsa.pub username@remote_host:.ssh/authorized_keys -
How to attach Excel file in Mail Receiver Adapter?
Hello Experts,
In R/3 coding I have Internal Table data available for which i have to generate an Alert mail with Excel file attachment.
This is the scenario of Proxy sender to Mail Receiver. but I don't know how to convert the Internal Table data into Alert mail excel File attachment.
Please suggest me.
Regards,
JageshHi Santhosh,
Thanks for your suggestion.
But without using XSLT mapping also, I have generated the Excel File attachment.
Throgh R/3 coding I am passing following.
G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-FROM = From Mail Address.
G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-TO = TO Mail Address.
G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-SUBJECT = 'Test Alert mail'.
G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-DATE = SY-DATUM.
G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT_TYPE = 'text/plain;name="CSV_data.csv"'.
G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT = 'Testing1,Testing2,Testing3'.
G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT_DISPOSITION = 'attachment'.
And in the Mail Receiver Adapter i have configured as following.
Use Mail package and Keep Attachment both options are selectd.
So I am getting the data in different columns in the excel file But How to set the Next ROW in Excel file?
I thnk i am missing something in CONTENT value.
Regards
Jagesh -
How to open Zip Files in N900 ?
Hi Guys,
I wanted to know how to open Zip files in N900 ? is there a App available for it or what ?
Thanksif you have rootsh installed, open up xterm and run these commands
root
apt-get install unzip-fm
apt-get install unrar-fm
as in the link from aspergerguy, you need the extra catalogs installed.
once you have them installed you just need to click on the zipped file then it will unzip it to a folder of the same name -
How to handle empty file using sftp adapter
Hi,
Please explain me how to handle empty files in sftp adapter.
Thanks,
EnivassHi Enivaas,
I don't have the seeburger sftp adapter at hand at the moment, but asfar as I remember, this does not specifically have an empty-file handling option like the standard ftp adapter.
So to stop emtyp files from being written, guess would need to handle this at the mapping level. For example, check for target creation criteria in the header node in mapping. If the creation criteria is not met, you can throw an error in mapping.
You may also incorporate this condition in your Receiver determination. In this case, if the condition is not satisfied, no receiver is determined in PI.
Regards -
How to get XML file using servlets that XI sent to my J2EE appl?
Hi All!
I have a scenario like XI sends xml file to j2ee application. In my J2EE application my servlet receives this xml. Will the xml file be in my HTTPServletRequest object? if so how to get that file from Request object.
Please help me its urgent, Any code help is highly appreciated.
My xml file will be like this:
<ns0:Http_Message_Type_Demo
xmlns:ns0="http://abcdemo.com">
<Name>ABC</Name>
<RollNo>123</RollNo>
<Address>a-4</Address>
</ns0:Http_Message_Type_Demo>
somebody should help me!please
ThanksHi,
You can use HTTPServletRequest object to get the XML payload.
BufferedReader reader = request.getReader(); //gets XML payload
String line = reader.readLine(); // to read the XML payload line by line
(request is the HTTPServletRequest object)
Regards,
Uma -
How big of a file can I receive?
Not sure if there is an error or if the file is too big. My other email provider will allow an email with several pictures attached to be received. When I forwarded it - it failed. Then when the sender sent it to my verizon account it failed as well. We just got our FIOS connnected. SO, is there a limit as to how big of a file can be received by Verizon FIOS?
Hubrisnxs wrote:
i am pretty sure that if you are doing it through verizon.net emai webmail that it is 8 mb, and if you do it through an email client like windows mail/outlook/entourage that you can do upto 20mb.
These are the limits for *sending* attachments from Verizon. The only limit on receiving is whether it would put you over your storage quota for your verizon.net mailbox. (Limit is 2 gigs for primary accounts and 250 megs for subs, includes mail in ALL folders.)
You said sending it failed. What error did you get? Was it an immediate error or a bounceback message?
If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
"All knowledge is worth having." -
Hi How to get XML file from servlet that XI sent to my J2EE appl?
Hi All!
I have a scenario like XI sends xml file to j2ee application. In my J2EE application my servlet receives this xml. Will the xml file be in my HTTPServletRequest object? if so how to get that file from Request object.
Please help me its urgent, Any code help is highly appreciated.
My xml file will be like this:
<ns0:Http_Message_Type_Demo
xmlns:ns0="http://abcdemo.com">
<Name>ABC</Name>
<RollNo>123</RollNo>
<Address>a-4</Address>
</ns0:Http_Message_Type_Demo>
somebody should help me!please
ThanksHi,
You can use HTTPServletRequest object to get the XML payload.
BufferedReader reader = request.getReader(); //gets XML payload
String line = reader.readLine(); // to read the XML payload line by line
(request is the HTTPServletRequest object)
Regards,
Uma -
How do I zip file folders to send to Windows users? They can never open!
How do I zip file folders to send to PC users, they always have problems and can't open.
Are you trying to use one of the stuffit formats (like .sitx as you said) or do you actually want to make a .zip file which would be more logical if you are giving it to a windows user (unless they too have stuffit to stuffit expander of course)?
If you do a search for "zip" at macupdate.com you will find a whole bunch of zip tools, some of which advertise they make windows compatible zip files. For example BetterZip and WinZip Mac Edition can make windows-compatible zip files.
As I initially mentioned if you have stuffit and the windows receiver has stuffit (or stuffit expander) I don't know why there would be a problem creating a stuffit file on a mac and expanding it on windows (ignoring any possible problems introduced in the method of transmission). -
How to get the files in presentation server while uploading?
how to get the files in presentation server while uploading?
give me the function module nameHi,
PARAMETERS: P_FILE LIKE RLGRAP-FILENAME DEFAULT C_PRES. "Prsnt Srvr
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_PATH = P_FILE
MASK = ',..'
MODE = '0 '
TITLE = 'Choose File'
IMPORTING
FILENAME = P_FILE
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5. -
[CS3][JS] How to get the file type of current document
Hi,
How to get the file type of current opening document (e.g., tif, jpeg, png) using JavaScript with Photoshop CS3.
I am using file object the open the files one by one in the folder (the files sometimes don't have the extensions).
If the current document is in tiff format then I need to convert to 8-bit, if its an Jpg image then needs to ignore the file.
Regards,
KarthikDo you really need to know the file type? What about just checking the bit depth?
var doc = activeDocument;
if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) {//Not 8 bit
doc.bitsPerChannel = BitsPerChannelType.EIGHT;
//do your save etc
}else{
//Ignore -
How to get the file size (in bytes) for all files in a directory?
How to get the file size (in bytes) for all files in a directory?
The following code does not work. isFile() does NOT recognize files as files but only as directories. Why?
Furthermore the size is not retrieved correctly.
How do I have to code it otherwise? Is there a way of not converting f-to-string-to-File again but iterate over all file objects instead?
Thank you
Peter
java.io.File f = new java.io.File("D:/todo/");
files = f.list();
for (int i = 0; i < files.length; i++) {
System.out.println("fn=" + files);
if (new File(files[i]).isFile())
System.out.println("file[" + i + "]=" + files[i] + " size=" + (new File(files[i])).length() ); }pstein wrote:
...The following code does not work. Work?! It does not even compile! Please consider posting code in the form of an SSCCE in future.
Here is an SSCCE.
import java.io.File;
class ListFiles {
public static void main(String[] args) {
java.io.File f = new java.io.File("/media/disk");
// provides only the file names, not the path/name!
//String[] files = f.list();
File[] files = f.listFiles();
for (int i = 0; i < files.length; i++) {
System.out.println("fn=" + files);
if (files[i].isFile()) {
System.out.println(
"file[" +
i +
"]=" +
files[i] +
" size=" +
(files[i]).length() );
}Edit 1:
Also, in future, when posting code, code snippets, HTML/XML or input/output, please use the code tags to retain the indentation and formatting. To do that, select the code and click the CODE button seen on the Plain Text tab of the message posting form. It took me longer to clean up that code and turn it into an SSCCE, than it took to +solve the problem.+
Edited by: AndrewThompson64 on Jul 21, 2009 8:47 AM -
PI FTP get zip file and want to unzip with origin filenames
Hello everybody,
we get zip files from ftp and want to unzip this file in one target directory (file adapter). May be, there are more than one file in the zip file, for example test1.txt,test2.txt,test3.txt and zip file name is zipexample.zip. With adapter parameters it is possible to use the name of the zip file, but I've no idea to get the origin filenames (test1.txt, ...).
I don't want to use the OS Commands to do this.
I know that's not realy an workitem for PI.
Is there anyone, who has an idea. Thanks
Kind regards - JochenHi,
Try out this blog
Working with the PayloadZipBean module of the XI Adapter Framework
regards,
venkat.
Maybe you are looking for
-
Copy variable from one thread to another
My program requires user to input a java file which contains the run() method. In the input file, user can declare variables and use those variables inside the run method. User also need to enter the number of threads to be spawned. The problem is ho
-
How to handle error in SOAP adapter
Hi all, I have a scenario where i have configured SOAP adapter to call a webservice which is working fine. But when ever server hosting the webservice is down, PI still shows the message is processed successfully. Through RWB, i can see that message
-
File upload and download through web Dynpro2.0.9. with Java
Hai All, I am working in web Dynpro2.0.9 with Java.For file upload and download "IWDResource" is used.But this package is not available in web Dynpro2.0.9.How to download and upload files through using this version? Anyone can help me? Th
-
Firewire Target Disk Mode Battery Icon
When trying to enter TDM with Lacie drive connected by firewire I get the TDM yellow icon and an icon at the bottom that appears to be a charge or battery icon. It appears red. Note: -Power is connected (third-party ac adapter by macally) -When in Le
-
How Much Time to Convert Files?
I'm trying to convert a 700.5MB .avi file to something that my TV's DVD player can use by way of iMovie HD 5.0.2 and it is taking what seems to be a lot of time (hours). When it starts the import it says it will take about 80-90 minutes, but after a