How to XI pick latest file from folder.
hi,
I have one folder in that i got almost10 files one by one with some different time period..
My requirement is Every time XI Will pick latest file from that folder With out deleting previous file.
how it is possible.
Any special configuration in file adapter may be it is sender or receiver.
Please Clarify.
Thanks
Hi Venkata shiva ,
agree with Michael
you can have some java or scripts that will help you may be change the name of the latest file and that be picked up by your adapter, asuming you have changed settings of your adapter to pick the file with this name.
Significance : - this will also not posts your file at the receiver multiple times.
Thanks and Regards,
Vishal
Message was edited by:
vishal kharat
Similar Messages
-
How to Select the Latest file from Application Server?
Dear All,
I am working on object, which had requirement to Pick the file from application server.
The Application server contain the files in /temp/sms/ directory. The files are having the name Like smsqry_yyyymmddhhmmss.txt and I have to Pick the Latest file (Base on file name for eg. 'smsqry_20060713102333) from that all and after getting the file I have to delete the file from application server.
So How to do this.
Regardshi,
look function group EPSF-
esp. fm EPS_GET_DIRECTORY_LISTING
if you're looking fo OS-date and time
look here:Re: How do I convert MTIME to date and time?
A.
Message was edited by: Andreas Mann -
Error in picking the file from folder
If I have 100 files in a folder, if XI comes and picking the files from the folder, while picking 50 files connection was lost in between and they are remaining 50 files are there to pick, in this scenario what happens after connection established XI will collect remaining 50 files or again it starts from first.
Can anyone answer this question with explanation.This depends on what you have configure in
Processing parameters for File Sender communication channel:
Processing mode:
1. Archive : if you have set processing Mode as Archive then after reading the file, PI will transfer the file to Archive dir mentioned and will not consider in future for reading.
2. Delete : if you have set processing Mode as Delete, Then after reading the file PI will delete the file from FTP.
3. Test : If you have set processing Mode as Test ,then PI will keep the file as it is after reading so it will read the same file in future.
Thanks
Bhupesh -
Hello!
Here's the question with explaniation: How can i format the USB or Drive by clicking a button what's meant for it?
and the second question what's also in vb.net: How can i remove all files from folder ?
Here's the Look of program: *
Using the PC button, it will delete the free space of the PC, do you guys/girls know where it's location?Example Code:
Imports System.Runtime.InteropServices
Imports System.IO
Public Class Form1
Dim CBoxDrives As New ComboBox
WithEvents FButton As New Button
<DllImport("shell32.dll")> _
Private Shared Function SHFormatDrive(ByVal hwnd As IntPtr, ByVal drive As UInteger, _
ByVal fmtID As UInteger, ByVal options As UInteger) As ULong
End Function
Private Enum SHFormatFlags As Integer
SHFMT_ID_DEFAULT = &HFFFF
SHFMT_OPT_FULL = &H1
SHFMT_OPT_SYSONLY = &H2
SHFMT_ERROR = &HFFFFFFFF
SHFMT_CANCEL = &HFFFFFFFE
SHFMT_NOFORMAT = &HFFFFFFD
SHFD_FORMAT_FULL = 0 ' full format
SHFD_FORMAT_QUICK = 1 ' quick format
End Enum
Private Sub FButton_Click_1(sender As System.Object, e As System.EventArgs) Handles FButton.Click
If CBoxDrives.Text = "" Then
MsgBox("No Drive Selected")
Exit Sub
End If
Dim Iresult As ULong = SHFormatDrive(CType(Me.Handle.ToInt32, IntPtr), CUInt(Asc(CBoxDrives.Text.Substring(0, 1)) - Asc("A")), CUInt(SHFormatFlags.SHFMT_ID_DEFAULT), 1)
End Sub
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Me.Size = New Size(200, 100)
With FButton
.Size = New Size(50, 25)
.Location = New Point(5, 5)
.Text = "Format"
End With
Me.Controls.Add(FButton)
With CBoxDrives
.Size = New Size(50, 25)
.Location = New Point(75, 5)
.DropDownStyle = ComboBoxStyle.DropDown
End With
Me.Controls.Add(CBoxDrives)
Dim DrivesFound As Integer = 0
Dim allDrives() As DriveInfo = DriveInfo.GetDrives()
Dim d As DriveInfo
For Each d In allDrives
If ((d.DriveType = DriveType.Fixed) Or (d.DriveType = DriveType.Removable)) AndAlso Environment.GetEnvironmentVariable("SYSTEMROOT").StartsWith(d.Name) = False Then
CBoxDrives.Items.Add(d.Name)
DrivesFound += 1
End If
Next
CBoxDrives.SelectedIndex = DrivesFound - 1
End Sub
End Class -
How can One sender communication channel pick two file from two location
Hello
I have a requirement that how can One sender communication channel pick two file from two location.Both the file has same name...How to configure the one receiver communication channel.i dont have any IR,no mapping..Please help me...>
Soumitra Sinha wrote:
> Hello Vijay
> I already done the adapter specific message attribute.i am getting the file name properly.but that is nothing to do with my req.i am again clearing my problem:
> i have two folder folder a,folder b.Both has the same file credit0002. i have two destination folder i have one sender and one receiver channel.I dont have any IR.How one sender channel can pick file from two location and how one receiver channel can put in two location.please help me..
Ok now I get your requirement.
you cant achieve this - how one receiver channel can put in two location if you dont have a dynamic configuration defined i.e Adapter specific attributes.
easy way - involve IR mapping
else
have a adapter module to define your dynamic configuration.
Ref: /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules & /people/michal.krawczyk2/blog/2006/10/09/xi-dynamic-configuration-in-adapter-modules--one-step-further
Set the dynamic directory/file name etc for your receiver adapter. -
How to upload a text file from a shared folder and provide an o/p
how to upload a text file from a shared folder and provide an o/p containing the details in each order in the text file
Hi,
Use <b>GUI_UPLOAD</b> to upload a text file from a shared folder.
Use <b>GUI_DOWNLOAD</b> to download data in a file on the presentation server or use <b>OPEN DATASET, TRANSFER</b> and <b>CLOSE DATASET</b> statements to download data to the application server.
Now, I hope the code for data fetching, if required, is already present in the report.
Reward points if the answer is helpful.
Regards,
Mukul -
How can I bring a file from a folder on my desk top int this program and make it editable., in order to replace words or remove words or texts..? jn
Hi,
FormsCentral cannot be used to edit existing PDF documents. That functionality is available in Adobe Acrobat:
http://www.adobe.com/products/acrobat.html
Regards,
Brian -
How do I move a file from "Recents" in Adobe Reader for Android to a folder in "Documents"?
How do I move a file from "Recents" in Adobe Reader for Android to a folder in "Documents"?
Files from Google Drive are appearing in "Recents" where I cannot organize them hierarchically.
I cannot find a user manual for Adobe Reader for Android with this level of detail.Hi John,
Files opened via Google Drive are not listed in ‘Documents' section of Adobe Reader, because they are read only files. If you really want to save these files to ’Documents' then please follow below steps -
Open the file from Google drive in Adobe Reader.
Tap on the Comment icon placed at top toolbar(Second icon from the beginning)
You would encounter a 'Read-Only document’ dialog, tap on Save button.
Once you performed above steps , your file will be saved in /Download/Adobe Reader/ folder.
Hope this will solve your problem.
Thanks,
Adobe Reader Team -
How do I transfer PDF files from PC (Windows 7) to IPAD using Itunes 12.1.2. I would like to do files manually rather then auto synch. Previous versions let me drag file in Itunes to Ipad and files appeared under Ibook and then I could move them to an appropriate collection title. The interface appears to have changed in the latest ITunes version and I am not sure what the proper procedure is.
King_Penguin - Thanks it worked perfectly. I had my pdf files copied into ITunes on my PC but when I clicked on a pdf file to copy it I thought the sidebar would appear with my IPAD name and then I would drag it over. I didn't realize that I needed to click-and start dragging it towards the left-hand side for the sidebar to appear. It worked like a charm - THANKYOU!!!
-
How to pick a file from a website
Hi All,
I have a requirement like this. I need to pick a file from a website for which i have the link and the file name . Its a .csv file. can i use file adapter to pick that file? can i mention the http link in the source directory field? or suggest me some way to pick that file . Its a website not a web service.
reagrds
jhansiHI Hema,
A work around i see is to use run operating system command before message processing option in sender file adapter.
Here I'd write a .bat file which which will execute a java class..
Basically I'll write a java class to download the file from the URL and keep it. And this file will be picked up by XI.
May be the same thing can also be achieved using scripts but i have no idea on dat...
Any how, my java code segment wud be something like
try {
String webFile =
"http://www.dilbert.com/comics/dilbert/archive/images/dilbert2002222271107.gif";
URL url = new URL(webFile);
InputStream is = url.openStream();
FileOutputStream fos=new FileOutputStream("C://MyFolder//dilbert2002222271107.gif");
int oneChar;
while ((oneChar=is.read()) != -1)
fos.write(oneChar);
is.close();
fos.close();
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace(); -
How do I find/restore files from items in secure (File Vault) home folder? How do I find/restore files that crashed when in finder of secure (File Vault) home folder? When I go into Time Machine, I see earlier dates but can't see files in my User File. I have File Vault turned on and see my home folder as a sparsebundle. Do I neede to restore this in order to see files in my home folder. When I click on it to restore it gives me an estimated time of over 2 hours. Also tried to restore an Excel file I was working on when computer hung, so lost it without saving or naming it. Does it exist anyplace and can I restore it?
Thanks. I had pretty much figured out from other posts that I had better turn off File Vault for my home folder and use a disk utility sparse bundel for little information I wanted to secure. The information about File Vault 2 in Lion was new and useful though.
-
HT5260 How do you export RAW files from iphoto to burn folder or to send via email?
How do you export RAW files from iphoto to burn folder or to send via email?
In iPhoto export to a folder on the Desktop via the File ➙ Export ➙ File Export menu option with Kind=Original.
OT -
PI is not able to pick the file from the FTP folder
This is the FILE TO IDOC scenario. We have configured the file adapter. But its not able to pick the file from the specified directory. We have tried changing the transfer mode from Binary to Txt & also we have tried to put advance selection for source file but it didn't work. Its throwing the below error:
PI Adapter Log:
An error occurred while connecting to the FTP server '10.130.150.21:8529'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 451 Unexpected reply coderequested action aborted: local error in processing'. For details, contact your FTP server vendor.
Also we have contacted the FTP team & they told that PI is sending an unsupported command. So instead of taking the file TLOG.txt, its treating this file name a s a directory. Please find the logs from FTP end below:
FTP Log:
(207197)2/5/2013 14:48:25 PM - sysisappi (63.130.82.16)> 230 Logged on
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> FEAT
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> 211-Features:
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> MDTM
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> REST STREAM
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> SIZE
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> MLST type*;size*;modify*;
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> MLSD
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> AUTH SSL
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> AUTH TLS
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> PROT
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> PBSZ
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> UTF8
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> CLNT
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> MFMT
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> 211 End
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> PBSZ 0
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> 200 PBSZ=0
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> PROT P
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> 200 Protection level set to P
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> CWD /Qas
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> 250 CWD successful. "/Qas" is current directory.
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> CWD SAP_ORION
(207197)2/5/2013 14:48:26 PM - sysisappi (63.130.82.16)> 250 CWD successful. "/Qas/SAP_ORION" is current directory.
(207197)2/5/2013 14:48:27 PM - sysisappi (63.130.82.16)> CWD Inbound
(207197)2/5/2013 14:48:27 PM - sysisappi (63.130.82.16)> 250 CWD successful. "/Qas/SAP_ORION/Inbound" is current directory.
(207197)2/5/2013 14:48:27 PM - sysisappi (63.130.82.16)> CWD IRIIN04
(207197)2/5/2013 14:48:27 PM - sysisappi (63.130.82.16)> 250 CWD successful. "/Qas/SAP_ORION/Inbound/IRIIN04" is current directory.
(207197)2/5/2013 14:48:27 PM - sysisappi (63.130.82.16)> CWD TLOG.txt
(207197)2/5/2013 14:48:27 PM - sysisappi (63.130.82.16)> 550 CWD failed. "/Qas/SAP_ORION/Inbound/IRIIN04/TLOG.txt": directory not found.
(207197)2/5/2013 14:48:27 PM - sysisappi (63.130.82.16)> QUIT
(207197)2/5/2013 14:48:27 PM - sysisappi (63.130.82.16)> 221 Goodbye
It should list *TLOG.txt* but instead it is trying to get into a directory named *TLOG.txt*. same for other interface.
So me & my team is struggling for last couple of days to fix this issue.Please share your suggestionHi Sisir
The screen shot of your config doesn't seem to correspond to the FTP log. I say this because the * is dropped from file name pattern "*TLOG.txt" (comparing your config and the FTP log). Can you share an updated FTP log?
Sisir Das wrote:
"/Qas/SAP_ORION/Inbound/IRIIN04" is current directory.
(207197)2/5/2013 14:48:27 PM - sysisappi (63.130.82.16)> CWD TLOG.txt
(207197)2/5/2013 14:48:27 PM - sysisappi (63.130.82.16)> 550 CWD failed. "/Qas/SAP_ORION/Inbound/IRIIN04/TLOG.txt": directory not found.
(207197)2/5/2013 14:48:27 PM - sysisappi (63.130.82.16)> QUIT
Also, like Rajesh suggested, have you tried to manually check permissions by logging in, traversing the directory, and getting the file?
By the way, we always use backslash \ instead of forward slash in our configs. Not sure this would make any difference for you though. Also, I don't normally use a trailing \ at the end of the source directory path. -
how can I transfer music files from my iTunes account in my Mac to the iphone? I am using the Lion software & iOS5 for iphone 3GS.
http://manuals.info.apple.com/en_US/iphone_user_guide.pdf
-
How do I move music files from the startup disc to iTunes in the other internal hard disk os 10.5.8?
The music I want to move was in iTunes but is now just files. I had to reinstall a new iTunes and lost all my old music.
Thank you!That article is about using your iPod as an external hard drive, to move files from one computer to another computer. It is not related to your question.
You can't use iTunes to move song files from iPod to computer, except for songs you purchased from the iTunes Store (and you can also re-download purchases). However, there are third-party methods and utilities that can move song files from iPod to computer. If you do a Google search on something like "ipod transfer," you should get some links.
Once the song files are on your current computer, add them to that computer's iTunes library by dragging the files (or folder containing the files) to the iTunes window. After confirming everything is there (and fixing the data issue you mentioned) you can sync the iPod. You may want to do a Restore on the iPod, if it might have a data corruption issue, which will erase the iPod's hard drive, re-install the latest software, and set it to defautl settings.
Maybe you are looking for
-
Radio buttons not working in Opera 9.25
Radio buttons which I have created in a form work fine with Internet Explorer, Firefox and Safari, but disappear when I open the form in Opera 9.25. All I see are the words next to the space where the buttons should be. Is there something special I n
-
Tax code on plant material and vendor combination
Hi , I have created Tax code in FTXP and I have maintained conditions in FV11 in combintaion plant,vendor and material combination along with Tax code but while creating PO Tax code is not defaulting automatically. Am I doing correctly or I should do
-
my iphone 4 is acting like crap right i can't even restore it everytime i try to reboot it my iphone freezes at the apple logo it is ******* me off to the point where i just want to smash it how do i solve this problem please help?
-
When a folder in the library contains subfolders, and LR is set to show files in subfolders, when the parent folder is selected, and all pictures are exported, they all end directly in the export folder. It would be great to have an option to recreat
-
Hello, I will be very helpful if someone can direct me where to find the instructions how to disable a filed in the CRM web client. Thanks Iris