Select to view content in your preferred language

MakeQueryLayer - ERROR 000368: Invalid input data

2124
2
02-28-2018 02:26 AM
MagalyClément-Zaber
Regular Contributor

Hi !

I made a script in Python 3.6.2.

It works fine on my computer but when i want to execute since my server i have the error (my parameters are exactely the same):

"C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 6582, in MakeQueryLayer
 raise e
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 6579, in MakeQueryLayer
 retval = convertArcObjectToPythonObject(gp.MakeQueryLayer_management(*gp_fixargs((input_database, out_layer_name, query, oid_fields, shape_type, s
rid, spatial_reference), True)))
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 506, in <lambda>
 return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000368: Invalid input data.
Failed to execute (MakeQueryLayer).



Where can I look ? Configuration ? 

Thanks for help

Tags (1)
0 Kudos
2 Replies
MagalyClément-Zaber
Regular Contributor

Hi,

Problem solved. 

Missing connection in tnsnames.ora ... 😕

0 Kudos
AbhijitBiswas
New Contributor

Can you help me to solve the problem?

0 Kudos