Select to view content in your preferred language

Using Parameters in Model causes Error; Solutions or Alternatives?

4891
11
07-23-2014 06:23 AM
StefanieSteinbach
Deactivated User

Dear all,

 

I have set up a workflow in model builder, with several variables set as parameters.

Thus, for example the cell size of my initial raster (a parameter) is used for further calculations in SQL commands. Executing the model with the actual cell size put into the calculations manually by me works fine, whereas using "%CellSize%" produces an error.

Did anyone encounter a similar problem or has an idea for a solution? For the sake of user-friendliness it is vital that the variables function as parameters.

 

Thanks in advance.

0 Kudos
11 Replies
StefanieSteinbach
Deactivated User

Yes, it's the SQL statement from the raster calculator I use to calculate a cost grid with.

0 Kudos
AdamMarinelli
Deactivated User

Without seeing or working with your model it is hard to troubleshoot.  I would recommend exporting copies of the three input rasters that are part of the equation and creating a simpler model with just the raster calculator tool to see if you get different results.

Additionally, as the original error states, the problem is not with the Cell Size, but with the "GreaterThan" part of the equation.

0 Kudos