Create Flat File

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Create Flat File

  • Creator
    Topic
  • #53227
    Joe Ferrare
    Participant

      I am creating a flat file in an outbound thread. The Protocol is Protocol – File. I’ve also checked Append to File. I have no problems writing to to the file. If the file name doesn’t exist, it looks like the inbound data is being processed and going thru the outbound. However, the file doesn’t get created. My question is, does the file have to exist? If not, what might I be missing, that needs to be done to create the file if it doesn’t exist?

      If I bounce the thread, the file does get created empty, and then I can write to it. I just need to know if the file needs to exist, or what I would do to create it, if it doesn’t exist.

      Thanks,

      Joe

    Viewing 3 reply threads
    • Author
      Replies
      • #76975
        James Cobane
        Participant

          Joe,

          You should not have to create the file.  The file should get created by the thread if it doesn’t exist; you specify the filename in the thread configuration.  However, if you delete the file with the thread still running, you will probably have an issue.  

          Jim Cobane

          Henry Ford Health

        • #76976
          Joe Ferrare
          Participant

            Jim,

            Thank you for your response. I do have the file name defined in the thread and I have deleted it with the thread up. That may very well be the root of the problem.

            Thanks,

            Joe

          • #76977
            Robert Kersemakers
            Participant

              Hi Joe,

              I think in the past I have noticed this behaviour with the File protocol as well. I always use the Fileset protocol; it basically does the same job without the feture you describe. You should give that a try.

              Cheers,

               Robert

              Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

            • #76978
              Joe Ferrare
              Participant

                Robert,

                Thanks for the information.

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