Hi,
I have an issue using the MakeQueryLayer Geoprocessing tool in a python script. I'm querying a Oracle Spatial DB (Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production).
When I use the geoprocessing tool from the Data Management Tools (MakeQueryLayer_1.JPG) I get a result. I then "Send to Python Window " to get the python command (MakeQueryLayer_2).JPG). Once again I get a result.
But when I create a python script using the same previous code to run from a ArcGIS Toolbox, the query returns no values. I tried to troubleshoot with a DBA and the conclusion is that when the Query comes from the Python Script, it doesn't reach the database.
What's even weirder is that it only happens when I query a POLYLINE dataset. When I query POINTS or POLYGONS, it works fine.
Any help would be greatly appreciated
Thanks