AnsweredAssumed Answered

Migrating code from ArcGIS Desktop python 2.7.3 to ArcGIS Pro python 3.6.2

Question asked by syedgardezi on Jul 18, 2018
Latest reply on Jul 19, 2018 by syedgardezi

I am calling the following function:

import arcpy
arcpy.JoinField_management(in_data,in_field,join_table,join_table_field,fields)

It works perfectly fine using ArcGIS Desktop python 2.6 but gives the following trace using ArcGIS Pro python arcgispro-py3

input parameters:
  arcpy.JoinField_management(
  temp_layer,
  NEAR_FID,
  xyz.gdb\xyz\xyz,
  OBJECTID,
  dict_values(['xyz']
)

 

Traceback (most recent call last):
    arcpy.JoinField_management(in_data,in_field,join_table,join_table_field,fields)
    raise e
    retval = convertArcObjectToPythonObject(gp.JoinField_management(*gp_fixargs((in_data, in_field, join_table, join_field, fields), True)))
    return lambda *args: val(*gp_fixargs(args, True))
RuntimeError: Object: Error in executing tool

 

I check I passed exactly  the same varabiels to both function but I am getting this error. can you give soem hints as to what might be the issue?

Outcomes