SYMPTOMS:
I am trying to create a derived data item for Day Of Week based on Time Entry Date which is the right datatype in the Package, but still get this error when I create that object using the formula _day_of_week([Time Entry Date]) and try to run or view tabular data.

ERROR/WARNING MESSAGES:
RQP-DEF-0177
An error occurred while performing operation 'SQLPrepareWithOperation' status='-239'


RESOLUTION:
You are missing a parameter. Please make sure you are selecting the field from the query subject, not pasting or typing it in (i.e in standard environment, that field does not have ‘Entry’ and ‘Date’ capitalized, and it doesn’t appear that it’s capitalized in your environment either.
When you are creating a formula field, look at the ‘tips’ section which contains useful information about how to use the formulas.