File sender adapter is not working
Hello All,
We are facing a problems with file sender adapter. Communication channel is not picking the files from the directory, but the status in RWB for that channel is 'Functioning'. We are not sure whether the channel is locked or any other problewm with adapter. (In Alternate option, we have created copy of that channel and when it is activated, it picked the file )
Can anyone help us how to identify whether channel is locked and any other solutions in this case.
Regards,
Sreenvias.
Hi Srinivas,
The file adapter ( The respective channel) is definitely locked in PI . Ideally for each polling interval a lock is being created and once the processing is over , the lock should be released/deleted automatically to allow further polling interval. If the lock is not released by the system automatically,further polling will not happen as expected. ( This may affect all sender file adapters as well. I would recommend to do a check in al sender file communication channels)
You can see/delete the locks in Visual admin.
Go to Server>Services->Locking adapter and click refresh
The entries for file adapter ( with name $XIAFFileAdapter) should be deleted by selecting those particilar entries and click delete selected locks.
If you have more than one node, then same should be done in all server nodes.
The temprory solution would be creating/copy the existing channel in ID with same properties and assign it into particular sender agreement.
But, the lock may be created again which potentailly stops all your file based interfaces. Hence i would suggest to use Timeout parameter avialable in file sender adapter which termiates FTP session as you defined, This should solve your issue permanently.
The FTP server do have thier own time out settings but if you don't defne any particulat time out in PI, the FTP server forcefully disconnects the FTP sessions which created locks in PI.
Hope this solves your issue.
PS: The same bahaviour would expected for all sender JDBC adapter as well
Similar Messages
-
File sender adapter: archiving not possible with transp.prot "filesystem,
Hi XI gurus,
in my FILE sender adapter I want to archive the processed files to a separate sub-directory of the "in" directory.
It works if I use transport protocoll "FTP" with a specific user
but it don't works when I use transport protocoll "file system (NFS)".
the xi user has all permission on the directories.
file system is on a UNIX machine.
Has anybody an idea why archiving only works with transf.protocoll FTP ?
Thanx very much in advance
regards
HansHi,
Check this thread for same problem Re: NFS Sender File Adapter Source Directory
Thanks! -
Sender Adapter Module Not Working
Hi,
I have changed an existing Sender Adapter Module code and deployed using SDM.
It was working fine but after some days it is not working as designed. Say for an example, the number of pipes(|) in each record is one less than usual number of pipes. It does not say any error in module but in my java mapping raising GENERIC Exception.
I had the same problem in Dev and now I am facing the same in QA.
When I checked the standalone code it is working fine. Any reason for this anomalous behavior?
Regards,
Manikandan RHi,
Could you give us more details about : your coding, input sample when error is raised ?
That'd help a lot
Chris -
File Sender Communication Channel not working
Hi All,
We have one file sender channel which sends file after every 3 hours.
But currently it has stopped the processing of file.
If we see in RWB it shows that "Correctly configured and started",but if we start and stop the chanel it doesnt show any processing started message.
File is there in the folder but the channel doesnt poll the folder to pick up the file.
We have refreshed the cache and activated the channel again.
But still no luck,does anybody have any idea?Hi Shweta,
Please check the parameters of your File adapter. There can be following possibility if File adapter is not picking the file :
1. File adapter is not active
2. Incorrect File name, Directory name or path,
3. File does not exist in the source directory.
4. If you are accessing file from other server (use FTP protocol) check you have READ and WRITE access.
Thanks
Farooq.
<b>*Rewards points if you find it useful*</b> -
File --> Send link will not work after Update Firefox 4.0 to 8.0
It is happening all the time.
Before update, the 4.0 version will work.File --> Send link will not work after Update Firefox 4.0 to 8.0
It is happening all the time.
Before update, the 4.0 version will work. -
Dynamic port configured for FILE adapter is not working
Hi,
I have a simple dynamic port in an orchestration that writes a file to a file location. Here is the configuration
================
FilePort(Microsoft.XLANGs.BaseTypes.Address) = "FILE://c:\\TestFolder\\Out";
FilePort(Microsoft.XLANGs.BaseTypes.TransportType) = "FILE";
================
When I run this orchestration, the dynamic port does not write the file to the folder, however I does not show any error either. It is always in "Ready to Run" state where the message is "Queued Awaiting".
I tried all sorts of combinations like FILE:// FILE:\\ File: file:// file:\\ etc... and also without the moniker, just c:\.... I get the same problem.
when I use a static port(subscribed to the same message) it works fine. When I use a static port ALONGWITH this dynamic port then both works fine !!! I receive 2 files.
but when I use only dynamic port it does not work!!
Anybody knows how to solve it.
THANKS IN AVANCE
PLEASE HELP
SuryaIt could be becasue you 're not passing in the file name, Try something like this..
SndPort_Dynamic(Microsoft.XLANGs.BaseTypes.Address)=@"file://C:\Test\Try\Out\Test1.xml";
But even when you don't pass the file name, i was expecting the erro to be like:
The FILE send adapter cannot open file C:\TestFolder\Out\ for writing.
Details: The system cannot find the path specified.
But try with File Name and restart the host instance after the change.
Or use somehting like this:
FilePort(Microsoft.XLANGs.BaseTypes.Address)=@"file://C:\Test\Try\Out\\%MessageID%.xml";
FilePort(Microsoft.XLANGs.BaseTypes.TransportType) = "File";
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful. -
Adapter file sender -archiving doesn't work sometimes
Hi everybody,
We are on PI 7.1 on windows 2008 server 64 bits
I have something strange..
I developped a few time ago a flow
File adapter => PI => SAP R/3 RFC
When the adapter file sender pick up the file, he should normally archive them.
The archived file is well created in a separated directory with an addition of timestamp and the normal process after is the deletion of original file.
The strange thing happens during the last operation. Sometimes it is deleted and sometimes it is not deleted. .
In the second case, the adapter file will retreat it after a few time => it generates an error of duplicate key (Of course in PI has already treated it). That case can happen more than 10 times until the delete of the file works.
I applied many other flows with the same principle but with other directories (on the same server) and that happens with that only one.
Does somebody have an idea what could be the origin of that strange behavior?
All the ideas are welcome.
Thank you in advance for your help.
E. KoralewskiWhen the file fails to be archived, the transaction should be rolled back (therefore, message wouldn`t be generated). Please apply both notes below and check if the issue persists.
[Note 1549500 - XPI File Adapter exactly once procedure fails|https://websmp230.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1549500]
[Note 1361305 - File sender adapter generates duplicate message IDs.|https://websmp230.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1361305] -
File Sender adapter not reading the first line
Hi,
I have a scenario configured from file to jdbc adapter.
However, I found a problem in my file sender adapter. My file adpater always not picking up the first line from my text even I have set the 'Document Offset' to 0.
Any Ideas? Thanks.
Regards,
PuaHi Latika Sethi,
My complete input text file is as below, it contains only 2 testing records:-
H1|DIZ1 |A0016507 |10000020|09/2007
H2|ABC0001
D|P|0001|Gaji Pokok | 1,000.09
D|D|0002|Denda | 1,000.00
D|P|0003|Elaun | 1,000.00
H1|PUA1 |A0016508 |10000021|09/2007
H2|ABC0002
D|P|0001|Gaji Pokok | 2,744.09
D|D|0002|Denda | 2,000.00
D|P|0003|Elaun | 2,000.00
After the message mapping, I found the pipeline existed in sxmb_moni as below:-
<?xml version="1.0" encoding="utf-8"?>
<ns:mt_rmp03B_filejdbc_sender xmlns:ns="urn:rmp03:pdrm:ips:jdbcjdbc">
<PaySlip>
..<Header2>
.... <IC>ABC0001</IC>
.. </Header2>
.. <Details>
.... <Jenis>P</Jenis>
.... <No>0001</No>
.... <Deskripsi>Gaji Pokok</Deskripsi>
.... <Jumlah>1,000.09</Jumlah>
.. </Details>
</PaySlip>
<PaySlip>
.. <Header1>
.... <Nama>PUA1</Nama>
.... <KWSP>A0016508</KWSP>
.... <NoGaji>10000021</NoGaji>
.... <Bulan>09/2007</Bulan>
.. </Header1>
.. <Header2>
.... <IC>ABC0002</IC>
.. </Header2>
.. <Details>
.... <Jenis>P</Jenis>
.... <No>0001</No>
.... <Deskripsi>Gaji Pokok</Deskripsi>
.... <Jumlah>2,744.09</Jumlah>
.. </Details>
</Payslip>
There are 2 payslips as for the top payslip node...Header1 tag is missing. It means that during the file sender step....the first line of my record which is :-
"H1|DIZ1 |A0016507 |10000020|09/2007"
is not read into the xi pipeline. Basically this is the problem i faced.
Has somebody facing the same problem before? Currently I have no choice but moved the First line of the text into Second line and left the first line of the text become null/ empty line. As such both records can be successfully read by the XI.
However what I wondered is sometimes clients will do insert the records into the first line and this might made some data loss.
Thanks... -
File sender adapter: trigger mail if file is not there
Hi,
I have an scenario where I have a file sender adapter, and I need to look for a file in a specific folder from a specific FTP site.
If the file is not present there, I need to trigger an alert to let some people know that the file was not found.
Is this possible? If so, how should I do it?
Thanks!You could also write an abap in your PI system to call the function 'EPS_GET_DIRECTORY_LISTING' against the FTP site/folder/filename(s) at a required interval if you don't want to use a BPM. This abap could also send an email if you so desired.
The general theory should be that if you can do something a simpler way then don't use BPM's if you can avoid them. -
Get filename from file sender adapter
Hi Experts,
I have a question regarding the file/ftp adapter (sender).
I have a directory with xml and pdf files. for every xml file there is a pdf file with the same filename. for example:
file1.xml
file1.pdf
file2.xml
file2.pdf
file3.xml
file3.pdf
Now I want to read the xml file with the file sender adapter. afterwards I want to read the related pdf file. for example: If I read the file file1.xml afterwards I want to read the pdf file file1.pdf with the file sender adapter. For this it is nessessary to get the filename from the xml file so that I can read afterwards the pdf file. How can I realise it?
Thanks and best regards
ChristopherHi srinivas,
thanks for your quick answer.
That the file adapter is not able to read pdf files is clear to me. In this case I only want to transport the pdf. that works fine. I tested it.
the problem is the following:
I have a xml file with the name "file1.xml". I read the xml file with the sender file/ftp adapter configured with filename "*.xml". Then I want to import the pdf file with the name "file1.pdf". Therefor I need the filename from the xml file.do you know what I mean? So XI has to know the filename of the xml to import the pdf with the same name ...
regards -
Hello All...
sysinfo: files to join, file1, file2, file3 output after joining the files should be sal.txt and the executable file is run.bat
We have a File Sender Adapter and we are trying to "Run an Operating System Command Before message Processing" where we execute run.bat, if we execute it manually this executable run.bat is ok, but if we try to use it from "run operating System command before message processing" it does not work (it does not create the sal.txt file in the operating system)
we are wondering if that is because file sal.txt in the field "file name" of "file access parameters" does not exist in the operating system before the file run.bat runs.
Any clue about this?.
RegardsHI Maru,
Why don't you try to run this command from the sender directory specified in your sender file adapter in your command prompt??
Does that result in success???
And also, Instead of using a .bat fie, use the following command
COPY "C:\MyFolder\file1.txt" + "C:\MyFolder\file2.txt" +"C:\MyFolder\file3.txt" "C:\MyFolder\sal.txt" -
Cant do a file get from external server using file sender adapter with ftp
Hi all,
Up until now our company has only used the file sender adapter with ftp protocol to get a file from our XI server for processing and input the file into an integration process
I have a requirement to do an ftp file get from an external server
From our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...). So all firewall issues and communications are fine
Unfortunately I cannot currently pull files from the external server using the XI file adapter with ftp protocol from the XI development server AWB017
FTP Connection Parameters: External server name using port 21, Data Connection is Passive, No security, I supply a userid and password
Processing Parameters: Processing Mode is Archive (I tried test but this did not work either)
No messages appear in the RWB
Is there something else that I need to set up in order for the external ftp get to work via the XI file adapter?
Regards,
MikeThanks for your responses.
I have found the error messages in the File Adapter Monitor
Scenario 1
When I prefix the source directory with a forward slash, eg <b>/Folder/Subfolder</b> the error message is as follows
<b>EST: Error: Error connecting to ftp server 'ip address': FTPEx: /Folder/Subfolder: The system cannot find the path specified</b>
Scenario 2
When I DO NOT prefix the source directory with a forward slash, eg <b>Folder/Subfolder</b> a different error message is returned
<b>Error: Retrieving file 'FILENAME.XML' failed unexpectedly: FTPEx: Folder/Subfolder: The system cannot find the path specified</b>
At least in this scenario the adapter has been able to identify the file on the external FTP site but cannot retrieve it
Questions
I thought that the backslash prefix for the source directory was mandatory but I am receiving an error in each scenario
I receive the same error message whether the Processing Mode is 'Archive' or 'Test'
The logs on the external ftp server seem to indicate that I am simply connecting, sending username and password then quiting straight away. I am not issuing any commands that they can see
I thought that being a Sender adapter it would inherently execute a Pull or Get command
To recap, from our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...). So all firewall issues, communications, userid and password are fine
Has anyone experienced these issues?
Please advise on next course of action?
Regards,
Mike -
Problem in file sender adapter for newline character
Hi All,
I'm trying to read a file of only one record with the following fields.
Name
Age
Place
<b>Each field is seperated by a new line</b> which is the cause of the problem.
<b>The problem is the value 'nl' for x.fieldSeperator is not been recognised in file sender adapter.</b>
The adapter creates a new record (new XML) for each individual field seperated by new line.
<b>I've tried even with the corresponding hexadecimal values '0x0a' and '0x0d'.</b>
Looking for some help.
Thanks,
Joe.Hi Shabarish,
Thanks for your reply. But I tried that too already... It also didn't work..
File adapter is successful... But it generates seperate records for each fields that's wat the prob is..
Thanks,
Joe. -
In my Scenario i want to configure file sender Adapter.But in Parameters
In my Scenario i want to configure file sender Adapter.But in Parameters, for Adapter Engine Column It Shows blank,Integration Server will not appear for that column.Finally It Gives Error- Adapter Engine is not Defined.
What is the Reason for this...
Please Clarify ASAP...
Thanks..Hi Chiru,
It seems that you may have missed some steps while doing the configuration. After doing all the activities in SLD and IR and activating all the components created in IR it should work.
Plz check that you have selected as Adapter Type as File and correct namepace in the next field. Transport Protocol as File System (NFS), Message Protocol as File and I hope after all these information you will get Integration Server in the Adapter Engine field.
If the problem persists please revert back.
Warm Regards,
Subhasha Ranjan -
AS2 error The FILE send adapter cannot open file
I have AS2 setup under biztalk. I have receive port which listen to HTTP adapter and keep listening on web site.Then there is corresponding send port which just write that file in folder . Send port just have filter for Receive adapter name.
It works fine, but some time I get error message
The FILE send adapter cannot open file <folder name\guid.txt > for writing.
Details: The system cannot find the path specified.
I am not able to understand what is error for this? Please help me to figure-out this.Specifying the Backup transport is not going to solve the problem. Specifying the backup transport in this case is something like addressing the symptom of the issue and not finding the solution to root cause of the issue.
As you specified, if the mentioned error only happens some time but not always. In this case, the message "The
FILE send adapter cannot open file <folder name\guid.txt > for writing." would just be a warning message. Just by setting the retry in the send port will solve the issue. i..e Since this issue occurs rarely, it may be short lived glitch.
So by setting the retry count (lets say 3 times) with retry interval (let say 5 mins), this issue can be easily mitigated. You would not lose the message. So during the glitch you would get this message as warning, send port will retry "after specified
retry interval so after 5 mins", so by that time chances of files transfer is high. So this problem can be easily handled just by having retry count and retry interval in send port.
But you need to find the actual cause for this issue or you need to find the permanent resolution for this issue.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.
Maybe you are looking for
-
I have a user name on my computer that was tied in with the domain name of the server at my workplace. I would access Firefox under this user name. I have now changed jobs, and for good and obvious reasons can no longer utilize my previous company as
-
Listeneing to a Change Table in a Database
Dear Java Coders, I would like to code a universal database synchronizer, I'm stuck at planning the project. My software is server-side; configuration files are in XML and Databases are universally configured via the configuration files. Now my only
-
After 10.9.2 mail does not start
I upgraded to 10.9.2 this morning. Mail will not start. I can't get spotlight to work. There are multiple crashes in the log such as this: 2/28/14 9:50:12.000 AM kernel[0]: CODE SIGNING: process 1495[com.apple.ShareK]: rejecting invalid page at add
-
Adding a field of Active Directory
Hello, In Active Directory we have a field called Office that is populated. We are using Portal 6.0 SP1 - which syncs with AD via a Remote Authentication Source called Domain and a Profile Source called AD Profile. SSO is enabled. In the AD Profile I
-
TAB BUTTON randomly not working properly?
I haven't been messing with my preferences or anything...my tab button will not allow me to tab any thing. It just keeps skipping lines. What do I do?! (Iwork '08)