How do I resolve error code -4311?

Document type: Tech doc  
Associated product(s): Product name: Pro Web Version: 4.0 + Implementation: Web API
Views: 600  |  Created: 2 years agoLast updated: 2 years ago

How do I resolve error code -4311?

Summary

When using QAS Pro Web 6 with a metered licence, you may experience the following error

Server reports that searching is not available

Error: -4311 – Engine cannot be selected

This error may present itself in either the Test Harness, or in the sample pages supplied with the product.

Test Harness

When using the Pro Web Test Harness, the error will present itself after a search string is supplied. Upon pressing the enter key, the error message be displayed as in Figure 1

Figure 1. Error is displayed when attempting to perform a search within the Test Harness

Sample Pages

The same error will also present itself in the sample web pages provided with the application. Here, the error will appear in each of the scenario’s that employs hierarchical picklists. Using the Rapid Addressing pages, the error is displayed in the pop-up window, as shown in Figure 2.

Figure 2. Error in Rapid Addressing pages

Solution

In order to resolve this error the picklists need to be flattened so that a search will only return a flat list of results.

Test Harness

To achieve this in the Test Harness the following command will need to be run upon loading

#flatten true

Sample pages

Within the sample pages provided with Pro Web, the relevant source file needs to be edited to return flattened picklists. This applies to the Address Capture, Rapid Addressing, and Rapid Addressing Single-Line scenarios. Below are the parameters that require changing for the C#, PHP and JSP pages.

C#

In the relevant cs source file, picklist flattening is achieved with the following setting

theQuickAddress.Flatten = true;

The file then needs to be saved, and the sample pages refreshed in the browser.

PHP

In the relevant inc file, picklist flattening is achieved with the following setting

$qas->setFlatten(TRUE);

The file then needs to be saved and the sample pages refreshed in the browser.

JSP

In the relevant java source file, picklist flattening is achieved with the following setting

searchService.setFlatten(true);

The file then needs to be saved, and the sample pages refreshed in the browser.

Related Links

Experian QAS Pro Web zone

Was this document helpful?

What can we do to improve this information?