Select to view content in your preferred language

ModelBuilder: error because of file extension

4775
4
Jump to solution
03-04-2015 02:33 AM
ElenaWenz
Deactivated User

Hi,

I am doing a model in ArcMap 10.0 with Zonal Statistics and iterating input rasters. The output file name would be Zonal%name%, the input rasters have the .tif extension. I now get the error message that the extension .tif does not work for output tables - which makes sense - but is there any way to avoid this and still use the file's original name?

Thanks for any help.

0 Kudos
1 Solution

Accepted Solutions
KishorGhatage
Deactivated User

Use model only tool " Parse path" and get the file name.

ArcGIS Help (10.2, 10.2.1, and 10.2.2)

Hope this is helpful

Kishor

View solution in original post

4 Replies
KishorGhatage
Deactivated User

Use model only tool " Parse path" and get the file name.

ArcGIS Help (10.2, 10.2.1, and 10.2.2)

Hope this is helpful

Kishor

ElenaWenz
Deactivated User

thanks, perfect

0 Kudos
UvashreeJananiMohandass
New Contributor

Hi, 

I am having the same issue. I tried Parse Path but Its is not working. Where should input the Parse path? Any help will be great. 

 

UvashreeJananiMohandass_0-1636151796018.png

 

0 Kudos
curtvprice
MVP Esteemed Contributor

In this case the Name variable must have the .tif extension. To remove it, connect Name as the input to Parse Path, pull out the root name "foo". Then connect that variable Value to Zonal Statistics As Table as a precondition and name the Zonal Statistics output Zone_%Value%_tbl  (becomes "Zone_foo_tbl" at runtime).

Hope this helps.

0 Kudos