File Adapter Advanced Mode - Msecs to Wait Before Modifications Check
Hi, Can anybody tell me how to set this parameter "Msecs to Wait Before Modifications Check" in PI 7.1? I don't see this parameter at all. In advance mode of PI 7.1, we just have Maximum File Size(bytes). Also when I checked the SAP note 801926 for Advanced Mode we can just set only
1. Parameter name: "clusterSyncMode"
2. Parameter name: "ftp.timeout"
Please let me know if anybody has configured this already in PI 7.1.
Hi Ravi
I think this feature is no longer supported in PI 7.1. Although it work with PI 7.0 for NFS and non FCC only.
Thanks
Gaurav
Similar Messages
-
Poll Interval, Msecs To wait before modification checks & Queue Name in CC
Hi All,
I have 3 inter-related interfaces which is having 3 File Sender Communication channels as below charasteristics;
All 3 ccs are running on a common Queue Name inorder to cater the business scenario;
so PI should consume the files in the same sequance of files are copping into the locations;
(time gap between incoming files is around 1-3 secs)
Existing Values in Production system
IF086
Poll Interval 1 secs
Msecs To wait before modification checks 10000
Queue Name XI_QUE1
run sequance must be 1
IF913
Poll Interval 1 secs
Msecs To wait before modification checks 10000
Queue Name XI_QUE1
run sequance must be 2
IF084
Poll Interval 1 secs
Msecs To wait before modification checks 10000
Queue Name XI_QUE1
run sequance must be 3
we are having PI Alert email configured in the system;
when we get a big files into the locations, we get an unwanted Alert emails saying Error;
when I check PI, Overall file transfer is successful,
but we have the below error in the Message Display Audit log as
"Channel CC_Cxxx: Attempt to send file 'T201_200909141702' failed because file was modified during processing. 0 bytes expected, 1202248 bytes found. Trying to resend file"
but Overall file transfer is successful;
Does anyone can explain the reason for this error; ?
Also to remove this error & unwanted Alert email (since final status is successfull), I changed the Poll Interval to 3 for all 3 above CCs; Now I dont get the above error;
Do you think there might be a sequance issue due to this change;?
(time gap between incoming files is around 1-3 secs)
quite lengthy to explain sorry;
Appreciate your help please
thanks
IverHello Iver
Question 3 in the note #821267 FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter, explains what is happening here. This answers your first question.
The file in question was being written to by another process when the file adapter attempted to send it. Depending on the length of time/amount of data that is being written to these files, increasing the polling interval to 3 seconds will help.
Regards
Mark -
File adapter parameter "Msecs to Wait Before Modification Check" is gone
We are using PI 7.1 and we have the problem that the file adapter (ftp) picks up incomplete files from time to time. That causes a mapping error.
Have a look at sap note 821267 question 3.
https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=821267
Here you can find a solution. But in reality this parameter isn't there. And if you check the current documentation
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/655453b48a4ddfe10000000a1553f7/content.htm
you can't find this parameter too.
Has anybody of you the same effect? Does anybody of you know the reason? And the most important question is: What is the solution for this problem. The suggested work around in this note isn't possible for us.Hi,
May be this thread can give you some idea to deal with your problem.. see my reply there
Re: Use temporary file in FTP receiver adapter
Sorry this will not help you here..
One solution which I think is.....
Put file in your source directory with diff name, and write an script which will rename it to its original name.
The logic for scrip should be something like this.
First of all when reading the file for the very first time then check the size and wait for 10 sec and then again check the size. If both size are same then scrip should rename the file to its original name.
Regards,
Sarvesh
Edited by: Sarvesh Singh on Mar 26, 2009 4:35 PM -
Receiver RFC Adapter -Advance Mode option
Hi Experts
I want Execute the commite transaction after Trigeering the Standred BAPI through XI.
We haveAdvance Mode option in Reciver RFC Adapter . Any one explain me how to implment this.
Regards
Upendra.V
Edited by: upendra v on Jan 26, 2009 1:47 PMHmmmm.. I guess you are just practising & exploring all the featers of RFC.. isn't it?
Anyway upto what I know is here..
>If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.
First of all you need to write an ABAP program in R3, there you will call your RFC/BAPI to update the database entries.
In XI, under your receiver RFC adapter check the box "Commit Handiling for Single BAPI Calls". Once you click you will get another check box called "BAPI Advanced Mode".
>If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.
Once you send the data from XI to R3, then in R3 function module BAPI_TRANSACTION_COMMIT will be called explicitly (you need to define/call this BAPI after the ABAP code for database update). This will commit the work and return the result success or failur in a parameter called RETURN.
And after this BAPI you should call BAPI_TRANSACTION_ROLLBACK, so that in case of errors the transaction will be rolled back.
>The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values u201Cu201D, u201CSu201D, u201CIu201D, and u201CWu201D are displayed. All other values are regarded as errors.
As described above.
>To change this setting, set the indicator BAPI Advanced Mode.
In the Successful RETURN-TYPE Values table, enter the values that should lead to a successful execution.
Once you check the box "BAPI Advanced Mode" a table will appear, there you can write your own values e.g.u201Cu201D, u201CSu201D, u201CIu201D, and u201CWu201D.
I can not provide a better solution then this... you have to do a work around, but above are the basic steps which can be considered before implementing the solution.
Regards,
Sarvesh -
File adapter - connection mode
Hi,
RE: File adapter
Can someone please supply me with some information:
What is the difference between connect mode - permanently/file per transfer?
When does the connection get closed?
Thanks,
LeanneHi,
Permanently:
An existing connection to the FTP server is used permanently.
The connection is reestablished automatically if it is closed by the server.
==>> It will not get closed if the data flows continuesly.it will get closed if it is not in use. then when ever the use comes into picture means the connection will be Established automatically.
Per File Transfer:
A new connection to the FTP server is established for each file transfer.
==>>It will be closed for each and every file Transfer and will be opened every time.
Connection mode Permanantly will be better, each and every time closing and opening is not recomended
REgards
Seshagiri -
Receiver File adapter Append Mode
Hi
I have scenario where i am sending multiple idocs to file ...when i putting the file construction mode to append i can put multiple idoc in to file but i wanna do it on daily basis Means i wanna send the newly crated or changed Idoc on a daily basis to a single file ..
How can i achieve that
SVHi
You can achieve this using dynamic file names.
Every day different files
FileName-<DD>-<MMM>
chk these
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
rgds
Arun -
File Adapter: Advanced selection for source file
Hi Experts,
I am doing file(Idoc format) to IDoc scenario. In my scenario I am getting files in three different formats (ex: abc.dat, xyz.dat, 123.edi). My communication channel (sender file adapter) should poll for every 30 mins, picks up the files and map them to Idoc without any mapping.
Need following clarifications:
1. Should I create 3 communication channels to pick up 3 different type files? Or should I use the Advanced selection for source file to pick up them with only one CC?
2. If there is no mapping how should I proceed in this case?
Regards,
Rams>>1. Should I create 3 communication channels to pick up 3 different type files? Or should I use the Advanced selection for source file to pick up them with only one CC?
Not required.. if all the files are from the same directory then u can specify . in the file name parameter.. but make sure that only these 3 file types are places in the directory... if this is not the case you can use Advannced Selection... check my Wiki [Single Sender File CC For Multiple Directories|https://wiki.sdn.sap.com/wiki/display/XI/SingleSenderFileCCForMultipleDirectories]
>>2. If there is no mapping how should I proceed in this case?
Mappiing is required only if the source and the target structure are different.. if u send the file with the IDocc XML format mapping is not required...
~SaNv.... -
Mainframe Integration using File Adapter (FTP Mode):: ftp commands
Hi,
We are trying to integrate with Mainframe system using File Adapter. (FTP mode). We are able to write the file to Mainframe system but not able to format it properly. We had to provide FTP parameter, <b>ftp.quote site recfm=fb lrecl=150</b>
As per SAP Note 801926 :: XI 3.0 File Adapter: Additional Parameters, the only parameter that can be used is <b>ftp.timeout</b>. Has anyone tried out using other FTP parameters? (like ftp.quote)
Any help is grealy appreciated.
Regards,
Siva MarananiI am looking at running some OS commands especially the QUOTE SITE FILENAME, and found this OSS note:
https://service.sap.com/sap/support/notes/841704
In this note it says...
"Note that for the File Adapter transport protocol "FTP", the operating system command is NOT executed on the FTP server, but on the server hosting the Adapter Engine." -
Hi Guys,
What are the modes available in File adapter sender and receiver mode? what is Test mode for? can you pls send me a link on file adapter attributes?
XIerHi,
Processing mode for File sender:
<b>Archive</b>
Files that have been successfully processed are moved to an archive directory.
To add a time stamp to a file name, select the Add Time Stamp indicator.
Under Archive Directory, enter the name of the archive directory.
If you want to archive the files on the FTP server, set the Archive Files on FTP Server indicator. If you do not set the indicator, the files are archived in the Adapter Engine file system.
<b>Delete</b>
Successfully processed files are deleted.
<b>Test
Files are not processed.
Only use this mode to test the configurations of the file/FTP adapter or the Integration Engine/PCK. It is not suitable for productive operation.</b>
<b> Set to Read-Only</b>
Successfully processed files are given this attribute. Only writable files are processed. This selection is only available for the File System (NFS) transport protocol.
File As receiver you have FILE CONSTRUCTION MODE
<b>Create,Append,Add Time Stamp,Add Message ID,Add Counter.
,</b>
Cheers,
*RAJ* -
File Adapter archiving mode....
Putting message into send queue failed, due to: com.sap.aii.af.ra.ms.api.DuplicateMessageException: Message ID a7cbcf00-4e00-11db-bd7f-0018717400ed(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: ORA-00001: unique constraint (SAPSR3DB.SYS_C00135467) violated.
2006-09-27 17:17:47 Error Returning to application. Exception: com.sap.aii.af.ra.ms.api.DuplicateMessageException: Message ID a7cbcf00-4e00-11db-bd7f-0018717400ed(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: ORA-00001: unique constraint (SAPSR3DB.SYS_C00135467) violated
2006-09-27 17:17:47 Error Attempt to archive file "D:\SSNEDI\test\in\queue\20060926070906359.txt" after processing failed. Retry
source directory : D:\SSNEDI\test\in\queue
target directory : D:\SSNEDI\test\in\queue\FB
But, source directory not deleted 20060926070906359.txt.
Target directory exist file too.
what's the matter?Hi Kim,
If it is in test mode,the file wont get deleted in your source direcory. So the adpater will keep polling the file and the server will be flooded with messages. If it is in the delete mode file will be deleted,archive mode it will be moved in to the archived directory but in the test mode file will not be deleted from your source directory and will be polled continously by the adapter.
Also go thro' this link:-
Re: Archiving ftp files
Hope this provides a solution.
Regards.
Praveen -
Sleep mode - manual says wait before moving - why? Yoga 13
I thought that this unit had a solid state drive. Why am I having to wait for the hard drive per the manual? Was this a mistake? Do I need to really worry about this?
hi Machine,
I would say that you don't have to worry about this, as this was meant I believe for systems that have old IDE/SATA Hard disks.
I checked the Yoga 13 configuration and your system is solely running on SSD which don't have spinning disk to worry about.
Spoiler (Highlight to read)
Note:
Wait until the power indicator light starts blinking (indicating that the computer is
in sleep mode) before you move your computer. Moving your computer while the
hard disk is spinning can damage the hard disk, causing loss of data.
Note:
Wait until the power indicator light starts blinking (indicating that the computer is
in sleep mode) before you move your computer. Moving your computer while the
hard disk is spinning can damage the hard disk, causing loss of data.
Solid Cruver
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
Follow @LenovoForums on Twitter! -
File adapter Need to wait When Other Applicatio is writing the file
Hi All,
This is File to File Interface, iam using NFS here.
While other application is writing the file to the Folder, XI Sender File Adapter shld wait for certain time and then pick it up.
We have the Option " MSecs to Wait Before Modification Check" on File Sender Advanced TAB.
But it is no Use, it is not behaving correctly.
Please assist me on this
RegardsHey Vamsi,
I think you're good to go here. The behaviour is exactly as it should be. The polling interval takes priority when there is no file there but when there is a file there the modification check will take priority over polling interval so it will still wait the mandatory 2 minutes to ensure that no modification is taking place & that's exactly what you want. You don't want to pick up an incomplete file irrespective of when it was put there. So there will always be just over a 2 minute delay (or whatever you set the Msecs value to + a few seconds depending on where the polling cycle is when a file is written out but a max of 2 minutes & 19 seconds delay) when there is a file there but at least you'll have consistent data. If there is no file there the adapter will just poll every 20 seconds until a file arrives.
The 2 minute 'wait' step is exactly that. The adapter will see the file then wait 2 minutes & probably does a timestamp comparison or something. It doesn't do a modification check within those 2 minutes. Having said that, I don't see why you can't reduce the Msecs interval. My reasoning is that you basically want to establish whether it's still being wriiten out before you pick it up. Even if you set it to 5 seconds you should still be able to pickup whether the file is being modified (I'm assuming that the check is doing a timestamp comparison). That will significantly reduce your time wait period.
My assumption on the timestamp comparison was wrong It's actually does a comparison on file size when it reads the data in, see SAP Note (Point 3): [http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_xi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d383231323637%7d]
Another suggestion made on the note: Get the writing application to write the file out with an extension different to the one you're polling for. Then, after they have completed writing out the file, they can do a re-name to the extension that you're polling for. That could also speed up things.
Regards, Trevor
Edited by: Trevor Naidoo on Oct 8, 2009 9:38 AM -
File adapter picking up file before them is completely written
HI all
My problem is that, a sender communication channel (FTP) pick up the file before them is completely written on to the FTP folder.
the parameter "Msecs to Wait Before Modification Check" is in 6000, but the CC pick them up.
Please help!
Thanks.Hey
>>Msecs to Wait Before Modification Check
The above parameter is only applicable when picking file from NFS,it has no effect on FTP.
To solve your problem,please look at question 3 of SAP Note 821267
Thanks
Aamir -
File adapter - how to make shure a file is complete for sender/receiver?
Hi everybody,
I want to use the file adapter and a question arises for both sender and
receiver:
On the sender: How does the PI know when a file is complete for reading?
Can this be a problem (PI starts reading the file when it is not complete?)
On the receiver: How does the receiver know when a file written by
PI is complete? Does PI support some kind of write to tmpfile then rename
schema?
Thanks for any suggestions
Best regards
StefanHi Stefan,
On the sender: How does the PI know when a file is complete for reading?
Can this be a problem (PI starts reading the file when it is not complete?)
Yes, it could be a problem: Have a look at below from help.sap
Advanced Mode
To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.
● Msecs to Wait Before Modification Check
Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.
This parameter is not available if you have selected File Content Conversion as the Message Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.
This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.
Regards,
Carlos -
File Adapter-Processing Parameters
can one tell me the difference between and when to use the following processing parameters
poll interval(secs)
poll interval(msecs)
Retry Interval(Secs)
Advanced Mode & Msecs to wait before modificationHi,
from help.sap.com
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
<b>Poll Interval (secs)</b>
Number of seconds that the adapter must wait if no files are found for processing.
<b>Poll Interval (msecs)</b>
Additional waiting time in milliseconds.
If Poll Interval (secs) is set to null, processing times will be short and close to real time.
If Poll Interval (secs) and Poll Interval (msecs) are set to null, the adapter is only called once.
<b>Retry Interval (secs)</b>
Specify the number of seconds that the adapter is to wait before a file processed with errors is processed again.
If the value is set to null, then the adapter is canceled if an error occurs, even if a value greater than null is specified for Poll Interval (secs).
Regards,
michal
Maybe you are looking for
-
My client is asking for a P&L report Profit center wise but in that report he is asking to include below line items COGS: Direct Labor and Overheads Variances: Material rate variances Labor rate variances Labor usage variance Could you please advi
-
Format of Date Field in RAR background job history page
Hi Everyone, Is it possible to customize the format of the fileds: "last run", "next start" in RAR background job history page? By default it is in the format yyyy-mm-dd. I am just wondering my customer's requirement is possible or not?
-
when i use method showDocument with url: file:///d://SM/aa.htm?msg=123 to show a html page. then i use getDocumentBase() to get url of this page, but i only get a string "file:///d://SM/aa.htm" , how to get the message after "?" (msg=123) ???
-
Need to limit amount of visible characters in a field
I have a page that displays a list of projects. One of the fields is a description field and I'm trying to figure out how to have the description field display only about 200 characters instead of the whole description. Ideally, I'd like to have a li
-
Where can I download OS X Mavericks 10.9.0?
I need to upgrade my software to the latest OS X Mavericks software. However, I'm told that I need to upgrade to OS X Mavericks 10.9.0 before I can upgrade it further. But it seems this version is no longer available to download. So how am I supposed