Dev Center
Table of contents

Thanks for Downloading Dynamic Web TWAIN 30-Day Trial!

Your download will start shortly. If your download does not begin, click here to retry.

Error Troubleshooting

Error Message - Uncaught TypeError: Cannot read properties of null (reading ‘appendChild’) or Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node’.


You may see the following errors when you open your application. These errors may be sporadic or may halt your application.

  • Uncaught TypeError: Cannot read properties of null (reading ‘appendChild’)

  • Uncaught TypeError: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node’


Typically, an application uses DWObject = Dynamsoft.DWT.GetWebTwain('dwtcontrolContainer') to create the object at the target container. There are certain conditions where Dynamic Web TWAIN’s initialization process will complete, but after initialization, the target container is not defined or remains null. You will then see the error when trying to upload your files.


Please check if your container is created dynamically (especially if you are using dynamic frameworks). There are two ways to address the issue.

(1) If you want to use dynamic initialization method, here is sample code to create the object dynamically:

        WebTwainId: 'myDWT'
    function(obj) {
        DWObject = obj;
        DWObject.Viewer.height = 400;
        DWObject.Viewer.width = 600;;
    function(err) {

(2) If you want to use default initialization method, please set Dynamsoft.DWT.AutoLoad to false and manually implement Dynamsoft.DWT.Load() after you confirm the container has been created.

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest Version (18.5)
    • Version 18.4
    • Version 18.3
    • Version 18.1
    • Version 18.0
    • Version 17.3
    • Version 17.2.1
    • Version 17.1.1
    • Version 17.0
    • Version 16.2
    • Version 16.1.1
    Change +