Script problem with ArcGis 10.1

611
4
02-20-2019 12:39 PM
Labels (1)
IsabelleBéliveau
New Contributor

I want to export maps that I have created on ArcMap 10.1 with the following python code (see attachment). 

The map save in jpg in a specific folder. I've tried this code before and it worked. I just changed the folder's name in the code and tried to export other maps from the same project and it won't work : it just produces an error code.

Can someone help find a solution? 

0 Kudos
4 Replies
DanPatterson_Retired
MVP Emeritus

it failed at the print statement. do you have a field called "no_lot" in your table  or are you looking for a value called that

getValue (field_name)

Gets the field value.

0 Kudos
IsabelleBéliveau
New Contributor

We do have a field called ''no_lot'' in our table. The value of ''no_lot'' is the name of the jpg printed.

0 Kudos
DanPatterson_Retired
MVP Emeritus

It failed on the getValue, are you sure that the only thing that you changes was the destination path?

0 Kudos
IsabelleBéliveau
New Contributor

Yes I'm sure. Should I import the table again? I'm actually working on a project that was started by another colleague that no longer works here, so I'm not sure how he did all this. I have changed some things in the Excel table, but nothing about the no_lot column. 

0 Kudos