Errors with parameters when exposing Model as GPK in BETA 2

Discussion created by kuiperfoliage on Jan 5, 2012
Latest reply on Jan 11, 2012 by MBranscomb-esristaff

We are experiencing problems creating GPK from Models (not python scripts) in BETA 2. We are not running BETA 1 anymore, but are pretty sure that this was still working in that version (BETA 1).

The problem is that the parameters on the GPK of the model are not converted to String so the Runtime Server is not able to expose the parameter and allow input.

A simple example, we made a model based on "Package Map" which is located in "Data Management - Package". It takes a .mxd (ArcMap document) as input and creates an .mpk (Map Package) as output.

The model works fine in ArcMap, but as soon as you convert the result into a GPK you are not able to set the parameters (input, output) on the object.

If your browse to the endpoint you will see it won't accept any parameters:


It will work if I convert the Model to a Python script and convert the parameters to string and create a GPK of that.

Attached is a zip which contains the toolbox, an example code and the GPK (as model)