FTPEx: 501 Syntax errors in parameter in File Adapter
Hi All,
I have a scenario idoc to file when I try sending file through the FTP connection I got the below error
An error occurred while connecting to the FTP server 'ftp-gw.dx.dxxxx.com:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 501 Syntax errors in parameter. usage: %[recipient id]%[APRF] where either [recipient] or [APRF] can be omitted. (to change your current default SEND relationship). %% (places you in your 'HOME' TR). &['s'|'single'] ('get' command gets single file). &['m'|'multiple'] ('get' command gets multiple files). '. For details, contact your FTP server vendor.
I have gone through the forum below which is also unanswered
FTPEx: 501 Syntax errors in parameter - Any Ideas...
Note: Luis Melgar and Satish Reddy please let me know if this problem is solved and also please share with me if any discussion you have in offline
Regards,
Senthil.
Hi Anand,
Not sure whether I need to used the variable substituion but the user as specified to send file as
PUSHING FILES TO FTP Server
put localfilename %localfilename%CITISECUFLATNA%CITIGPASSIN%%B
currently I specified in comm. channel as
File Access parameters
Target Directory %xi_output.txt%CITISECUFLATNA%CITIGPASSIN%%B
Unchecked the checkbox Create Target Directory
File Name Scheme xi_output.txt
Please let me know if any more details required.
Regards,
Dhill
Similar Messages
-
Hello ,
I am facing an error in communication channel while trying to post the file to the FTP server,
The error is " Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP server '10.100.5.00:20'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 501 Unknown error'. For details, contact your FTP server vendor"
Please could you advice what need to be done to resolve this.
Thanks ,
SivaHi ,
FTP 501 Error is: "Syntax error in parameters or arguments"
Also, i see that the ftp address and port mentioned in your case is:
10.100.5.00:20
Hence, i see three probable issues here.
1. FTP Port :
Just check if the FTP server's port number '20' mentioned in your case is open as this is the data connection port. Moreover, the default port mentioned while creating a file channel is 21. Just check about the port number '20' with the FTP server administrator if this port number is opened and functioning.
2. FTP server address:
Also, try giving your FTP Server's address as 10.100.5.0
3. Also, check if the FTP server is reachable from the PI Server by using a simple ping command. -
Error while sending E-Mail -- 501 Syntax error in parameters or arguments
Dear Friends,
I was trying to send E-Mail using the NTLM Authentication mechanism using the below program:
import java.util.Properties;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.mail.PasswordAuthentication;
import java.util.Date;
import com.sun.mail.smtp.*;
public class MailerWithAuthentication
private String smtpServer;
private String fromEmailId;
private String toEmailId;
private String ccEmailId;
private String bccEmailId;
private String subject;
private String message;
private String host;
public MailerWithAuthentication(String toemail, String msg,String sub,String fromId,String host)
this.toEmailId = toemail;;
this.subject = sub;
this.message = msg;
this.fromEmailId=fromId;
this.host=host;
public void sendMail()
String mailContent = "";
try
Authenticator authenticator = new Authenticator();
Properties props = new Properties();
props.put("mail.smtp.host",this.host );
props.put("mail.smtp.port", "25");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.auth.mechanisms", "NTLM");
props.put("mail.smtp.auth.ntlm.flags", "0x00000200");
props.put("mail.smtp.auth.ntlm.domain","sal.ad");
props.put("mail.debug", "true");
Session session = Session.getDefaultInstance(props,authenticator);
Message msg = new MimeMessage(session);
MimeMessage message = new MimeMessage(session);
message.setContent("This is a test", "text/plain");
message.setFrom(new InternetAddress(this.fromEmailId));
message.addRecipient(Message.RecipientType.TO,new InternetAddress(this.toEmailId));
Transport.send(message);
catch (Exception e)
e.printStackTrace();
System.out.println("Exception in MailerThread : run: " + e.getMessage());
private class Authenticator extends javax.mail.Authenticator {
private PasswordAuthentication authentication;
public Authenticator() {
String username= "sal.ad\mailuser";
String password = "mail@123";
authentication = new PasswordAuthentication(username, password);
protected PasswordAuthentication getPasswordAuthentication() {
return authentication;
public static void main(String args[])
try
System.out.println(" Usage : java MailerWithAuthentication <To-Email> <Message> <Subject> <From-Email> <Mail-Server-IP>");
MailerWithAuthentication mailer = new MailerWithAuthentication (args[0],args[1],args[2],args[3],args[4]);
mailer.sendMail();
catch(Exception e)
e.printStackTrace();
Following is the output while running the program:
DEBUG: JavaMail version 1.4ea
DEBUG: java.io.FileNotFoundException: /usr/java/jdk1.5.0_14/jre/lib/javamail.providers (No such file or directory)
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.address.map
DEBUG: java.io.FileNotFoundException: /usr/java/jdk1.5.0_14/jre/lib/javamail.address.map (No such file or directory)
Mechanishm = NTLM
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "192.168.14.6", port 25, isSSL false
220 ****************************************************************************
DEBUG SMTP: connected to host "192.168.14.6", port: 25
EHLO
501 Syntax error in parameters or arguments -
HELO
501 Syntax error in parameters or arguments -
javax.mail.MessagingException: 501 Syntax error in parameters or arguments -
=================================
The error is :
EHLO
501 Syntax error in parameters or arguments -
HELO
501 Syntax error in parameters or arguments -
=================================
Please tell me what went wrong here. Is it due to any mistake in the program ?
Thanks in advance.hello Anirudh Pucha,
thanks for your message,
i'm downloading all the files you advised and one more doubt regarding SOA installation,
i'm using BPEL Process manager 10.1.3.1.0 installed on my machine and not installed SOA Suite (problem in installing AS Middle tier), i send voice,sms through BPEL PM which works fine, and faced problem in e-mail notification only, according to me with out installing SOA suite we can use BPEL PM or please let me know the procedure to install the downloading files.
if possible please send me a details in word documents to my mail "[email protected]".
Thanks again -
Hi ,
I am getting below error frequently in alert log of database.
ORA-12012: error on auto execute of job 754461
ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing
ORA-06512: at "SYS.UTL_SMTP", line 20
ORA-06512: at "SYS.UTL_SMTP", line 98
ORA-06512: at "SYS.UTL_SMTP", line 240
ORA-06512: at "APPS.EIS_UTIL_PKG", line 94
ORA-06512: at "APPS.HKD_PO_ADDON_PKG", line 110
ORA-06512: at line 1You have a job running in the database. Its job ID is 754461
It looks as if that job runs APPS.HKD_PO_ADDON_PKG
That job is attempting to send mail using UTL_SMTP and apparently passing some strange value to SMTP server for the RCPT TO: parameter. -
Unable to send Email: ORA-29279: SMTP permanent error: 501 Syntax error in
We have a procedure use utl_smtp in 10g (10.0.4). we got this msg (Unable to send Email: ORA-29279: SMTP permanent error: 501 Syntax error in arguments) when send e-mail to another mail box (internal),
but we use the same procedure running in 10g(10.03) it works perfectly. Is Oracle 10g(10.0.4 vs. 10.0.3) causing this issue ? Can someone shed some lights on my head ? Thx.We found what is wrong about this.
The problem is in CC we had a e-mail address has one space like this test [email protected] so UTL_smtp doesn't like this kind format then we recreated a new e-mail address without space and it works fine. -
EHLO 501 Syntax error in parameters or arguments -
Hello
I have 2 hp-ux 11i boxes one production one demo.... When trying to send e-mail from the production box I am getting the following (see below) If I run the script as root on the production box it is working. Any ideas on where I populate those ehlo response fields? The messages are just going from Internal Unix boxes to an internal SMTP gateway. I have no issues with the scipt on the demo box regardless of which user is running it.
DEBUG: setDebug: JavaMail version 1.4ea
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "172.31.7.20", port 25, isSSL false
220 mydomain.com [ESMTP Server] service ready;ESMTP Server; 02/08/08 14:03:26
DEBUG SMTP: connected to host "172.31.7.20", port: 25
EHLO
501 Syntax error in parameters or arguments -
HELO
501 Syntax error in parameters or arguments -
javax.mail.MessagingException: 501 Syntax error in parameters or arguments -
0
On the demo box
DEBUG: setDebug: JavaMail version 1.4ea
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "172.31.7.20", port 25, isSSL false
220 mydomain.com [ESMTP Server] service ready;ESMTP Server; 02/08/08 14:05:16
DEBUG SMTP: connected to host "172.31.7.20", port: 25
EHLO demoglo
250-mydomain.com
250-SIZE 26214400
250-8BITMIME
250 STARTTLS
DEBUG SMTP: Found extension "SIZE", arg "26214400"
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "STARTTLS", arg ""
DEBUG SMTP: use8bit falseFor some reason (probably misconfiguration of your
machine or name service), the java.net.InetAddress
class isn't able to find out the name of your machine.
You can specify that manually by setting an
appropriate property. See the javadocs for the
com.sun.mail.smtp package. -
Command Line Parameter in File Adapter in SAP PI
Hi
Can any body explaine me what is the purpose of 'Command Line' parameter in File Adapter (Sender/Receiver).
Regards,Hi,
Refer below two links for more help!
SAP XI File Adapter OS Command Line Feature
https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/sapXIFileAdapterOSCommandLine+Feature
More with the File Adapter
https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/morewiththeFileAdapter
Regards,
Jilan -
Translation Error not happening in File Adapter Inbound
I have been working on a requirement where the file adapter picks up the file and gives to the BPEL for processing the data.
So, in order to do Error Handling for file adapter, i have been reading the Oracle documentation for technology adapters. In that, some of the
points which i felt valuable for my error handling when using file adapter are the uniqueMessageSeparator property, fault-policies for rejected messages,
and one of the action for rejected messages could be writing the payload to a file or invoking any other webservice. .
In my composite, i have configured the file adapter as a service for reading files, and i defined the xsd using the native format builder....If i put some data like 'aaaa' in the attribute of type integer , the .csv file is being picked up and its being passed to the BPEL without any error ? I believe there should be a translation error...right...
But i am not getting the error, please tell me if anything is wrong in my xsd....
Here is my xsd....
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
xmlns:tns="http://TargetNamespace.com/InboundService"
targetNamespace="http://TargetNamespace.com/InboundService"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
nxsd:version="NXSD"
nxsd:stream="chars"
nxsd:encoding="US-ASCII"
nxsd:hasHeader="true"
nxsd:headerLines="1"
nxsd:headerLinesTerminatedBy="${eol}"
<xsd:element name="names">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name" minOccurs="1" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="FirstName" type="xsd:string" nxsd:style="" />
<xsd:element name="LastName" type="xsd:string" nxsd:style="" />
<xsd:element name="Number" type="xsd:integer" nxsd:style="" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
In another composite, my file adapter is picking up the .xml file and if i put any wrong data over there, that is working fine, i am getting the trasnlation error, but only here in the case of csv file, i am not getting the error. Experts, please help me in this regard...I am using SOA 11G
Thanks,
Nareshpls help....
-
Getting Error while running a file adapter.
Hi all,
I am doing a small application where I need to read an image from a shared path and send the base64code of that image in response. For that I am using File Adapter and Read
operation. I have just hard coded the image name didnt give any wild card or expressions. I generated a service which is a proxy using the jca of that File Adapter. I added a stage
replacing the response body with the opaque element of the request body. When I run the proxy I am getting something like *"The invocation resulted in an error: "* in response
and in the stack trace I am getting *"Failed to set the value of context variable "body". Value must be an instance of {http://schemas.xmlsoap.org/soap/envelope/}Body."* as the fault
reason I am unable to detect where exactly I am going wrong. Kindly help me in resolving this.
Thanks,
Phanindra.Not sure why you want to replace. Since the response of the proxy would remain to hold the request body by default.
If you have stored the opaque element in a variable ($var_opaque), then you can do the following.
XPath : .
In variable : body
Expression : $var_opaque
Check - "Replace node content" -
"Error in loading WSDL file" --- Adaptive Webservice Model
Hi All,
I have been using Deprecated web service model. But now my application is moving to Test. So in order not to change the URL of the webservice model in the Test, i tried with the Adaptive webservice model. But when i try to import the model its saying " Error in loading WSDL file. Check the error log for more details." Please help me out in this.
Thanks in advance,
Pranesh.Hi Pranesh,
Please refer to this thread for similar issue and check the log file for NWDS for more details
Error in loading the WSDL file. Check the error log for more details
Hope it helps
Regards
Arun -
File access parameter in file adapter at receiver side
Hi Experts,
1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction mode = add time stamp and put file directly .but it is showing time in file name????????
2. i want my file name as TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
Regards1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction mode = add time stamp and put file directly .but it is showing time in file name????????
The addtime stamp will add timestamp as the last part of the filename before the extension.
2. i want my file name as TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
You can achieve this using dynamic file naming UDF in mapping and using ASMA in file adapter.
Use current date function and generate the current date. Then use substring to pick date,time from it and format it according to your requirement (TimeSheet_Country_Date_time).Else you can write a UDF to generate the file name as per your requirement and then pass it to the dynamic filenaming UDF in the mapping.
Search SDN for dynamic file naming. -
Error when configuring Sender File Adapter (XI 7.0)
Hi all,
After i had configured my Sender File Adapter of Communication Channel 'CC_SEND_MATERIAL_FILE', an error message for this Communication Channel (in Runtime WorkBench/Component Monitoring/Adapter Engine/Communication Channel Monitoring) occurred as below:
Error: com.sap.aii.af.ra.ms.api.DeliveryException: java.net.MalformedURLException: unknown protocol: dest
I think that all configurations for this Sender File Adapter are correct. But i don't know where is protocol "dest" and how can i correct this protocol.
Could anyone please help me to resolve this problem?
Thanks for all in advance,
Vinh VoHi Sarvesh,
Yes, i have configured the source file with the path in the AL11. I think all an other configurations are also OK. But i don't know what is protocol 'dest'.
Anybody can explain and help me, please!
Vinh Vo -
<!---Control the timeout--->
<cfsetting requesttimeout="600">
<cfset thisDate = now()>
<cfset today = #DateFormat(thisDate,"mm-dd-yyyy")#>
<!--- Open ftp connection --->
<cfftp connection="MyFtp"
server="#FTPserver#"
username="#username#"
password="#password#"
action="Open"
stoponerror="Yes">
<cfftp action="listdir"
stopOnError="Yes"
name="Files"
directory="/export400"
connection="MyFtp"
>Try removing the quotes from around the connection name in your CFFTP lisdir block. So change the last line to connection=MyFtp instead of connection="MyFtp".
-Carl V. -
Syntax Error in uploading a file
I am trying to upload a text file having two columns in a client dependent ztable zvalordreasons. On saving a syntax being thrown that is "The work area "STRUCT1 is not long enough".
Can somebody tell me what this error could be ??
REPORT ZREASONUPLOAD.
TABLES : ZVALORDREASONS.
DATA : BEGIN OF struct1 occurs 0,
LFARV type ZVALORDREASONS-LFARV,
AUGRU type ZVALORDREASONS-AUGRU,
END OF struct1.
DATA : input_file LIKE struct1 occurs 10 with header line.
SELECTION-SCREEN BEGIN OF BLOCK selectfile WITH FRAME title TEXT-001.
PARAMETERS : selfile TYPE string DEFAULT
'C:\valreasons.txt'.
SELECTION-SCREEN END OF BLOCK selectfile.
START-OF-SELECTION.
PERFORM upload.
break-point.
LOOP AT input_file INTO struct1.
WRITE : / struct1-lfarv.
WRITE : struct1-augru.
INSERT INTO zvalordreasons VALUES struct1.
ENDLOOP.
*INSERT zvalordreasons FROM TABLE input_file.
FORM upload.
REFRESH: input_file.
CLEAR : input_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = selfile
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
DAT_MODE = 'X'
TABLES
DATA_TAB = input_file
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.
Edited by: Pawan Patel on Jan 3, 2008 7:14 AMHi All,
I have also encountered such error during my test upload of Hierarchy from a flat file.
This is my exact error: u201CSyntax error in template RSTMPL9C, row 297u201D.
After browsing hundreds of WebPages, I took a closer look at my infopackage. And whalah! Under the u201CExternal Data Tabu201D, I forgot to enter a value in the u201CNumber of Header Rows to be Ignoredu201D. And thatu2019s it. It solves the problem. I have successfully uploaded my hierarchy through flat file.
Hope this could also help those who have encountered same problem.
Sheila S. -
Syntax Error When Synchronizing *.msg files
I am running SyncToy 2.1, version 2.1.0.0.
When synchronizing folders that contain Outlook messages saves as *.msg files, I recieve the message "Error: Cannot write to the destination file. The filename, directory name, or volume label syntax is incorrect (Exception from HRESULT: 0x8007007B)..."
If I modify the synchronization settings to exclude *.msg files, the synchronization runs without errors.
I have browsed this SyncToy support forum and haven't found any posts that relate to this error.
Any help would be appreciated.
Thanks.I know it's a long shot but I had this error message when trying to write files from a local drive to a mapped SharePoint location. The problem came down to the name I'd used when I mapped the SharePoint library. I'd mapped it as something like this:
Z: --> \\intranet\myteams\erp\Shared%20Documents
and kept hitting this issue. However, when I mapped it like this:
Z: --> \\intranet\myteams\erp\Shared Documents
it worked.
Maybe you are looking for
-
Hi community, I am having some trouble with dns over vpn. On server side of VPN the dns is working 100% i.e servername.domain.com resolves to local IP address correctly from within network. However, when i connect into network over VPN the dns does n
-
How to create a game. Basic steps.
So, just browsing through these forums, I see many posts by prospective game designers wanting to get started. But many of these questions are so ill-researched or off basis that most people don't even know how to respond. So here's a quickie guide o
-
Error while saving web template
Hi, Iam new to this forum , i have a problem and that is when iam trying to save web template, it is saying 'error in data transfer' and could not save. 2.when iam trying to save a query in workbook it is throwing error'workbook storage fault -310' .
-
I was wondering if the Email and Phone types are only available to VS 2013 professional (or any other paid versions). Can someone please shed light on this? I'm kind of stuck on the tutorials of Beth Massi. Thanks in advanced!
-
The problem with a combination of audio output in Windows.
I find it hard to use the Google translator, because I know that he can not describe the whole problem, but I hope you'll understand. I have a MacBook Pro 13-inch, Early 2011, I found him and offered Windows7 driver bootcamp. When the headset is conn