<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ExportingToPDF Python for Map Series in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41795#M1716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/115037"&gt;GIS Coordinator&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to guess that you are working with a Line/Polygon Feature Class stored in an Enterprise Geodatabase? I spoke earlier with Jeff about another customer's issues with a SQL Server Polygon Feature Class - it looks like the problem here is due to some reserved field names appearing in a dictionary used by &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;exportToPDF&lt;/SPAN&gt;. Please go ahead and contact Esri Support Services about being added to the defect log for the issue so you can closely track the status of a fix: "&lt;STRONG style="color: #c00000; font-size: 10.0pt; font-family: 'Arial',sans-serif; "&gt;BUG-000123108: &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #c00000;"&gt;exportToPDF fails with "ValueError: Type names and field names must be valid identifiers: 'st_area()/'st_length()'"&amp;nbsp;for SDE polygon and line feature classes&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: #000000;"&gt;."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, there's not a clean way to fix this in your script as the problem lies in the arcpy library itself. However, you can work around the issue by:&lt;/P&gt;&lt;OL data-aura-rendered-by="52631:0" style="color: #080707; background-color: #ffffff; margin: 0px 0px 0.75rem 1.5rem;"&gt;&lt;LI&gt;Using a File Geodatabase Feature Class instead.&lt;/LI&gt;&lt;LI&gt;If using a File Geodatabase is completely out of the question, another option would be to:&lt;UL&gt;&lt;LI&gt;Create center points from the SDE Line/Polygon Feature Class using a tool like &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/feature-to-point.htm"&gt;https://pro.arcgis.com/en/pro-app/tool-reference/data-management/feature-to-point.htm&lt;/A&gt;, storing the output in the same Enterprise Geodatabase as a point feature class&lt;/LI&gt;&lt;LI&gt;Base the Map Series on the SDE point feature class instead (you can bury the Point FC behind other layers/make it completely transparent/etc. and remove it from Legend). The effect here will be that it'll look like the Map Series is based on the original Line/Polygon feature class.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Earl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jun 2019 20:38:33 GMT</pubDate>
    <dc:creator>EarlMedina</dc:creator>
    <dc:date>2019-06-17T20:38:33Z</dc:date>
    <item>
      <title>ExportingToPDF Python for Map Series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41791#M1712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to export a range of sheets in a map series in ArcPro.&amp;nbsp; I'm basing my code off ESRI's code sample 2 here&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/mapseries-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/arcpy/mapping/mapseries-class.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sys
relpath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"S:\Tax Services\Tax Maps"&lt;/SPAN&gt;

aprx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"S:\FC GIS\GIS Projects\New Tax Maps\Tax Map DDP\Tax Map DDP - new.aprx"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
l &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listLayouts&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; l&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapSeries &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
  ms &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; l&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapSeries
  &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; ms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enabled&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; pageNum &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
      ms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;currentPageNumber &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pageNum
      &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Exporting {0}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pageRow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Page&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
      pageName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pageRow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Page
      l&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exportToPDF&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;relpath &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MapSheet_{0}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pageRow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;page&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".pdf"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I keep getting the following error:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;
ValueError                                Traceback &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;most recent call last&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;ipython&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;input&lt;SPAN class="number token"&gt;-3&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2671737b67ee&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;module&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
      &lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;         &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; pageNum &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
     &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;           ms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;currentPageNumber &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pageNum
&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;11&lt;/SPAN&gt;           &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Exporting {0}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pageRow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Page&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
     &lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;           pageName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pageRow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Page
     &lt;SPAN class="number token"&gt;13&lt;/SPAN&gt;           l&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exportToPDF&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;relpath &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MapSheet_{0}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pageRow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Page&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".pdf"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; pageRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
   &lt;SPAN class="number token"&gt;2240&lt;/SPAN&gt;     @property
   &lt;SPAN class="number token"&gt;2241&lt;/SPAN&gt;     &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;pageRow&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2242&lt;/SPAN&gt;       &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;convert&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;convertArcObjectToPythonObject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;getattr&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_arc_object&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"pageRow"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
   &lt;SPAN class="number token"&gt;2243&lt;/SPAN&gt; 
   &lt;SPAN class="number token"&gt;2244&lt;/SPAN&gt; 

C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; convert&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dictionary&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
   &lt;SPAN class="number token"&gt;2236&lt;/SPAN&gt;     &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;convert&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dictionary&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
   &lt;SPAN class="number token"&gt;2237&lt;/SPAN&gt;       &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; collections &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; namedtuple
&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2238&lt;/SPAN&gt;       &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; namedtuple&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'pageRow'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dictionary&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;keys&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;**&lt;/SPAN&gt;dictionary&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
   &lt;SPAN class="number token"&gt;2239&lt;/SPAN&gt; 
   &lt;SPAN class="number token"&gt;2240&lt;/SPAN&gt;     @property

C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;py3\lib\collections\__init__&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; namedtuple&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;typename&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field_names&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; verbose&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; rename&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; module&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="number token"&gt;399&lt;/SPAN&gt;         &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; name&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;isidentifier&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="number token"&gt;400&lt;/SPAN&gt;             &lt;SPAN class="keyword token"&gt;raise&lt;/SPAN&gt; ValueError&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Type names and field names must be valid '&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;401&lt;/SPAN&gt;                              &lt;SPAN class="string token"&gt;'identifiers: %r'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;%&lt;/SPAN&gt; name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="number token"&gt;402&lt;/SPAN&gt;         &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; _iskeyword&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="number token"&gt;403&lt;/SPAN&gt;             &lt;SPAN class="keyword token"&gt;raise&lt;/SPAN&gt; ValueError&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Type names and field names cannot be a '&lt;/SPAN&gt;

ValueError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Type names &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; field names must be valid identifiers&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Shape.STArea()'&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41791#M1712</guid>
      <dc:creator>Kara_Shindle</dc:creator>
      <dc:date>2021-12-10T21:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: ExportingToPDF Python for Map Series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41792#M1713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started to reply to this via:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/message/855395-re-exporttopng-python-for-mapseries"&gt;https://community.esri.com/message/855395-re-exporttopng-python-for-mapseries&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to reproduce this error.&amp;nbsp; Are you specifying a field to define page numbers?&amp;nbsp; If so, is it numerically defined?&amp;nbsp; If you set this&amp;nbsp;parameter to None, does your code work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are also welcome to send me a project package to &lt;A href="mailto:jbarrette@esri.com"&gt;jbarrette@esri.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff (arcpy.mp team)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 15:18:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41792#M1713</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2019-05-30T15:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: ExportingToPDF Python for Map Series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41793#M1714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the field set to None, that is how I was able to fix the problem I was having similar to Elizabeth's post.&amp;nbsp; I will put together a map package. thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 15:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41793#M1714</guid>
      <dc:creator>Kara_Shindle</dc:creator>
      <dc:date>2019-05-30T15:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: ExportingToPDF Python for Map Series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41794#M1715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great.&amp;nbsp; A project package is better, it will contain all the map series settings.&amp;nbsp; You can probably get rid of most data, leave the index layer, and save to a temporary aprx before packaging.&amp;nbsp; This is to avoid a huge file size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 15:40:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41794#M1715</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2019-05-30T15:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: ExportingToPDF Python for Map Series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41795#M1716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/115037"&gt;GIS Coordinator&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to guess that you are working with a Line/Polygon Feature Class stored in an Enterprise Geodatabase? I spoke earlier with Jeff about another customer's issues with a SQL Server Polygon Feature Class - it looks like the problem here is due to some reserved field names appearing in a dictionary used by &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;exportToPDF&lt;/SPAN&gt;. Please go ahead and contact Esri Support Services about being added to the defect log for the issue so you can closely track the status of a fix: "&lt;STRONG style="color: #c00000; font-size: 10.0pt; font-family: 'Arial',sans-serif; "&gt;BUG-000123108: &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: #c00000;"&gt;exportToPDF fails with "ValueError: Type names and field names must be valid identifiers: 'st_area()/'st_length()'"&amp;nbsp;for SDE polygon and line feature classes&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: #000000;"&gt;."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, there's not a clean way to fix this in your script as the problem lies in the arcpy library itself. However, you can work around the issue by:&lt;/P&gt;&lt;OL data-aura-rendered-by="52631:0" style="color: #080707; background-color: #ffffff; margin: 0px 0px 0.75rem 1.5rem;"&gt;&lt;LI&gt;Using a File Geodatabase Feature Class instead.&lt;/LI&gt;&lt;LI&gt;If using a File Geodatabase is completely out of the question, another option would be to:&lt;UL&gt;&lt;LI&gt;Create center points from the SDE Line/Polygon Feature Class using a tool like &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/feature-to-point.htm"&gt;https://pro.arcgis.com/en/pro-app/tool-reference/data-management/feature-to-point.htm&lt;/A&gt;, storing the output in the same Enterprise Geodatabase as a point feature class&lt;/LI&gt;&lt;LI&gt;Base the Map Series on the SDE point feature class instead (you can bury the Point FC behind other layers/make it completely transparent/etc. and remove it from Legend). The effect here will be that it'll look like the Map Series is based on the original Line/Polygon feature class.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Earl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 20:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41795#M1716</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2019-06-17T20:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: ExportingToPDF Python for Map Series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41796#M1717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really want to thank Earl from Esri Support for being persistent and chasing this down!&amp;nbsp; I did not reproduce because I tested with the project package sent to me - that was a fGDB.&amp;nbsp; Earl submitted a bug and I committed it to our development queue. I prioritized this for 2.5.&amp;nbsp; (it is too late for 2.4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 16:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41796#M1717</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2019-06-18T16:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: ExportingToPDF Python for Map Series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41797#M1718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the suggestions.&amp;nbsp; I will look into adapting my script!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 16:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41797#M1718</guid>
      <dc:creator>Kara_Shindle</dc:creator>
      <dc:date>2019-06-18T16:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: ExportingToPDF Python for Map Series</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41798#M1719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all of your work helping me on this.&amp;nbsp; I greatly appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 16:52:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exportingtopdf-python-for-map-series/m-p/41798#M1719</guid>
      <dc:creator>Kara_Shindle</dc:creator>
      <dc:date>2019-06-18T16:52:57Z</dc:date>
    </item>
  </channel>
</rss>

