Alert if there is no file transfer
Dear All,
Client needs to get a alert if there is no file transfer for a day(Interface will execute 2hrs per day).whether we can achieve this in PI 7.0 ?
Regards,
Manikandan
The standard functionality of the alert mechanism does not provide for this. You can however, try using a pre-processing script that will throw an exception if no file is found at the specified time. Use Availability Time planing mechanism to active your sender adapter at the desired point of time.
You can also refer the following links for more help on this.
Exception Throwing in case of "No File Found"
trigger email if no file found
The Other alternate
Create a ccBPM process. When the scenario starts, have the Sender channel as one of the steps and put a timeout for the correlation. Since no messages will come, correlation won't be met and it can then trigger an alert by going to the exception branch.
Regards
Pothana
Similar Messages
-
ALERT CONFIGURAION when ther is NO FILE situation
Hi Friends,
Need to raise an ALERT when there is no file in situation.
Interface will run at 10PM everyday, if there is no file in the IN folder, need to raise an alert.
Please anyone can help me on this.
Thanks,
Aravind.Hi,
The standard functionality of the alert mechanism does not provide for this. You can however, try using a pre-processing script that will throw an exception if no file is found at the specified time. Use Availability Time planing mechanism to active your sender adapter at the desired point of time.
You can also refer the following links for more help on this.
Exception Throwing in case of "No File Found"
trigger email if no file found
Regards -
Large file transfer problems over client/server socket
Hi,
I wrote a simple chat problem in which I can send files from client to client. The problem is when I send large files over 101 MB the transfer freezes. I do not even get any error mesages in the console. The files I am sending are of any type (Ex mp3, movies, etc...). I am serializing the data into a "byteArray[packetSize]" and sending the file packet by packet until the whole file has been sent, and reconstructed on the other side. The process works perfectly for files smaller than 101MB, but for some reason freezes after that if the file is larger. I have read many forums and there aren't too many solutions out there. I made sure to use the .reset() method to reset my ObjectOutputStream each time I write to it.
Here's my file sending code:
byte[] byteArray = new byte[defaultPacketSize];
numPacketsRequired = Math.ceil(fileSize / defaultPacketSize);
try {
int i = 0;
reader = new FileInputStream(filePath);
while (reader.available() > 0) {
if (reader.available() < defaultPacketSize) {
byte[] lastPacket = new byte[reader.available()];
reader.read(lastPacket);
try {
if (socket == null || output == null) {
throw new SocketException("socket does not exist");
output.writeObject(lastPacket);
output.reset();
output.writeObject("DONE");
output.reset();
output.close();
socket.close();
catch (Exception e) {
System.out.println("Exception ***: " + e);
output.close();
socket.close();
else {
reader.read(byteArray);
try {
if (socket == null || output == null) {
throw new SocketException("socket does not exist");
output.writeObject(byteArray);
output.reset();
catch (Exception e) {
System.out.println("Exception ***: " + e);
output.close();
socket.close();
reader.close();
catch (Exception e) {
System.out.println("COULD NOT READ PACKET");
Here's my file receiving code:
try {
// The message from the client
Object streamInput;
FileOutputStream writer;
byte[] packet;
while (true) {
streamInput = input.readObject();
if (streamInput instanceof byte[]) {
packet = (byte[]) streamInput;
try {
writer = new FileOutputStream(outputPath, true);
writer.write(packet); //Storing the bytes on file
writer.close();
catch (Exception e) {
System.out.println("Exception: " + e);
else if (streamInput.equals("DONE")) {
socket.close();
input.close();
break;
catch (Exception e) {
I'm looking for any way I can possibly send large files from client to client without having it freeze. Are there any better file transfer ways other than socket? I don't really want FTP. I think I want to keep it HTTP.
Any suggestions would be helpful.Thanks!
EvanI've taken a better look a the code you posted, and
there is one problem with the receiving code. You
keep repeatedly opening and closing the
FileOutputStream. This is not going to be efficient
as the file will keep needing to be positioned to its
end.Yes sorry I did change that code so that it leaves the file open until completely done writing. Basically I have a progress bar that records how far along in the writing process the client is, and when the progress bar reaches 100%, meaning the file is complete, the file.close() method is invoked. Sorry about that.
I also ran some memory tests using the "Runtime.getRuntime().totalMemory()", and "Runtime.getRuntime().freeMemory()" methods. I put these methods inside the loop where I read in the file and send it to the client. here's the output:
Sender's free memory: 704672
File reader read 51200 bytes of data.
767548 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 702968
File reader read 51200 bytes of data.
716348 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 701264
File reader read 51200 bytes of data.
665148 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 699560
File reader read 51200 bytes of data.
613948 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 697856
File reader read 51200 bytes of data.
562748 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 696152
File reader read 51200 bytes of data.
511548 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 694448
File reader read 51200 bytes of data.
460348 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 692744
File reader read 51200 bytes of data.
409148 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 691040
File reader read 51200 bytes of data.
357948 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 689336
File reader read 51200 bytes of data.
306748 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 687632
File reader read 51200 bytes of data.
255548 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 685928
File reader read 51200 bytes of data.
204348 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 684224
File reader read 51200 bytes of data.
153148 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 682520
File reader read 51200 bytes of data.
101948 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 680816
File reader read 51200 bytes of data.
50748 left to read.
Sender's runtime memory: 2818048
Sender's free memory: 679112
File reader read 50748 bytes of data.
0 left to read.
Creating last packet of size: 50748
Last packet size after setting it equal to byteArray: 50748
Here's the memory stats from the receiver:
Receiver's free memory: 639856
Receiver's total memory: 2842624
Receiver's free memory: 638920
Receiver's total memory: 2842624
Receiver's free memory: 637984
Receiver's total memory: 2842624
Receiver's free memory: 637048
Receiver's total memory: 2842624
Receiver's free memory: 636112
Receiver's total memory: 2842624
Receiver's free memory: 635176
Receiver's total memory: 2842624
Receiver's free memory: 634240
Receiver's total memory: 2842624
Receiver's free memory: 633304
Receiver's total memory: 2842624
Receiver's free memory: 632368
Receiver's total memory: 2842624
Receiver's free memory: 631432
Receiver's total memory: 2842624
Receiver's free memory: 630496
Receiver's total memory: 2842624
Receiver's free memory: 629560
Receiver's total memory: 2842624
Receiver's free memory: 628624
Receiver's total memory: 2842624
Receiver's free memory: 627688
Receiver's total memory: 2842624
Receiver's free memory: 626752
Receiver's total memory: 2842624
Receiver's free memory: 625816
Receiver's total memory: 2842624
Receiver's free memory: 624880
Receiver's total memory: 2842624
Receiver's free memory: 623944
Receiver's total memory: 2842624
Receiver's free memory: 623008
Receiver's total memory: 2842624
Receiver's free memory: 622072
Receiver's total memory: 2842624
Receiver's free memory: 621136
Receiver's total memory: 2842624
Receiver's free memory: 620200
Receiver's total memory: 2842624
Receiver's free memory: 619264
Receiver's total memory: 2842624
Receiver's free memory: 618328
Receiver's total memory: 2842624
Receiver's free memory: 617392
Receiver's total memory: 2842624
Receiver's free memory: 616456
Receiver's total memory: 2842624
Receiver's free memory: 615520
Receiver's total memory: 2842624
Receiver's free memory: 614584
this is just a sample of both receiver and sender's stats. Everything appears to be fine! Hope this message post isn't too long.
Thanks! -
Is there a generic File Transfer API out there somewhere? Here's what I'm after:
- Could be used to send a file to or receive a file from a remote computer.
- The implementation of the transport is encapsulated. Example transport implementations include FTP, RMI, direct socket, NFS reference.
I'm working on a transport method that aims to increase transfer performance over unreliable networks. If my app were programed to such an API, I would be able to easily substitute different transport strategies depending on network conditions.Sorry, I didn't read the whole thing.
That is the easy part. Just use the proxy design pattern. I've done and seen this in practice many times. It is the standard solution when you need to dynamically pick and choose the transport layer.
interface FileTransferProxy {
public void transferFile(String host, int port, File file) throws XYZ;
class FtpTransporter implements FileTransferProxy {
// impl goes here.
// Set the transport impl to use.
TransferUtil.setFileTransferProxy(new FtpTransporter());
// or
TransferUtil.setFileTransferProxy(new RmiTransporter());
// basic usage ...
FileTransferProxy proxy = TransferUtil.getFileTransferProxy();
proxy.transferFile(host, port, file); -
Alert Configuartion for File Transfer
Hello,
I need some pointers in setting up the alerts for the file transfer for the given two scenarios -
1. An alert is generated everytime the polling fails i.e. the file adapter does not find a file to be read
2. An alert is generated when the file is transferred. I am just doing the file transfer so I am not using the message interface.
One option for this is to generate the mail by using JMS adapter, but I would prefer alert creation.
Thanks.
Regards,
MayankHi,
With Alert Framework you can apply the alert notifications wherever the file transfer in XI will failed.
Refer
XI : How to Re-Process failed XI Messages Automatically
XI : How to Re-Process failed XI Messages Automatically
XI: Alerts - Step by step
The specified item was not found.
For successfull messages there will not be the alert notification available. But as its mentioned by Amir, you can send mail confirmation with mail adapter, or can go for JMS adapter for sending the successful messages.
Thanks
swarup -
Is there a way to transfer files from a mac-book to another computer?
I need to get files off of my damaged Macbook and I'm not sure how to do it. Is there a way to transfer files from my macbook to another computer? The damage is to the screen of my macbook and it is severe- you can only see the top left of screen, the rest is cracked/blacked out. Is there anything I can do?
If the MacBook has a FireWire port, hook it and the other computer up with a FireWire cable, start up the MacBook with the T key held down, and copy the files off.
(46211) -
I have all my music cd's on a hard drive as wav files when I try to add them to I tunes the files get there but no album info I end up with a bunch of track 1's by unknown artists. Is there a way to transfer each album over so it shows up like a normal CD
Try posting in a more appropriate forum, as this has noting to do with itunes U - the place where University/college/museums post education material.
-
Is there a way to transfer Aperture files to Photoshop CS5 for editing?
Is there a way to transfer Aperture files to Photoshop CS5 for editing? I recently had a crash of CS5 Bridge. It seems to have caused a problem with Aperture. So, I reinstalled both CS5 and Aperture. Before installing CS5 I uploaded NEF (Nikon RAW) files to Aperture. Now I have reinstalled CS5 I want to use it to edit the same photos from Aperture, as I know more about editing in CS5 than Aperture. I tried to export to CS5 but, Aperture would not give me that option. At least I could not find it.
You can set an external editor in the "Aperture Preferences -> Export " settings.
Just set this to CS5.
The resullt of your external edit will create a new version of your image. -
With the latest version of itunes I cannot transfer files to my apps. There is no "File Sharing" section.
Yes there is.
Connect the iPad to your computer. Launch iTunes and at the menu at the top of the screen, go to View>Show Sidebar. After you have the sidebar, click on your iPad name like you did in the past. Click on the Apps tab in the window on the right. Scroll down to File Sharing apps. -
Is there a way to transfer visualvoice mail audio files to desktop?
Is there a way to transfer visualvoice mail audio files to desktop?
None that I'm aware of but with the iPhone SDK - software developers kit being released at the end of next month, a 3rd party software developer may provide an avenue for this function and you can leave Apple feedback about this here.
http://www.apple.com/feedback/iphone.html -
Is there any way to use a file transfer protocol to upload files to icloud?
Is there any way to use a file transfer protocol to upload files to icloud?
Unfortunately, no.
You will need a 3rd party web host to upload your websites to. Depending on the version of iWeb you are using you have a couple of publishing options:
iWeb ’09 (3.0.4) you can publish to an FTP Server or a local folder. ( With the built in FTP in iWeb you will end up with an address like “www.YourDomain.com/sitename/Home.html )
iWeb ’08 you can publish your website to a local folder
Basically all Web Hosting companies are iWeb-compatible.
If you’re looking for a good hosting I would recommend IX Web Hosting I have been using them to host my own websites for several years now and that their customer support is awesome too.
http://jeffnitschke.com/IXWebHosting.html
http://jeffnitschke.com/wordpress/2012/06/how-do-i-move-my-mobileme-site-ix-web- hosting-blog/
"I may receive some form of compensation from my recommendation or link." -
I cannot access files I uploaded from an old computer. The email account to which some tracks are connected is deleted. For some reason my birth date doesn't work either. Is there some way to transfer the files to my current address and username?
Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
Apple's iWork suite (Pages, Numbers, and Keynote.)
Open Office (Office 2007-like suite compatible with OS X.)
NeoOffice (similar to Open Office.)
LibreOffice (a new direction for the Open Office suite.) -
Is there any way to transfer music files FROM your ipod TO your itunes
what happened was my original computer had itunes with all my music on it and the hard drive crashed. So now, my ipod is my only access to all those songs which were on my old computer. In purchasing a new computer, I was wondering if there is anyway to transfer all those songs from my ipod to my computer via itunes which I just recently installed????
any help would be awesome!!!!
Dell Windows XPOne way would be to use a third party utility, here are a couple:
iPod Agent: http://www.ipodsoft.com/index.php?/software/ipodagent
YamiPod: http://www.yamipod.com/main/modules/home/
There is also a manual method of accessing the iPod's hard drive posted in this thread: http://discussions.apple.com/message.jspa?messageID=797432#797432 -
Is there a way to transfer songs/files from the ipod classic back to the PC or Mac
Hi,
Is there a way to transfer somgs form the ipod classic back to the PC or Mac. My PC to which my ipod classic was synced crashed and i lost all of my original music fileshttp://www.yamipod.com/main/modules/home/
-
Is Sender File Adapter always throws error when there is no file?
Hi,
I have a simple question but can't find a straight answer to it. I have a Sender File adapter that configured to pick up file XXX* from FTP server every 1 hour. But a file can come every 2, 3, or 7 hours- no certain time.When there is no file I got "File not found " error. As we use alerts, this behaviour is not acceptable.
Does this error comes always if there is no file? Any possible way to avoid this error ?
Thanks for help.
NataliyaHi Ravi,
I can see the error in Runtime Workbench under CC monitoring. To be precise it says:
An error occurred while connecting to the FTP server '1X.1XX.XX.XX:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 552 RMS-E-FNF, file not found, ES4_SAP*'. For details, contact your FTP server vendor.
My ftp server has the following set up:
Server: xx.xxx.xx.xx
Port:21
Dataconnection:Active
Timeout:120
Connection secuirity: None
User name .... etc set up.
Connect mode: Per file transfer
Transfer mode:Text
QoS:EO
Pollinterval: 120 (for test purposes)
Processing Mode: delete
Can it be that its a ftp server generates error and sends back to XI?
Thanks,
Nataliya
Maybe you are looking for
-
Hi allz I have created a character report through wizard , in wizard there is template tab the last wizard of report i specify there predifned template to character mode for creating character report then i go to system parameter "MODE" properties th
-
Why won't smart playlists upload to iCloud when using itunes match, for use on my iOS devices?
-
I have a Cisco Airnet BR500E Bridge connection setup between two buildings. I lost communication today and when I look at the Ethernet hub at the other location the Power Light is blinking GREEN. After resetting the power, the Bridge appears to retur
-
Hi, I would like to know what is the maximum JMS connections weblogic server can handle anytime. And where do we set this parameter? we have a group of Message Listeners listening to a Queue on weblogic by open
-
Hi I have noticed that if you use a calc script to export your database from a Block storage cube, you can create a run away query. I was missing a parameter and ran a query to export some data - it just kept running, even after I tried to terminate