About Force Empty Extract File Generation

You can generate an empty extract file by two methods:

W_FORCE_EMPTY_EXTRACTFILE Configuration Parameter

You can enable this option using the W_FORCE_EMPTY_EXTRACTFILE parameter with values of Y or N in the w_config_custom.inc configuration file:

[estart dir]/tpe/dynamic/msgcenter/eagle_ml-2-0_custom_cm/w_config_custom.inc

For example, you can add the code below to force the Extract Service to generate a file for an empty extract:

w_config_custom.inc
<CODE> :W_FORCE_EMPTY_EXTRACTFILE: := 'Y'; </CODE>

After adding the code shown above, you need to reinitialize the MC2 rule cache.When the empty extract file option is enabled as shown, the REST simple extract requests returns an empty result:

HTTP request example
<protocol>://<host>:<port>/eagle/v2/entities?entityselectiontype=EntityID&entityselectionvalue=NOTEXISTINGID&outputFormat=json

This results in an empty body response because the result has been read from an empty extract file.The example below shows how you can change the W_FORCE_EMPTY_EXTRACTFILE parameter value to N.

w_config_custom.inc
<CODE> :W_FORCE_EMPTY_EXTRACTFILE: := 'N'; </CODE>

After adding the code above, you need to reinitialize the Extract Service. If the Force Empty Extract File option is not set or disabled, the Extract Service returns a NO_DATA TSR response:

NO_DATA TSR response sample

ForceExtractFileCreation HTTP Parameter

Another way to control an empty extractfile generation is to use forceExtractFileCreation HTTP parameter with values Y or N for the specific request. The example below is an HTTP request example using the forceExtractFileCreation parameter:

HTTP request example