I'm trying to build a model that after a bunch of processing exports the raster attributes table to an excel file. To do this, I figure I need to first use the "Export table" tool, followed by the "Table to Excel" tool. When I do this outside of ModelBuilder, it works perfectly, but when I add the same steps to my model, for some reason the "export table" tool only includes the first digit of a number in its output. For example, this is the original raster attributes table:
and here is the same table after it has been run through the model with with "Export table" tool:
What I have tried:
- Changing the Fields setting in the "export table" tool, including the Properties>type settings to ensure the numbers were output in long type (not that I thought this would work as the default settings of the tool are the same inside and outside of ModelBuilder)
- Using the deprecated "Table to Table" tool, but this results in the same behaviour
Does anyone know what is happening here and how I can fix it? Any work-arounds?