DataLoad
Home
Getting Started
Full Integration
Load Delays
Commands

User Guide Home
DataLoad Home

Browser Control Load Delays

For most Browser Control loads all Delays can be safely set to 0, that includes those in the Delays window and *SLn commands in the spreadsheets. DataLoad will dynamically manage the load speed to match the speed at which Internet Explorer is working and there is no need to use any Delays unless it is required for the load to run more slowly than at maximum speed. In that case Delays may be use to further throttle load speed.

However, under certain circumstance Delays may still be required. Some processing in IE forms may use asynchronous code ("Ajax") and there is a slight delay between this request being made and it starting. Because the Ajax call is asynchronous the code making the request continues and may finish before the Ajax request has even started. During this small delay IE will report that it is idle. If this happens when the load is near the end of the form then DataLoad may continue to complete this record, e.g. press Save or open a new forms, etc, before the Ajax request has started. Although the time is brief when IE is idle but actually about to start an Ajax request, Browser Control is so fast that DataLoad may reach the end of the form before this idle time has complete. In that case a form error can occur. Ajax is widely used in browser-based forms so if an error occurs at the end of a form when DataLoad is fully managing load speed but the same error does not occur during slower loads then it is likely that the load is continuing even though some background processing is not complete.The solution is to insert a small delay in the load using the *SLn command. That delay just needs to be long enough to give IE time to start the request because after that time IE will report that it is busy until the request completes. It is not necessary for the DataLoad delay to be as long as the full Ajax request may take to complete because DataLoad will manage that delay dynamically.

Finally, If the load uses other windows in addition to Internet Explorer then Delays may be required to control the load speed in to those windows. However, Load Control may be used to control that part of the load and DataLoad will use Load Control and Browser Control where appropriate.