Published geoprocessing Python tool doesn't have parameters

352
1
Jump to solution
11-23-2022 07:02 AM
SailiTang_HW
New Contributor II

Hi,

I wrote a python script to check data validations of all feature classes in a user's file geodatabase. I put the script into a toolbox and set a parameter to the script. So when a user run it, a window pops up to let the user to choose a file geodatabase.

SailiTang_HW_0-1669214634780.png

But after I published it to our ArcGIS server as a geoprocessing service successfully,  the parameter part disappeared when I ran the service. I couldn't choose my file geodatabase.

SailiTang_HW_1-1669214932775.png

I tried to set the parameter as "Workspace" or "Any value", but both had the same issue. How should I set the parameter to make it not disappeared after publishing the service? Thanks for your help!

Saili

SailiTang_HW_2-1669215133361.png

 

 

0 Kudos
1 Solution

Accepted Solutions
SailiTang_HW
New Contributor II

File geodatabase is not a supported data type for a geoprocessing service. So, I changed the input to zipped file geodatabase and I added a piece of code in the script to unzip it.

View solution in original post

1 Reply
SailiTang_HW
New Contributor II

File geodatabase is not a supported data type for a geoprocessing service. So, I changed the input to zipped file geodatabase and I added a piece of code in the script to unzip it.