{"id":12062,"date":"2017-04-24T07:48:56","date_gmt":"2017-04-24T14:48:56","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=12062"},"modified":"2020-09-01T12:53:45","modified_gmt":"2020-09-01T19:53:45","slug":"iis-incorrect-error-message-being-thrown-from-web-services","status":"publish","type":"post","link":"https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/","title":{"rendered":"IIS: Incorrect Error Message being thrown from Web Services"},"content":{"rendered":"

Applies to: <\/b>All versions of Ephesoft Transact<\/span><\/span><\/p>\n

Issue<\/b><\/span><\/h2>\n

You may see the following error message with the <\/span>copyDocumentType <\/b>web API if a document type already exists: <\/span><\/span>\u201cThe custom error module does not recognize this error\u201d.<\/span><\/p>\n

This is different than the expected error message for this issue: <\/span>\u201cName entered for new doctype already exists. Please enter a unique document name\u201d.<\/span><\/p>\n

Root Cause\u00a0<\/b><\/span><\/h2>\n

This error appears from the Microsoft IIS side and is not due to any issue in Ephesoft. This is specifically because IIS is not configured to <\/span>PassThrough<\/b> the existing error message.<\/span><\/span><\/p>\n

Solution<\/b><\/span><\/h2>\n

To resolve this issue, add the following to the <\/span>web.xml<\/b>, located at <\/span>[Ephesoft_Directory]<\/span><\/i>\\Application\\WEB-INF:<\/span><\/span><\/p>\n

<system.webServer><\/span>\r\n<httpErrors errorMode=\"DetailedLocalOnly\" existingResponse=\"PassThrough\"><\/span>\r\n<\/httpErrors><\/span>\r\n<\/system.webServer><\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"

Applies to: All versions of Ephesoft Transact Issue You may see the following error message with the copyDocumentType web API […]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12392,12369],"tags":[361],"yoast_head":"\nIIS: Incorrect Error Message being thrown from Web Services | 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=\"IIS: Incorrect Error Message being thrown from Web Services\" \/>\n<meta property=\"og:description\" content=\"Applies to: All versions of Ephesoft Transact Issue You may see the following error message with the copyDocumentType web API […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/\" \/>\n<meta property=\"og:site_name\" content=\"Ephesoft Docs\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-24T14:48:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-01T19:53:45+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\" \/>\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\/iis-incorrect-error-message-being-thrown-from-web-services\/\",\"url\":\"https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/\",\"name\":\"IIS: Incorrect Error Message being thrown from Web Services | Ephesoft Docs\",\"isPartOf\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\"},\"datePublished\":\"2017-04-24T14:48:56+00:00\",\"dateModified\":\"2020-09-01T19:53:45+00:00\",\"author\":{\"@id\":\"\"},\"breadcrumb\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ephesoft.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"IIS: Incorrect Error Message being thrown from Web Services\"}]},{\"@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\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"IIS: Incorrect Error Message being thrown from Web Services | Ephesoft Docs","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"IIS: Incorrect Error Message being thrown from Web Services","og_description":"Applies to: All versions of Ephesoft Transact Issue You may see the following error message with the copyDocumentType web API […]","og_url":"https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/","og_site_name":"Ephesoft Docs","article_published_time":"2017-04-24T14:48:56+00:00","article_modified_time":"2020-09-01T19:53:45+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/","url":"https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/","name":"IIS: Incorrect Error Message being thrown from Web Services | Ephesoft Docs","isPartOf":{"@id":"https:\/\/ephesoft.com\/docs\/#website"},"datePublished":"2017-04-24T14:48:56+00:00","dateModified":"2020-09-01T19:53:45+00:00","author":{"@id":""},"breadcrumb":{"@id":"https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ephesoft.com\/docs\/iis-incorrect-error-message-being-thrown-from-web-services\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ephesoft.com\/docs\/"},{"@type":"ListItem","position":2,"name":"IIS: Incorrect Error Message being thrown from Web Services"}]},{"@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":""}]}},"_links":{"self":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/12062"}],"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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/comments?post=12062"}],"version-history":[{"count":0,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/12062\/revisions"}],"wp:attachment":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/media?parent=12062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/categories?post=12062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/tags?post=12062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}