Model Builder raster extract leads to invalid table name

2681
6
Jump to solution
02-24-2016 02:54 PM
johnpolo
New Contributor III

I am trying to use Model Builder with Extract with Mask. The masks (polygons) are in a file database and the raster is a standalone GRID. When I run the model it exits with an error that is the Table name is invalid. I tried to investigate the meaning and I came across two explanations. One: don't start names with digits. Two: names can't be longer than 13 characters. I think I've met those restrictions, but I still get the error. I think I also read somewhere that you should save to a database, but I swear I've done something similar to this months back and saved in a folder without problem. I'm out of ideas at this point. model.jpg

0 Kudos
1 Solution

Accepted Solutions
DarrenWiens2
MVP Honored Contributor

As far as I can tell, there is no such variable as %Value%, but there is %Name%.

View solution in original post

6 Replies
DanPatterson_Retired
MVP Emeritus

path can't contain spaces or other unsavory characters (except _ ) and the total path plus filename must be less than 125ish characters.  Also, if you dont specify a file extension, you will get an esri grid which is fine.

XanderBakker
Esri Esteemed Contributor

Does the spatial reference of the featureclasses match the spatial reference of the raster?

How about the geoprocessing environment setting... how is the extent defined?

What are the values for %Value%?

If you copy import the raster into the file geodatabase, and run the model with that raster does the problem occur too?

johnpolo
New Contributor III

Xander, the projections match for the masks and the raster. I did not change the extent, so it'd be whatever the default is...  I think a reply after yours hit the nail with pointing out that I had used "%Value%", instead of "%Name%", so you were on to something. Thanks for the help!

0 Kudos
DarrenWiens2
MVP Honored Contributor

As far as I can tell, there is no such variable as %Value%, but there is %Name%.

DanPatterson_Retired
MVP Emeritus

Darren is on to something...I suspect Value was supposed to be a field in the raster table, which hasn't been set as a variable

0 Kudos
johnpolo
New Contributor III

DINGDINGDINGDING... the winner! You were right, Darren, I referred to a non-existent variable. Thanks a lot for the help!

0 Kudos