000666: <value> does not have an OID.

Description

The specified parameter does not have an OID.

Solution

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