Sender file adapter to pick up only 2 files at a time
Hi ,
I need to configure my sender file adapter in a way so that it picks up only 2 files at a time even though at FTP more files are placed.
Mudit Mehra
Hi,
As said above there is no such option to pick only 2 files at a time, however if possible you can create files in the sender/source directory in a manner that only two files are created at a time.
Thanks!
Similar Messages
-
Restricting the File adapter to pick up only a part of the payload
Hi ,
I have a csv file like below,
$H$,Header1, xyz, xyz
$H$,Header2, xyz, xyz
$H$,Header3, xyz, xyz
$D$,Detail1,xyz,xyz
$D$,Detail2,xyz,xyz
$D$,Detail3,xyz,xyz
Header and Details links have no link to each other!!! I just wanted to check if at all it is possible for the file adapter to skip the header llines and take only the detail lines.
Does this require any tweaking in the nxsd that is generated??
Any light on this would help... :)Hi Anuradha,
Could you please kindly provide answers to the queries below so that forum members can have a clear picture of your requirement
1. What is the operating system of your PI server?
2. What is the version of PI you are working on?
3. What exactly do you mean by statement " I want the adapter to pick only one file at a time rather than picking all the available files in the system." since adapter will actually pick up files one by one only in each polling interval. This goes in PI pipeline
one after another in quick succession.
4. Do you mean that you want to insert delays between successive file pick up then Baskar has already answered your question.
5. Do you want the channel to pick up only one file in a day out of all possible file?
6. Could you please kindly provide any sample file name you are receiving in PI ?
regards
Anupam -
Sender JDBC adapter not picking up data
Hi,
I'm using an adpater to poll dta from two tables using the below query:
SELECT TPartOrderMaster., (the editor convert the star to bold), TPartOrderDetail. FROM TPartOrderMaster INNER JOIN TPartOrderDetail ON TPartOrderMaster.OdrNo = TPartOrderDetail.OdrNo WHERE (((TPartOrderMaster.DocStatusCode)='OA'))
UPDATE TPartOrderMaster SET LastUpdatedDate= GETDATE(), DocStatusCode='OP' WHERE DocStatusCode ='OA'
However, the adapter doesn't pick any data and gives the below log continuously.
11/13/09 5:35:50 PM 7c2bb696-0832-423d-2d59-8e955a3d6e6e Processing finished successfully
11/13/09 5:35:30 PM Processing started
11/13/09 5:33:50 PM 7c2bb696-0832-423d-2d59-8e955a3d6e6e Polling interval started. Length: 120.0 seconds
I have tried running th equery in the SQL server and it works properly.
I even tried restarting the adapter, inactivating and activating it, restarted the adapter in Visual admin. There are no locks for the jdbc adapter in the Visual admin.
Can anyone please suggest what other measures can I take to solve this issue.
Thanks and Regards,
Merrilly
Edited by: Merrilly Don Thomas on Nov 13, 2009 5:50 PMSELECT TPartOrderMaster., (the editor convert the star to bold), TPartOrderDetail. FROM TPartOrderMaster INNER JOIN TPartOrderDetail ON TPartOrderMaster.OdrNo = TPartOrderDetail.OdrNo WHERE (((TPartOrderMaster.DocStatusCode)='OA'))
I doubt whether this works with Jdbc adapter even though the query fetches data when executed on database. The query selects two tables (TPartOrderMaster and TPartOrderDetail) which could be problamatic. Instead can you list out the resultant table(after join) fields in Select query instead of table names?
Refer this blog-
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414800)ID0202753750DB11861200566708306426End?blog=/pub/wlg/1725 -
Sending files by mail - time out?
When I send emails with attached files, larger than appr 2 MB, I cannot send the email.
My IT provider says it has to do with a Time out setting by Mac? Anybody know how to fix this?
//LTry using traceroute and ping. Use them to check the connection speeds between the source and destination computers. You can easily do this by using the tools in the Network utility, which is in the Utilities folder.
-
ADOBE SEND advise it cannot send file at this time, will file be sent eventually?
adobe send advises it cannot send the message at this time, will it eventual upload it for sending?
I'm not sure what happened, but it sounds like you need to try Sending the files again.
-
Sender mail adapter - filter emails by attachment?
Dear experts,
I have a sender mail adapter that picks an XSL (EXCEL) attachment from an incoming email and converts it (with a custom adapter module) to XML.
But now how can I make the adapter only process emails with XLS - attachments? In that Inbox I also have emails with HTML-attachments for example. And now my adapter also wants to process those messages.
In my adapter module that makes XLS to XML I see an exception in RWB but the message still gets through to SXMB_MONI where it gets stuck with a red flag.
Can I somehow tell the adapter to only process emails with XLS attachments?
Or can I stop the processing in the adapter module that converts XLS to XML?
Thank you for any input or ideas on this!
Best regards,
Peter
PS: I am using this code to convert XLS to XML:
http://wiki.sdn.sap.com/wiki/display/ABAP/AdapterModuleToReadExcelFilewithMultipleRowsandMultiple+ColumnsHello ChizzT,
Thank you for your idea. I went with this one and it worked.
Best regards,
Peter -
Need help reg sender JDBC adapter
Hi,
I am having a requirement like, i need to fetch the data from two data base tables. and after fetching the data, i need to update those two tables.
For selecting the data from two tables, two select statements i need to write, how i can give two select statements in sender JDBC comm channel.
In sender JDBC channel, only one update query we can give...how i can update two tables?
Regards,
Venkata Ramana.Hello Venkat,
For your requirement, go for stored procedure and find the below thread.
Fetching data from JDBC without using JDBC sender adapter
Re: Executing an Oracle Stored Procedure from Sender JDBC adapter
Re: Sender JDBC adapter not picking up data
Re: Retrive data from two diffirent tables
hope this will help you
Thanks,
Venky -
Sender JDBC Adapter - Stored procedure
Hello all, I just read a lot of topics in this forum about this subject.
I found two indications in contracdictions in the documentation :<a href="http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/frameset.htm">Configuring the Sender JDBC Adapter</a>
1. Concerning Query SQL Statement
You have the following options:
● Specify a valid SQL SELECT statement to select the data to be sent from the specified database.
● Specify an SQL EXECUTE statement to execute a stored procedure, which contains exactly one SELECT statement.
2. Concerning Update SQL Statement :
This is recommended if the data has not only been read, but also changed by a stored procedure entered under Query SQL Statement.
It is ambigous, isn't it ?
My question is simple :
Does somebody already use Sender JDBC Adapter with Stored procedure as Select statement including many steps :
- update actions on database
- select query to return data to XI adapter
(Update statement stay empty or with value <TEST>.
To provide more information, I have a reference table to read. But this reference table must be updated by a stored procedure before being able to be read accordingly.
So As I can't do both process with Sender Adapter (call a procedure and execute a select statement) => I want to include both actions (updates and select) in an alone stored procedure.
Could I get wanted data as a resultset ?Hi,
>><i>Update statement stay empty or with value <TEST>.</i>
It should be <TEST> if you do not want an Update to happen.
Regarding Sender JDBC adapter with stored procedures, which DB are you trying to access. Sender JDBC adapter does not support Oracle Stored Procedures as they return Cursors and Sender JDBC adapter can deal with only Resultset.
As for executing both Update and Select in the SP, though I havent tried, this should surely be possible.
Regards,
Bhavesh -
PI 7.11 how to pick up only one file at a time in file adapter
Hi
Is there a smart way of only picking up one file at a time (for every poll) in a sender file adapter?
E.g. There are 100 files in the source folder but I only want to pick up 1 of the files every time I poll the source folder in my sender file adapter.
BR
MikaelThanks
I did something like this:
FOR /F %%I IN ('DIR
srv145.??????????\reload\files\*.* /B /O:-D') DO (
echo %%I
move
srv145.????????????\reload\files\%%I
srv145.??????????\DMI\out\nocontentconversion
exit /B 0 -
Sender File Adapter not picking up the file
Hello Experts,
I have configured a sender file (FTP) adapter. All the configurations are right. The name of the file is given exactly as it is. The processing mode is Delete.
The scenario was running fine till today. I only made changes to the path from which it has to pick the file. I have checked the path numerously and it is correct.
But the file is not being picked up.
Monitoring the communication channel shows no errors. It has the green indicator. No idea what is happening.
Please Help,
Regards,
MerrillyHi
try to make some changes anf then again save and cativte the adapter. may be the adapter is not being activated.
also check whether the cache is refreshed or not.
or u can also check in the communication channel monitoring the channel is start or stop. if stop then start the channel and then try again.
if u still face the problem please reply me back.
Thanks
Rinku -
Sender File Adapter: Picking of Files
Hi,
I have a requirement where in my file adapter has to pick files from a FTP server after 10 minutes of its creaion on the FTP server. Some application will place file on this FTP server exactly after 10 minutes of its creation on this FTP server only it should be picked by the sender File Adapter. Is there any way to achieve this? Please provide me your thoughts on resolving this.
Thanks,
Vijay Kumar T.>
Vijay Kumar Thirumareddi wrote:
> Hi,
>
> I have a requirement where in my file adapter has to pick files from a FTP server after 10 minutes of its creaion on the FTP server. Some application will place file on this FTP server exactly after 10 minutes of its creation on this FTP server only it should be picked by the sender File Adapter. Is there any way to achieve this? Please provide me your thoughts on resolving this.
>
> Thanks,
> Vijay Kumar T.
as mentioned by suraj, the ideal way is to have a spearate folder where the files will be moved after the 10 minutes of its creation.
PI/XI will poll this folder and pick files.
out of curiosity, can i know why there is such a requirement of 10 min? -
How to configure Sender File Adapter to pick couples files in order !!
Hi Folks,
I am really looking for one requirement like, Sender file adapter has to pick multiple files by file name based with some time gap? Can we?
I have got one BPM in this, I have tried with Process mode : Name and Date, with wait step on BPM, but no use. The way how PI behaving, if 40 files in file directory, it is picking all files in one shot. Start processing but not in order.
The problem is on Receiver system side. The receiver system is SNC system, if old data receives later than earlier date data; we get data obsolete application error.
Ex: If I receive 25th and 26th files, first I need to process 25th first on PI sends to SNC, I need to give some time gap and pick another file or even PI picks and process 26th file, no problem but I need to give some time gap to send SNC to this 26th date file?
Please how guys, throw me your great ideas
Thanks in advance!!
Regards
San@ Sandhya
If there are 40 files , can you please specify how many types of files are ther like say first A type shud be picked then B type then C type and so on so forth ?
LIke in my case I had only three types of files file1 and file 2 file 3
and in the directory also only three files will be placed at a time
you need to have some logic to separate the type of files in differnt folders and then process them
@ farooq yes . it will create problem if 40 files are kept at a time .
Regards
Ninad -
Sender File adapter is not picking up file
Hi,
I am usning the sender file adapter to process a file through FTP. Adapter does not pick up the file, however it recognise the file, as it appears in the error message. Below is the text of the error message:
<i>Could not process file '<b>filename</b>': com.sap.aii.adapter.file.ftp.FTPEx: 550 toSAP: No such file or directory.</i>
I am not sure yet whether this file is <b>read only</b>. Can read only file not be processed in FTP ?
ThanksHi, I have the same problem. In advance, we can see in FTP Server log that CWD command it is called twice, for example :
00:00:59 10.15.64.187 [4669]USER MDM 331 0
00:00:59 10.15.64.187 [4669]PASS - 230 0
00:00:59 10.15.64.187 [4669]CWD MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready 250 0
00:00:59 10.15.64.187 [4669]CWD MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready 550 3
00:01:59 10.15.64.187 [4669]QUIT - 550 0
If we create a directory MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready into the first directory Ready where it is positioned with first cwd , its works !!
First CWD is called for read file an seccond for processing, somebody knows because this behavior ?
Best Regards
Claudio Maino -
Soap Adapter not Picking up files from sender
Hello All,
I have configured a SOAP Adapter and started it. When i place a file in the appropriate directory, it is not getting picked up. Are there any reasons this could happen ?
I would really appreaciate it if someone can help me with this !!!
Below is the log:
17:26:27 (3812): Enabling service ToWS
17:26:27 (3812): Enabling service FromWS
17:26:27 (3823): SOAP adapter initialized
17:26:27 (3830): Starting the server at 8660:/XIservices/MXS/xmb
17:26:27 (3830): Starting the server at 4444:/XIservices/MXS/ws
17:26:27 (3807): SOAP adapter started
Below is part of the config file:
The port and path where the adapter waits for web service messages from clients.
XMBWS.WSPort=4444
XMBWS.WSPath=/XIservices/MXS/ws
XMB.SenderBusinessSystem=WLX_100
#XMB.ReceiverBusinessSystem=MD1_400
XMB.User=XIAPPLUSER
XMB.Password=********
XMB.Client =100
XMB.Language=EN
XMB.SenderInterfaceNamespace=http://xi.sap.com/wlx
XMB.ReceiverInterfaceNamespace=urn:sap-com:document:sap:idoc:messages
XMB.SenderInterfaceName=ProcesseFT
XMB.ReceiverInterfaceName=Z_SERVICE_ENTRY.ZSERVICEENTRY01
XMB.TraceLevel=0
XMB.LoggingLevel=0
XMB.QualityOfService=EO
XMB.ContentType=text/xmlHi,
If you are using a Stand-alone J2SE Adapter Engine, you can create a SOAP adapter to pick a SOAP message from a file system and send it to the Integration Server. This is available with the XI3.0.
The configuration will look like this.
Bubble adapter java class
classname=com.sap.aii.messaging.adapter.ModuleBubble
This adapter instantiates a bubble bag for supporting
a soap file upload and sender. A bubble bag is a collection of Bubble
instances that form some processing chain of message objects.
Below parameter Bubble.Helper specifies the helper class that implements
the ModuleBubbleHelper interface. This class is used to instantiate
a bubble bag for this adapter.
Sets the bubble module helper that can instantiate your bubble bag
Bubble.Helper=com.sap.aii.messaging.adapter.ModuleBubbleHelperSOAPFileSenderImpl
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Below this line are the parameters specific to the ModuleBubbleHelperSOAPFileSenderImpl
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
This module loads files from the local file system, consruct SOAP messages
(or SOAP with Attachments messages), and send them to the specified Web Service target URL.
Upon successful completion, response messages are stored in the file system.
Files stored can represent a plain payload, a SOAP envelope, or a SOAP with Attachments.
Plain payload files and SOAP envelope files may be packaged in MIME using some MIME headers.
SOAP with Attachments files must be packaged in MIME.
Specifies the type of the file. The available values are:
plain for plain; soap for soap envelope; swa for soap with attachments
SFSender.ContentMode=soap
Specifies the packaging
true for MIME packaged file; false for bare content
SFSender.MIMEPackaged=true
log everything (4-digit binary, where the bits indicate which
information is logged: req message, req context, resp request, resp context)
SFSender.Log=1111
The target URL to which messages are sent.
SFSender.TargetURL=http://p28848:4040/mysoaphandler
The upload directory on the local file system
This directory has six sub directories with names 0, 1, 2, 3, 4, 5, and 6. (they will be created)
The meaning of each sub directories are:
0 = inbox where you place messages to be sent
1 = trash box
2 = work box
3 = successfully completed (original) messages go in
4 = response messages come in (if any)
5 = undelivered (original) messages go in
6 = error messages come in (if any)
In these directories, the file names are used as key and there can be only one file with
the same name except in the trash box. So, when you place in the inbox a file with
the name identical to one of the files stored in another directory, it will not processed.
SFSender.Directory=/tmp/sfsender
The polling interval in milliseconds (default is 5000)
#SFSender.PollingInterval=5000
The retry delay after each failure in milliseconds (default is 5000)
#SFSender.RetryDelay=5000
The maximal retry count upon failures (default is 3)
After the maximal retry count is reached, the message is moved as undelivered.
#SFSender.RetryCount=3
The number of dispatchers to send requests (default is 3)
SFSender.DispatcherCount=1
END
Hope this helps.
@Ravi: You may call me at +91 9844167672.
Warm regards,
Venki. -
How to know if file is being picked up by XI through sender file adapter -
Hi
How can I check if the file is being picked up XI through sender file adapter? Can you please help.
Thanks in advanceHi Rajiv,
Select teh File processing mode as
1. Read only -> After reading the file it will change the read only property of the file. Just right click on the file, select properties.If the file has been read then ReadOnly check box will be enabled. If u are testing several times then it will be more useful.
2. Archive -> Then u need to give some other folder name where u want to archive it.
3.Delete -> It will delete if the file has been successfully read.
regards,
Gowtham K.
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
Maybe you are looking for
-
I have an ABAP querry which was created using SQ01 that display some vendor, invoice and PO information. When I Execute this Querry it brings up all entries for different line items in the PO for an Invoice related to a vendor. As I am not displaying
-
Jsp, struts, problem in session invalidation
Hello, Though have seen many topics here related to this, still cudn't get a proper solution. I'm having a struts application with many jsp's. have used session.invalidate for expiring sessions. Now the problem is my jsp have both button specific act
-
How to make a java-program to a exe file runing on windows?
i kown that there were many topics on this problem. i want to kown how many kinds method to do this i can use now! i met a java-program can run on windows,but i don't find ant *.class files and *.jar files.it's extended file type is ".ese". thanks ve
-
Moving into temp house 2 mths,it has bt,can i shar...
I am moving into my Dads house for one or two months untill i find a new place. I am still under contract with BT and have bt broadband too. It will cost me £150 to get out of my contract, then when i find a new place it will cost me £130 approx to g
-
Acrobat Web Capture cannot convert javascript links...?
In Matrix (Multiple Listing Service) Acrobat Adobe 10 Standard won't convert javascript links in newly created PDFs Documents from Matrix. The Error message is : Acrobat Web Capture cannot convert javascript links and the link often does not work c