---
layout: default-layout
needAutoGenerateSidebar: true
title: Dynamic Web TWAIN SDK API - Appendix
keywords: Dynamic Web TWAIN, Documentation, API Appendix
breadcrumbText: API Appendix
description: Dynamic Web TWAIN SDK Documentation API Appendix Page
---

# Web TWAIN Appendix

## Error List

| Error Code | Error Message |
|:-|:-|
|0 | Successful |
|-1001 | General failure |
|-1002 | Not enough memory to perform operation |
|-1003 | Source Manager unable to find the specified Source |
|-1004 | Source is connected to maximum supported number of applications |
|-1005 | Source or Source Manager reported an error to the user and handled the error |
|-1006 | Capability not supported by Source or operation is not supported on capability, or capability had dependencies on other capabilities and cannot be operated upon at this time |
|-1009 | Unrecognized operation triplet |
|-1010 | Data parameter out of supported range |
|-1011 | Operation out of expected sequence |
|-1012 | Unknown destination in DSM_Entry |
|-1013 | Capability not supported by source |
|-1014 | Operation not supported by capability |
|-1015 | Capability has dependency on other capability and cannot be operated upon at this time |
|-1016 | File System operation is denied (file is protected) |
|-1017 | Operation failed because file already exists |
|-1018 | File not found |
|-1019 | Operation failed because directory is not empty |
|-1020 | The feeder is jammed |
|-1021 | The feeder detected multiple pages |
|-1022 | Error writing file |
|-1023 | The device went offline prior to or during this operation |
|-1030 | Can not open Source Manager "TWain_32.dll" is missing or is in use by another application |
|-1031 | Sequence error. The operation can not be performed upon the current Source Manager or Source state |
|-1032 | User cancelled the operation |
|-1033 | Invalid Enumerations |
|-1034 | Invalid value |
|-1035 | There is no image |
|-1036 | Error reading file |
|-1070 | BMP file or format error |
|-1071 | JPEG file or format error |
|-1073 | Only 24-bit true color and 8-bit gray-scaled images are supported for JPEG compression |
|-1080 | General TIFF error |
|-1081 | TIFF format error or not supported |
|-1090 | BMP format error or not supported |
|-1100 | PNG format error or not supported |
|-1110 | Unrecognized file extension |
|-1119 | This PDF file is not supported by the Core module. You may need to activate your PDF Rasterizer license to support this PDF file. Please contact support for further information. |
|-1120 | Failed to read the PDF file because it's encrypted and the correct password is not provided.  |
|-1126 | The specified module could not be found. |
|-1200 | PDF format error or not supported |
|-2007 | The system is busy, some operations are not completed. Please try later |
|-2137 | Cross-Origin Resource Sharing (CORS) policy is blocking the access. Please contact the Administrator to configure 'Access-Control-Allow-Origin'.|
|-2207 | The Dynamic Web TWAIN Service installed on your computer is outdated and no longer works with the JavaScript code on the website \| The installed Dynamic Web TWAIN Service (old version) is incompatible with the JavaScript version x.x.x used on this website. \| The installed Dynamic Web TWAIN Service (version x.x.x) is incompatible with the JavaScript version x.x.x used on this website. |
|-2208 | The connection with the local Dynamic Web TWAIN Service encountered a problem and has been reset |
|-2209 | The HTML5 (Chrome&Firefox) edition does not support this method or property |
|-2210 | You cannot call this method on this WebTwain instance because it does not use the default viewer. |
|-2211 | The element is already bound to the viewer. |
|-2217 | Missing dependent files for OCR Kit.  |
|-2300 | Http upload error: the HTTP Server cannot empty |
|-2301 | Network error |
|-2302 | The result format is invalid |
|-2303 | Upload cancelled |
|-2304 | Http download error: the url is invalid |
|-2305 | User cancelled the operation |
|-2306 | Upload Error: the upload file cannot be empty |
|-2307 | The width or height you entered is invalid |
|-2308 | The Dynamic Web TWAIN Service has been stopped |
|-2309 | The LocalFile is empty in the Function |
|-2310 | The Enumerations is out of range |
|-2311 | The RemoteFile is empty in Barcode Download Function |
|-2312 | The file length is empty |
|-2313 | The size of the images you are about to upload has exceeded the allowed size |
|-2314 | The parameter cannot be empty |
|-2315 | The Enumerations is out of range |
|-2316 | The RemoteFile is empty in Webcam Download Function |
|-2317 | The RemoteFile is empty in Pdf Download Function |
|-2318 | Invalid destination file |
|-2319 | Invalid source file |
|-2320 | Invalid file |
|-2321 | The Enumerations is out of range |
|-2322 | The left or top or right or bottom you entered is invalid |
|-2325 | The license is invalid. \| The current product key is empty or invalid. |
|-2326 | The Dynamic Web TWAIN license expired${sDate}. Please contact the website developer for further assistance. \| The document scanning SDK license expired${sDate}. Please contact the website developer for further assistance. \| The Dynamic Web TWAIN product key expired${sDate}. Please contact the website developer for further assistance. \| The document scanning SDK product key expired${sDate}. Please contact the website developer for further assistance. |
|-2327 | The current product key does not support Chrome. Please contact the site administrator |
|-2328 | The current product key does not support Firefox. Please contact the site administrator |
|-2329 | The current product key does not support IE. Please contact the site administrator |
|-2330 | The current product key does not support Edge. Please contact the site administrator |
|-2338 | The current product key does not support Webcam. Please contact the site administrator |
|-2339 | The current product key does not support pdf rasterizer. Please contact the site administrator |
|-2340 | The license for the module OCR Kit is not found or has expired. |
|-2342 | The domain of your current site does not match the domain bound in the current product key. Please contact the site administrator |
|-2343 | The current product key does not support your browser. Please contact the site administrator |
|-2344 | The current product key does not support Windows OS. Please contact the site administrator |
|-2345 | The current product key does not support MAC OS. Please contact the site administrator |
|-2346 | The current product key does not support Linux OS. Please contact the site administrator |
|-2347 | The current product key does not support your OS. Please contact the site administrator |
|-2348 | The current product key is invalid because it's generated with the licenses of a different major version |
|-2349 | The current product key does not include a license for reading barcode. Please contact the site administrator |
|-2350 | The indices cannot be empty |
|-2351 | You cannot upload more than one image when the format is BMP, JPG or PNG |
|-2352 | The indices are out of range |
|-2353 | The header name being used is a protected keyword and is not allowed |
|-2354 | The header name cannot be empty |
|-2355 | The header name cannot be null |
|-2356 | The header name cannot be undefined |
|-2357 | The header name you entered is invalid |
|-2358 | The type of the parameter indices must be an Array |
|-2359 | The Enumerations is out of range |
|-2360 | The Enumerations is null or undefined |
|-2361 | You cannot convert more than one image to base64 string when the format is BMP, JPG or PNG |
|-2362 | Convert to base64 failed |
|-2363 | The data format is not supported. |
|-2365 | The url is invalid. |
|-2366 | Converting images to a base64 string failed. |
|-2367 | Invalid value for the parameter segmentUploadThreshold |
|-2368 | Invalid value for the parameter moduleSize |
|-2369 | The module for Dynamic Web TWAIN has failed to download |
|-2370 | The current product key is invalid. Please contact the site administrator |
|-2372 | You cannot convert more than one image to binary when the format is BMP, JPG or PNG |
|-2375 | The left or top or right or bottom you entered is invalid. |
|-2376 | The generate url failed. |
|-2377 | Failed to set Image Capture Driver Type. |
|-2378 | Invalid value for the tiff tag code. |
|-2380 | Please make sure the Uploader Module has been installed. |
|-2381 | scanSetup is invalid. |
|-2382 | Scanner setup error: Invalid Transfer Mode. |
|-2383 | Scanner setup error: fileXfer is invalid. |
|-2384 | Scanner setup error: Invalid fileName in fileXfer. |
|-2385 | Scanner setup error: Invalid fileFormat in fileXfer. |
|-2386 | Output setup error: Invalid httpParams in outputSetup. |
|-2387 | Output setup error: Invalid type in outputSetup. |
|-2388 | Output setup error: Invalid url in outputSetup.httpParams. |
|-2389 | Output setup error: Invalid fileName in outputSetup.httpParams. |
|-2390 | Output setup error: Invalid format in outputSetup. |
|-2391 | Invalid event name. |
|-2392 | The current product key does not support Safari. Please contact the site administrator. |
|-2393 | Failed to convert the data to blob. |
|-2394 | Invalid tag name. |
|-2395 | The module for Dynamic Web TWAIN failed to download.|
|-2396 | The current product key is invalid. Please contact the site administrator. |
|-2397 | API + " doesn't work under current settings." |
|-2399 | Invalid imageId.|
|-2400 | API + " doesn't work under current settings." |
|-2401 | Failed to load image: XXX |
|-2416 | Invalid parameter. |
|-2417 | The left or top or right or bottom you entered is invalid. |
|-2418 | The width you entered is invalid. |
|-2419 | The height you entered is invalid. |
|-2420 | The width or height is out of image size. |
|-2423 | The index is invalid. |
|-2426 | You have used a full license with a trial license which is not permitted. Please check and update Dynamsoft.DWT.ProductKey. |
|-2428 | Tiff tag count has exceeded the limit. |
|-2429 | The method SelectSource() must be invoked asynchronously (i.e. with callback functions) when ImageCaptureDriverType is set to TWAIN_AND_ICA or TWAIN_AND_TWAIN64. |
|-2432 | Operation in progress, please try again when the current operation has finished. |
|-2436 | Mixed Content: The page at "' + url + '" was loaded over HTTPS, but requested an insecure resource "' + serverUrl + '/ddm/18625/ddm/SearchScanner". This request has been blocked; the content must be served over HTTPS. |
|-2438 | SelectSource cannot be used synchronously when Object is created by CreateRemoteScanObjectAsync. Please use SelectSourceAsync instead. |
|-2439 | You cannot call the method bindViewer() when Dynamsoft.DWT.UseDefaultViewer is set to false. |
|-2444 | A license can only be specified once and has already been set using the ProductKey API. |
|-2500 | An ImageEditor already exists. |
|-2501 | A ThumbnailViewer already exists. |
|-2502 | A CustomElement already exists. |
|-2504 | The ImageEditor object has been disposed. |
|-2505 | This ThumbnailViewer doesn't exist. |
|-2506 | The ThumbnailViewer object has been disposed. |
|-2507 | This CustomElement doesn't exist. |
|-2508 | The CustomElement object has been disposed. |
|-2510 | The callback is not a function. |
|-2511 | Parameter 'element' is required. |
|-2512 | Parameter 'element' doesn't instanceof HTMLDivElement. |
|-2513 | The WebTwain instance has been destroyed and can not be used anymore. |
|-2514 | Invalid property value. |
|-2517 | Old tag name is required. |
|-2518 | New tag name is required. |
|-2519 | The current mode does not support setting the cursor to zoom. |
|-2530 | Document name cannot be empty. |
|-2531 | Document name is not a string. |
|-2539 | The current product key is not for version ${currentVer}. Please contact the site administrator. |
|-2540 | The document does not exist. |
|-2541 | The document already exists. |
|-2543 | You are using two different generations of Dynamsoft licenses. Please check the "Dynamsoft.DWT.ProductKey" specified in your application. |
|-2546 | The license is invalid. |
|-2548 | You cannot call this function when Dynamsoft.DWT.UseDefaultViewer is set to false. |
|-2549 | You cannot call this function when there is no ui binding. |
|-2612 | The devices must be an Array. |
|-2613 | The Dynamic Web TWAIN Service on ${serviceName} has been stopped. |
|-2614 | The Dynamic Web TWAIN Service has been restarted. |
|-2615 | User cancelled the operation. |
|-2616 | Invalid image format type. |
|-2618 | Only single index selection is allowed when enumImageType is set to BMP, JPG or PNG. |
|-2619 | Only single index selection is allowed when enumImageFormatType is set to url. |
|-2620 | The RemoteScan object has been disposed. |
|-2621 | Dynamsoft.DWT.Containers was not set. |
|-2622 | Please do not set enumImageType to "IT_MULTIPAGE_PDF", "IT_MULTIPAGE_TIF" or "IT_ALL". |
|-2623 | Saving multiple images is not allowable when the selected output format is BMP, JPG or PNG. |
|-2624 | The element within Dynamsoft.DWT.Containers should be a valid object. |
|-2625 | Error: The WebTwainId cannot be empty string while creating a Dynamic Web TWAIN object. |
|-2626 | Error: The ContainerId cannot be empty string while creating a Dynamic Web TWAIN object. |
|-2701 | The OCR Kit feature is only supported on x64 versions of Windows.  |
|-2800 | Please make sure the Dynamic Web TWAIN Service has been installed. |
|-2801 | Invalid response data was returned from the Dynamic Web TWAIN Service. |
|-2802 | The file dynamsoft.webtwain.config.js timed out while loading. |
|-2803 | Loading the WebTwain JavaScript source files has failed. |
|-2804 | Loading the WebTwain css files has failed. |
|-2805 | Error: The "WebTwainId" is not a string. |
|-2806 | Error: The argument passed to the parameter "containerId" is not a string. |
|-2807 | Error: The element specified by the id XXX doesn't exist. |
|-2808 | The license for v' + majorVersion + ' Service Core Module has expired. |
|-2809 | The license for v' + majorVersion + ' Service Core Module is not found. |
|-2810 | The product key for the current operating system is missing the Service Core license. Please contact the site administrator. \| The current product key does not support REST Call for the current operating system. |
|-2812 | Error: Duplicate ID detected while creating a Dynamic Web TWAIN object. |
|-2813 | Error: The ID of the target DIV for the new DWT object is invalid. |
|-2814 | Error: The Dynamic Web TWAIN module is not installed. |
|-2815 | Error: Duplicate ContainerId detected while creating a Dynamic Web TWAIN object. |
|-2816 | HTTP process error: XXX |
|-2817 | The Connection from the insecure (HTTP) web page failed for HTST. |
|-2818 | The Dynamic Web TWAIN Service SSL certificate has expired. |
|-2819 | The Dynamic Web TWAIN Service SSL certificate is invalid. |
|-2820 | The Connection from the insecure (HTTP) web page to the local "Dynamic Web TWAIN Service" failed! |
|-2821 | The Dynamsoft Service is not ready, please try again later. |
|-2822 | The WebTwain JavaScript lts.js load failed. |
|-2823 | The http url redirected. |
|-2824 | The Connection from the web page failed. Please make sure the Dynamic Web TWAIN Service is running. |
|-2825 | Failed to setup the Default Dynamic Web TWAIN Service. |
|-2826 | Failed to connect the Dynamic Web TWAIN Service on ${name} |
|-2827 | Failed to get Machine ID. |
|-2828 | Invalid PDF Convert Mode Value. |
|-2829 | The type of the PDF password must be a string. |
|-2830 | The PDF resolution must be a positive number. |
|-2831 | The PDF max width must be a positive number. |
|-2832 | The PDF max height must be a positive number. |
|-2833 | The PDF render grayscale must be a boolean. |
|-2834 | The PDF reader options is invalid. |
|-2835 | Failed to load CSS file "{filename}". |
|-2839 | The DocumentCombiner object has been disposed.|
|-2840 | The file type only supports PDF or TIFF.|
|-2841 | Add failed, the filetype of the Blob is different from the filetype specified in the createDocumentCombiner parameter.|
|-2843 | The blob cannot be empty.|
|-2844 | Only Blob of JPEG, PNG, BMP, TIFF and PDF image types can be saved.|
|-2845 | Only Blob of JPEG, PNG, BMP, TIFF and PDF image types can be uploaded.|
|-2846 | The uid cannot be empty.|
|-2847 | The uid is invalid.|
|-2848 | The capability value is out of range.|
|-2849 | The password must not exceed 32 characters in length.|
|-2850 | The password is not a string.|
|-2851 | The password must not exceed 32 characters in length.|
|-2852 | The password is not a string.|
|-2853 | The imageId cannot be empty.|
|-2854 | The imageId does not exist.|
|-2855 | The blob cannot be empty.|
|-2856 | Cannot convert blob to array buffer. \| Invalid blob value. |
|-2857 | Invalid blob value. |
|-2901 | Source document does not exist. Please check the document name or create the document before performing this operation. |
|-2902 | Target document does not exist. Please check the document name or create the document before performing this operation. |
|-2905 | This API is not supported on the current operating system. Please contact your system administrator. |
|-2906 | After initialization, the product key cannot be changed. |
|-2907 | Starting from version 19, ActiveX controls are no longer supported. |
|-2908 | The parameter is not a Dynamic Web TWAIN object. |
|-2909 | Access to the local scanning service is blocked. |
|-2910 | The OS print functionality is not supported on the current operating system. |
|-2911 | Please grant access to the local scanning service. |
|<= -3000 | See ErrorString property for details |

<!-- |-2826 | Failed to connect the Dynamic Web TWAIN Service on [' + name + ']. | -->

## Dynamsoft License Server Error List

| Error Code | Error Message                                                                    |
| :--------- | :------------------------------------------------------------------------------- |
| -20100     | The standby DLS refuses to provide service while the main DLS is working.        |
| -20100     | DLS refuses to provide service while under construction.                         |
| -20101     | The handshake code you are using does not exist on the Dynamsoft License Server. |
| -20102     | Session password is incorrect.                                                   |
| -20103     | AppDomain for handshake is not matched.                                          |
| -20104     | No item matched. Please check your handshake and client settings.                |
| -20105     | License item does not exist.                                                     |
| -20106     | Product is not matched.                                                          |
| -20107     | Version mismatch.                                                                |
| -20108     | DeploymentType is not matched.                                                   |
| -20109     | Edition is not matched.                                                          |
| -20111     | License has expired.                                                             |
| -20111     | License for this ip has expired.                                                 |
| -20112     | License has not yet taken effect.                                                |
| -20113     | This license item "+item.getLicenseItemId()+" has been invalid.                  |
| -20114     | AppDomain for licenseItem is not matched.                                        |
| -20115     | ChargeWay for licenseItem is not matched.                                        |
| -20120     | License has exceeded its limit.                                                  |
| -20151     | Cloned device detected.                                                          |

