Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can't quite figure this out and i'm sure it's a simple fix. I have a script that utilizes the AGSSOM tool. It first stops all published services, allows for databases to be tidied up by Compressing/Uncompresing and Compacting, then resarts the services. The script is a tool in a tool box. I'm currently trying to set a parameter where the user picks which geodatabases to clean up (our services use several geodatabases and they are constantly being manipulated). Within the Parameters tab of the scripts properties, I've added a parameter and assinged it to Data Element as the Data Type (anyone have a better suggestion?). Additionally, I've set the MultiValue to Yes. Here is an example of some of the code.

inGDB = gp.GetParameterAsText(0)

When I load multiple GDBs It crashes whith an error:

 <class 'arcgisscripting.ExecuteError'>: Failed to execute. Parameters are not valid.
Input file geodatabase data: Dataset 'Z:\Data\Reference.gdb;Z:\Data\As-Built.gdb' does not exist
Failed to execute (CompressFileGeodatabaseData).

Failed to execute (ArcgisServerUpdater). 

If I load a single GDB It works.

Hope I'm not covering a similar question.

share|improve this question
up vote 2 down vote accepted

CompressFileGeodatabaseData only accepts a single value for input, you need to split it up.

for inGDB in gp.GetParameterAsText(0).split(';'):

Changing YOUR tool's input to multivalue doesn't change the other tool you call's parameter to multivalue.

share|improve this answer
What, you mean tools (actually functions) aren't mind-readers? :) – blah238 Aug 30 '12 at 22:19
I deserve some heckling :) @Jason, thanks for fixing my First World Problem – dchaboya Aug 30 '12 at 22:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.