{"id":12564,"date":"2017-10-13T22:52:38","date_gmt":"2017-10-14T05:52:38","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=12564"},"modified":"2020-11-03T17:13:54","modified_gmt":"2020-11-04T00:13:54","slug":"kb0019203-folder-import-error-when-file-has-a-long-name","status":"publish","type":"post","link":"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/","title":{"rendered":"KB0019203 \u2013 Folder import error when file has a long name"},"content":{"rendered":"

Applies to: <\/strong>Ephesoft Transact 4.x and above<\/p>\n

Issue<\/strong><\/h2>\n

Folder import fails for a PDF with an error like the following one:<\/p>\n

Converted Tiff files count not equal to the the TIFF pages count. actualTiffFilesCount :: 0, expectedTifFilesCount :: 15 for batch instance ::BI9<\/p>\n

2017-10-12 10:56:39,418 [ERROR] [pool-1-thread-3] [com.ephesoft.dcma.imp.FolderImporter] – Converted Tiff files count not equal to the the TIFF pages count. actualTiffFilesCount :: 0, expectedTifFilesCount :: 15 for batch instance ::BI9<\/p>\n

2017-10-12 10:56:39,422 [ERROR] [pool-1-thread-3] [com.ephesoft.dcma.imp.service.ImportServiceImpl] – Converted Tiff files count not equal to the the TIFF pages count.<\/p>\n

com.ephesoft.dcma.core.exception.DCMAApplicationException: Converted Tiff files count not equal to the the TIFF pages count.<\/p><\/blockquote>\n

Root Cause<\/strong><\/h2>\n

Windows has a limit on path length equal to 260 characters. When a file name is very long, the path during file import is even longer since various directories are created with the name of the original file. This happens when Ephesoft calls Ghostscript to convert the PDF file to multiple single page TIFFs.<\/p>\n

Files with a name of around 50 characters are likely to experience this error, especially on versions previous to 4.1x<\/strong><\/p>\n

This error is extremely unlikely to happen on Linux as the maximum allowed path is 4094 characters.<\/p>\n

Solution<\/strong><\/h2>\n

Change the name of the file to something shorter.<\/p>\n

Net permissible file path length = 227 characters .<\/p>\n

File path + file name should be 227 characters max.<\/p>\n

If the total length exceeds 227, then you will see issues.<\/p>\n

Below is the formula.<\/p>\n

int permissibleLength = PERMISSIBLE_LIMIT_PATH_LENGTH_WINDOWS - PDF_PROCESSING_FOLDER.length() - 10;\r\nPERMISSIBLE_LIMIT_PATH_LENGTH_WINDOWS = 259\r\nPDF_PROCESSING_FOLDER.length() = 22<\/pre>\n

So net permissible file path length = 259 – 22 – 10 = 227<\/p>\n

The calculation above is provided for Windows, Linux OS has different calculations.<\/p>\n","protected":false},"excerpt":{"rendered":"

Applies to: Ephesoft Transact 4.x and above Issue Folder import fails for a PDF with an error like the following […]<\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12392,12377],"tags":[1430],"yoast_head":"\nKB0019203 \u2013 Folder import error when file has a long name | Ephesoft Docs<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KB0019203 \u2013 Folder import error when file has a long name\" \/>\n<meta property=\"og:description\" content=\"Applies to: Ephesoft Transact 4.x and above Issue Folder import fails for a PDF with an error like the following […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/\" \/>\n<meta property=\"og:site_name\" content=\"Ephesoft Docs\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-14T05:52:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-11-04T00:13:54+00:00\" \/>\n<meta name=\"author\" content=\"riyankadeo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"riyankadeo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/\",\"url\":\"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/\",\"name\":\"KB0019203 \u2013 Folder import error when file has a long name | Ephesoft Docs\",\"isPartOf\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\"},\"datePublished\":\"2017-10-14T05:52:38+00:00\",\"dateModified\":\"2020-11-04T00:13:54+00:00\",\"author\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/dc6cb612b4c38230b8b350f1d48ff26a\"},\"breadcrumb\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ephesoft.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KB0019203 \u2013 Folder import error when file has a long name\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\",\"url\":\"https:\/\/ephesoft.com\/docs\/\",\"name\":\"Ephesoft Docs\",\"description\":\"Intelligent Document Processing Made Easy\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ephesoft.com\/docs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/dc6cb612b4c38230b8b350f1d48ff26a\",\"name\":\"riyankadeo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/efb9f741b9638e9cdb593412bd568172?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/efb9f741b9638e9cdb593412bd568172?s=96&r=g\",\"caption\":\"riyankadeo\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"KB0019203 \u2013 Folder import error when file has a long name | Ephesoft Docs","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"KB0019203 \u2013 Folder import error when file has a long name","og_description":"Applies to: Ephesoft Transact 4.x and above Issue Folder import fails for a PDF with an error like the following […]","og_url":"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/","og_site_name":"Ephesoft Docs","article_published_time":"2017-10-14T05:52:38+00:00","article_modified_time":"2020-11-04T00:13:54+00:00","author":"riyankadeo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"riyankadeo","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/","url":"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/","name":"KB0019203 \u2013 Folder import error when file has a long name | Ephesoft Docs","isPartOf":{"@id":"https:\/\/ephesoft.com\/docs\/#website"},"datePublished":"2017-10-14T05:52:38+00:00","dateModified":"2020-11-04T00:13:54+00:00","author":{"@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/dc6cb612b4c38230b8b350f1d48ff26a"},"breadcrumb":{"@id":"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ephesoft.com\/docs\/kb0019203-folder-import-error-when-file-has-a-long-name\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ephesoft.com\/docs\/"},{"@type":"ListItem","position":2,"name":"KB0019203 \u2013 Folder import error when file has a long name"}]},{"@type":"WebSite","@id":"https:\/\/ephesoft.com\/docs\/#website","url":"https:\/\/ephesoft.com\/docs\/","name":"Ephesoft Docs","description":"Intelligent Document Processing Made Easy","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ephesoft.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/dc6cb612b4c38230b8b350f1d48ff26a","name":"riyankadeo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/efb9f741b9638e9cdb593412bd568172?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/efb9f741b9638e9cdb593412bd568172?s=96&r=g","caption":"riyankadeo"}}]}},"_links":{"self":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/12564"}],"collection":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/comments?post=12564"}],"version-history":[{"count":0,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/12564\/revisions"}],"wp:attachment":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/media?parent=12564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/categories?post=12564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/tags?post=12564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}