<?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: getRow value in data driven pages help in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/getrow-value-in-data-driven-pages-help/m-p/571781#M6220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thankyou very much!!!! You were spot on!!!:D. I had forgotten all about the join in the table! Your help is much appreciated Jeff!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2011 21:26:14 GMT</pubDate>
    <dc:creator>HaydenLewis</dc:creator>
    <dc:date>2011-11-01T21:26:14Z</dc:date>
    <item>
      <title>getRow value in data driven pages help</title>
      <link>https://community.esri.com/t5/mapping-questions/getrow-value-in-data-driven-pages-help/m-p/571778#M6217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an issue trying to get the value of the "WP_NO" field from the index layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]import arcpy, time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument(r"F:\TEMP\STRATEGIC_CONN_MAPBOOK_2011_TEST1.mxd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; mxd.dataDrivenPages.currentPageID = pageNum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; pageName = mxd.dataDrivenPages.pageRow.getValue("WP_NO")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; print pageName[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also unsuccessfully tried pageName = mxd.dataDrivenPages.pageRow.index&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error I always get is this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File "C:\Python26\ArcGIS10.0\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 312, in RunScript&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; exec codeObject in __main__.__dict__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; File "F:\SCRIPTS\CHARTS\DATADRIVENPAGES_test.py", line 5, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; pageName = mxd.dataDrivenPages.pageRow.getValue("WP_NO")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\arcobjects\arcobjects.py", line 945, in getValue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; return convertArcObjectToPythonObject(self._arc_object.GetValue(*gp_fixargs(args)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 00:54:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/getrow-value-in-data-driven-pages-help/m-p/571778#M6217</guid>
      <dc:creator>HaydenLewis</dc:creator>
      <dc:date>2011-11-01T00:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: getRow value in data driven pages help</title>
      <link>https://community.esri.com/t5/mapping-questions/getrow-value-in-data-driven-pages-help/m-p/571779#M6218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wonder if it is data specific.&amp;nbsp; What type of value are you trying to get?&amp;nbsp; Is the value null, a blank string, etc?&amp;nbsp; I notice in one case you use "WP_NO" and in your second example you use pageRow.index.&amp;nbsp; Are you on 10.0 SP3?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fieldValue = mxd.dataDrivenPages.pageRow.State_Name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fieldValue = mxd.dataDrivenPages.pageRow.getValue("State_Name")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and they both worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you could send me a map package of your data, I'd be happy to look into it further.&amp;nbsp; Send to &lt;/SPAN&gt;&lt;A href="mailto:jbarrette@esri.com"&gt;jbarrette@esri.com&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 13:47:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/getrow-value-in-data-driven-pages-help/m-p/571779#M6218</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-11-01T13:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: getRow value in data driven pages help</title>
      <link>https://community.esri.com/t5/mapping-questions/getrow-value-in-data-driven-pages-help/m-p/571780#M6219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just ran into this exact issue today.&amp;nbsp; My table name and alias name were different.&amp;nbsp; I had a table join in place so when I tried to search using the alias name, it failed.&amp;nbsp; When I used the full table name, it worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fieldValue = row.getValue("FieldName") - this failed with the error you note.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fieldValue = row.getValue("TableName.FieldName") - this worked &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 21:13:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/getrow-value-in-data-driven-pages-help/m-p/571780#M6219</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-11-01T21:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: getRow value in data driven pages help</title>
      <link>https://community.esri.com/t5/mapping-questions/getrow-value-in-data-driven-pages-help/m-p/571781#M6220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thankyou very much!!!! You were spot on!!!:D. I had forgotten all about the join in the table! Your help is much appreciated Jeff!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 21:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/getrow-value-in-data-driven-pages-help/m-p/571781#M6220</guid>
      <dc:creator>HaydenLewis</dc:creator>
      <dc:date>2011-11-01T21:26:14Z</dc:date>
    </item>
  </channel>
</rss>

