000666: <value> does not have an OID.

Description

The specified parameter does not have an OID field.

Solution

Consider using the Make Query Table tool to add a virtual OID field.