Creating Python code with ArcMap to export maps in jpg?Debugging RuntimeError: Object: Error in executing...
Equivalent of "illegal" for violating civil law
What makes papers publishable in top-tier journals?
Non-Cancer terminal illness that can affect young (age 10-13) girls?
How big is a framed opening for a door relative to the finished door opening width?
Which RAF squadrons and aircraft types took part in the bombing of Berlin on the 25th of August 1940?
Critique vs nitpicking
Does the US government have any planning in place to ensure there's no shortages of food, fuel, steel and other commodities?
How to create a label containing values from different layers in QGIS
Concatenating two int[]
A question about partitioning positivie integers into finitely many arithmetic progresions
Does the ditching switch allow an A320 to float indefinitely?
What senses are available to a corpse subjected to a Speak with Dead spell?
Lightning Data Table inline edit
Why didn't the 2019 Oscars have a host?
What does MTU depend on?
Why did Mr. Elliot have to decide whose boots were thickest in "Persuasion"?
Can a player sacrifice a creature after declaring that creature as blocker while taking lethal damage?
Can you determine if focus is sharp without diopter adjustment if your sight is imperfect?
How much light is too much?
Does Skippy chunky peanut butter contain trans fat?
Why did Luke use his left hand to shoot?
What are some ways of extending a description of a scenery?
A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?
hrule into tikz circle node
Creating Python code with ArcMap to export maps in jpg?
Debugging RuntimeError: Object: Error in executing tool from arcpy.RasterDomain_3d()?Does arcpy have an issue with directory names starting with a number?Debugging Error 999998 in ArcPy?Trying to modify records from one shapefile to another gives Error 999999?AttributeError: 'unicode' object has no attribute '_arc_object' from arcpy.mapping.ListLayers?AssertionError: Invalid MXD filename from arcpy.mapping.MapDocument()?ValueError error from lyr.replaceDataSource()?Writing code to create MapDocument object gives ValueError: MapDocObject: Unexpected error?Getting error in running ExportReport Python code in ArcMapExport attributes of shapefiles into text file
I want to export maps that I have created on ArcMap 10.1 with this Python code:
mxd = arcpy.mapping.MapDocument("CURRENT")
for i in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = i
row = mxd.dataDrivenPages.pageRow
print row.getValue("no lot")
arcpy.mapping.ExportToJPEG(mxd, r"p:Isa2018_CS_Bilans_Hydriques_COPIECS images cadastre 1_" + str(row.getValue("no lot")) + ".jpg")
del mxd
The map is saved as JPEG, 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:
Runtime error
Traceback (most recent call last):
File "<string>", line 5, in <module>
File "C:program files (x86)arcgisdesktop10.1arcpyarcpyarcobjectsarcobjects.py", line 1011, in getValue
return convertArcObjectToPythonObject(self._arc_object.GetVa1ue(*gp_fixargs(args)))
RuntimeError: ERROR 999999: Error executing function.
How can I solve this?
arcpy arcgis-10.1 error-999999
New contributor
add a comment |
I want to export maps that I have created on ArcMap 10.1 with this Python code:
mxd = arcpy.mapping.MapDocument("CURRENT")
for i in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = i
row = mxd.dataDrivenPages.pageRow
print row.getValue("no lot")
arcpy.mapping.ExportToJPEG(mxd, r"p:Isa2018_CS_Bilans_Hydriques_COPIECS images cadastre 1_" + str(row.getValue("no lot")) + ".jpg")
del mxd
The map is saved as JPEG, 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:
Runtime error
Traceback (most recent call last):
File "<string>", line 5, in <module>
File "C:program files (x86)arcgisdesktop10.1arcpyarcpyarcobjectsarcobjects.py", line 1011, in getValue
return convertArcObjectToPythonObject(self._arc_object.GetVa1ue(*gp_fixargs(args)))
RuntimeError: ERROR 999999: Error executing function.
How can I solve this?
arcpy arcgis-10.1 error-999999
New contributor
add a comment |
I want to export maps that I have created on ArcMap 10.1 with this Python code:
mxd = arcpy.mapping.MapDocument("CURRENT")
for i in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = i
row = mxd.dataDrivenPages.pageRow
print row.getValue("no lot")
arcpy.mapping.ExportToJPEG(mxd, r"p:Isa2018_CS_Bilans_Hydriques_COPIECS images cadastre 1_" + str(row.getValue("no lot")) + ".jpg")
del mxd
The map is saved as JPEG, 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:
Runtime error
Traceback (most recent call last):
File "<string>", line 5, in <module>
File "C:program files (x86)arcgisdesktop10.1arcpyarcpyarcobjectsarcobjects.py", line 1011, in getValue
return convertArcObjectToPythonObject(self._arc_object.GetVa1ue(*gp_fixargs(args)))
RuntimeError: ERROR 999999: Error executing function.
How can I solve this?
arcpy arcgis-10.1 error-999999
New contributor
I want to export maps that I have created on ArcMap 10.1 with this Python code:
mxd = arcpy.mapping.MapDocument("CURRENT")
for i in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = i
row = mxd.dataDrivenPages.pageRow
print row.getValue("no lot")
arcpy.mapping.ExportToJPEG(mxd, r"p:Isa2018_CS_Bilans_Hydriques_COPIECS images cadastre 1_" + str(row.getValue("no lot")) + ".jpg")
del mxd
The map is saved as JPEG, 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:
Runtime error
Traceback (most recent call last):
File "<string>", line 5, in <module>
File "C:program files (x86)arcgisdesktop10.1arcpyarcpyarcobjectsarcobjects.py", line 1011, in getValue
return convertArcObjectToPythonObject(self._arc_object.GetVa1ue(*gp_fixargs(args)))
RuntimeError: ERROR 999999: Error executing function.
How can I solve this?
arcpy arcgis-10.1 error-999999
arcpy arcgis-10.1 error-999999
New contributor
New contributor
edited 7 mins ago
PolyGeo♦
53.6k1780240
53.6k1780240
New contributor
asked 52 mins ago
Isabelle_OBVMRIsabelle_OBVMR
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Isabelle_OBVMR is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f313536%2fcreating-python-code-with-arcmap-to-export-maps-in-jpg%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Isabelle_OBVMR is a new contributor. Be nice, and check out our Code of Conduct.
Isabelle_OBVMR is a new contributor. Be nice, and check out our Code of Conduct.
Isabelle_OBVMR is a new contributor. Be nice, and check out our Code of Conduct.
Isabelle_OBVMR is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f313536%2fcreating-python-code-with-arcmap-to-export-maps-in-jpg%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown