The machine running 10.2.2 has Windows Server 2008 R2 Enterprise 64-bit OS. (Virtual)
The python shell launches as Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
The machine running 10.3.1 has Windows 7 Professional 64-bit OS.
The python shell launches as Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win32
I'm not certain how to test for background processing. Both machine were set up with the standard install.
The script was written on the Windows 7 machine before upgrading from 10.2.2 to 10.3.1
The Summary_CondoPin table is in a file geodatabase located on a Windows Server 2012 R2 Standard 64-bit OS.
print """{} > 1 AND {} IS NULL""".format(arcpy.AddFieldDelimiters(Summary_CondoPin, 'FREQUENCY'), arcpy.AddFieldDelimiters(Summary_CondoPin, 'Comment'))
Returned FREQUENCY > 1 AND Comment IS NULL
Using the syntax you provided me for the MakeTableView failed with the same error.
Traceback (most recent call last):
File "X:\ParcelFeaturesQC\ParcelFeaturesQC.py", line 676, in <module>
startArcSDE(True)
File "X:\ParcelFeaturesQC\ParcelFeaturesQC.py", line 619, in startArcSDE
QC.runCondoPinCheck()
File "X:\ParcelFeaturesQC\ParcelFeaturesQC.py", line 519, in runCondoPinCheck
arcpy.MakeTableView_management(Summary_CondoPin,'Frequency_CondoPin', """{} > 1 AND {} IS NULL""".format(arcpy.AddFieldDelimiters(Summary_CondoPin, 'FREQUENCY'), arcpy.AddFieldDelimiters(Summary_CondoPin, 'Comment')))
File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 7047, in MakeTableView
raise e
ExecuteError: ERROR 000358: Invalid expression
Failed to execute (MakeTableView).