AnsweredAssumed Answered

Python how to  compare Date Fields in MakeFeatureLayer

Question asked by jsn on Mar 1, 2016
Latest reply on Mar 1, 2016 by jsn

Hello everyone,


I exported a ModelBuilder to Python where there is a FeatureLayer where I compare 2 Date Fields and it works fine in Model Builder but in Python it displays the following error message:

ExecuteError: ERROR 000230: Failed selecting with MODDATE <> MODDATE_1 \n\n

Failed to execute (MakeFeatureLayer).



This is the python code:


# Process: Make Feature Layer (5)

arcpy.MakeFeatureLayer_management(Agreement, Agreement_Layer1, "MODDATE <> MODDATE_1 \\n\\n", "", "OBJECTID OBJECTID .... ")