File Interface Question

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf File Interface Question

  • Creator
    Topic
  • #50879
    Robert Milfajt
    Participant

    We have an inbound fileset/ftp interface which files are received via FTP, and processed through to the appropriate destination.  Every so often Cloverleaf wants to read the file, while it is being FTP’d in and a file busy error causes the interface to drop into an error status.  Is there anyway to ignore the file busy and let Cloverleaf ignore the file on this iteration and pick it up the next time it scans the directory?

    Thanks,

    Bob

    Robert Milfajt
    Northwestern Medicine
    Chicago, IL

Viewing 5 reply threads
  • Author
    Replies
    • #67871
      David Barr
      Participant

      There are many ways of handling the problem. My suggestion is to write a Directory Parse proc that checks the file modification time of the file and makes sure that it hasn’t been modified for a few minutes before passing the filename back so that it gets picked up by Cloverleaf.  

      Ideally, the sender of the file should FTP the file in with an alternate name and send a rename command after the upload is complete.  Then you don’t have to worry about the file being incomplete.

    • #67872
      Robert Milfajt
      Participant

      The second idea is excellent.  Now I am off to do battle with the vendor.  Wish me luck!   😈

      Robert Milfajt
      Northwestern Medicine
      Chicago, IL

    • #67873

      We write our file procs to leave files alone that are not at least x minutes old. The interface keeps checking  for files every so often.

      -- Max Drown (Infor)

    • #67874
      Mark Walker
      Participant

      Hi,

      Sorry to ressurect an old thread, but I was wondering if there is a simple way of achiving the reverse of this situation using Cloverleaf. We are interfacing with an external system where they have requested that we rename files upon successful population, or move them to the desired location after transfer to avoid any problems with incomplete files etc, but I cant see a way of achieving this without going outside of using the inbuilt Fileset-FTP protocol.

      We have to turn these messages around really fast, so time based processing, or static filesize checks or whatever arent really an option.

      If anyone has any ideas it would be much appreciated.

    • #67875
      James Cobane
      Participant

      Mark,

      In the FTP-fileset protocol, there is the ‘Temporary File’ field in the protocol configuration that is used for this purpose; i.e. write the data to a temp file and rename upon completion.  You may want to test it out using this option.  I’m not sure what CL version your on, but this option exists in 5.6.

      Hope this helps.

      Jim Cobane

      Henry Ford Health

    • #67876
      Mark Walker
      Participant

      Thanks Jim,

      unfortunately it looks like a new feature inbetween 5.3 (our live version) and 5.6, which possibly answers if there is an easy way to achive this with Cloverleaf with keep software up to date!

Viewing 5 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,126
Forums
28
Topics
9,296
Replies
34,439
Topic Tags
287
Empty Topic Tags
10