AnsweredAssumed Answered

Using Field Map as User Supplied Parameter with Merge tool

Question asked by rob_ford16 on Mar 29, 2020
Latest reply on Apr 1, 2020 by JMutunga-esristaff

Thanks for any and all replies in advance!


I am trying to create python script tool that uses the merge tool but I am having issues getting the field map to show and populate as I add features. As of now, it won't even populate. However, if I recreate this using ModelBuilder, it works as intended. I am starting to think I need to get into Tool Validation.


Here is the part I am having issues with:



import arcpy

#input features. Set output for merge
polygonsToUse = arcpy.GetParameterAsText(0)
mergedPolygons = arcpy.GetParameterAsText(1)

#get field map so user can remove unneccessary fields
fieldMap = arcpy.GetParameterAsText(2)

#merge polygons


and here is a screenshot of my script tool parameter setup:




Thank you!