What does HRESULT 0x0004093D (IDS_MON_RELATIVE_INTERVAL) mean?

 
Previous Next
IDS_MON_OUT_OF_RANGE IDS_MON_NOT_COLUMN_OF_VIEW

IDS_MON_RELATIVE_INTERVAL

IDS_MON_RELATIVE_INTERVAL is tied to relative date syntax. Windows Search DATEADD obtains a time before the supplied date/time and requires its offset value to be a negative integer; positive offsets are explicitly unsupported.

Check sign, units, and the comparison direction together

  • Log the emitted DATEADD call after converting UI units to YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, or SECOND.
  • Make sure the offset is negative and the base expression is GETGMTDATE or another DATEADD result.
  • Review the comparison operator separately; changing -5 to 5 is not a substitute for expressing “within the last five days” correctly.

The documented function is restricted further: it is used on the right side of a literal value comparison and does not accept a date literal as its third argument. Nested DATEADD calls are the supported way to combine units. Diagnose this parser error in the generated relative-time expression, not in file timestamps stored in the index.

DATEADD function · Literals and relative time · Parser messages


Looking for a different code? Search another status or error code.