{"id":3699,"date":"2015-12-02T19:28:28","date_gmt":"2015-12-02T19:28:28","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=3699"},"modified":"2018-05-21T23:51:27","modified_gmt":"2018-05-21T23:51:27","slug":"define-a-unique-file-name-for-temporary-edirect-output","status":"publish","type":"post","link":"https:\/\/www.minisoft.com\/support\/define-a-unique-file-name-for-temporary-edirect-output\/","title":{"rendered":"Best Practice: Define a Unique File Name for Temporary eDirect Output"},"content":{"rendered":"<p>Some projects output files through eDirect that are picked up later by a related project. To avoid unpredictable results, alway create these files with unique file names. Some combinations of operating systems and Java runtimes permit multiple threads to access a file simultaneously, which can result in corrupt (comingled) data. The results might include email messages sent to the wrong recipients or the wrong data on an invoice. This error can come unpredictably and be difficult to repeat, but the log usually includes File Not Found errors indicating that this condition might exist.<\/p>\n<p>As a result, if your project creates data that goes to a database, email attachment, archive, or file, use a unique file name and check <em>\u201cCreate unique file name\u201d <\/em>to ensure a unique file name.\u00a0You can also create a unique file name by specifying a variable value that you are confident is always unique, such as an invoice number.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/12\/unique-filename.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3700\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/12\/unique-filename.png\" alt=\"unique-filename\" width=\"368\" height=\"203\" srcset=\"https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/12\/unique-filename.png 368w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/12\/unique-filename-300x165.png 300w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/12\/unique-filename-150x83.png 150w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/12\/unique-filename-250x138.png 250w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2015\/12\/unique-filename-326x180.png 326w\" sizes=\"(max-width: 368px) 100vw, 368px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some projects output files through eDirect that are picked up later by a related project. To avoid unpredictable results, alway create these files with unique file names. Some combinations of operating systems and Java runtimes permit multiple threads to access a file simultaneously, which can result in corrupt (comingled) data. The results might include email [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[406,405],"_links":{"self":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3699"}],"collection":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=3699"}],"version-history":[{"count":3,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3699\/revisions"}],"predecessor-version":[{"id":6761,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3699\/revisions\/6761"}],"wp:attachment":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=3699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=3699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=3699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}