<?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: error 000582 - FlipLine_Edit in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-000582-flipline-edit/m-p/207538#M15944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering if it is the versioning that is the problem.&amp;nbsp; The help &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/editing-toolbox/flip-line.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/editing-toolbox/flip-line.htm"&gt;Flip Line—Help | ArcGIS for Desktop&lt;/A&gt; mentions that is is a "tool with no outputs", which mentions&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;"When input data is stored in a versioned database, tools will only modify the single version of the data. To apply changes to the rest of the database, the version must be reconciled and posted." &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm wondering if it has an issue with that. ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2015 04:34:46 GMT</pubDate>
    <dc:creator>RebeccaStrauch__GISP</dc:creator>
    <dc:date>2015-10-08T04:34:46Z</dc:date>
    <item>
      <title>error 000582 - FlipLine_Edit</title>
      <link>https://community.esri.com/t5/python-questions/error-000582-flipline-edit/m-p/207537#M15943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def CreateBiDirectionalRoute(input_lines, _routes):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_geo = [i for i in arcpy.da.SearchCursor(input_lines, ['ID', &lt;A href="mailto:'SHAPE@'" rel="nofollow noopener noreferrer" target="_blank"&gt;'SHAPE@'&lt;/A&gt;, 'SPEEDLIMIT'])]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; incur = arcpy.da.InsertCursor(nztm_routes, ['ROUTENAME', 'ROUTENUM', 'JOINFIELD', &lt;A href="mailto:'SHAPE@'" rel="nofollow noopener noreferrer" target="_blank"&gt;'SHAPE@'&lt;/A&gt;, 'SPEEDLIMIT'])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for _geo in in_geo:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; incur.insertRow([_geo[0], 'A', str(_geo[0])+'-'+'A', _geo[1].projectAs(arcpy.SpatialReference(###), ###), _geo[2]])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flip_features = arcpy.FlipLine_edit(input_lines)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_geo2 = [k for k in arcpy.da.SearchCursor(flip_features, ['ID', &lt;A href="mailto:'SHAPE@','SPEEDLIMIT'" rel="nofollow noopener noreferrer" target="_blank"&gt;'SHAPE@','SPEEDLIMIT'&lt;/A&gt;])]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for _geo2 in in_geo2:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; incur.insertRow([_geo2[0], 'B', str(_geo2[0])+'-'+'B', _geo2[1].projectAs(arcpy.SpatialReference(###), ###), _geo2[2]])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; del incur
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except arcpy.ExecuteError:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(arcpy.GetMessages(2))

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the above code, if I use a versioned sde featureclass as inputlines, I get the error above based on line 7. Is there a work around to be able to use versioned fcs for this function of mine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000582-flipline-edit/m-p/207537#M15943</guid>
      <dc:creator>ChrisPedrezuela</dc:creator>
      <dc:date>2021-12-11T10:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: error 000582 - FlipLine_Edit</title>
      <link>https://community.esri.com/t5/python-questions/error-000582-flipline-edit/m-p/207538#M15944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering if it is the versioning that is the problem.&amp;nbsp; The help &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/editing-toolbox/flip-line.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/editing-toolbox/flip-line.htm"&gt;Flip Line—Help | ArcGIS for Desktop&lt;/A&gt; mentions that is is a "tool with no outputs", which mentions&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;"When input data is stored in a versioned database, tools will only modify the single version of the data. To apply changes to the rest of the database, the version must be reconciled and posted." &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm wondering if it has an issue with that. ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 04:34:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000582-flipline-edit/m-p/207538#M15944</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-10-08T04:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: error 000582 - FlipLine_Edit</title>
      <link>https://community.esri.com/t5/python-questions/error-000582-flipline-edit/m-p/207539#M15945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And is an editor session started somewhere outside of this function.&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/editor.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/editor.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 08:20:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000582-flipline-edit/m-p/207539#M15945</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-10-08T08:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: error 000582 - FlipLine_Edit</title>
      <link>https://community.esri.com/t5/python-questions/error-000582-flipline-edit/m-p/207540#M15946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;​I actually tried loading the versioned fc on arcgis desktop and did the flip line tool (not in editing mode). It worked without any issue. So it's just weird that thru arc py implementation it fails. removing the version, function runs fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 08:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000582-flipline-edit/m-p/207540#M15946</guid>
      <dc:creator>ChrisPedrezuela</dc:creator>
      <dc:date>2015-10-08T08:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: error 000582 - FlipLine_Edit</title>
      <link>https://community.esri.com/t5/python-questions/error-000582-flipline-edit/m-p/207541#M15947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The flip line in ArcMap is fine. One operation.&lt;/P&gt;&lt;P&gt;Inside python you have 2. An insert Cursor and the flip.&lt;/P&gt;&lt;P&gt;I believe you will need to open a da.Editor session for this.&lt;/P&gt;&lt;P&gt;Like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# start editing
edit = arcpy.da.Editor(os.path.dirname(outputDataLocation))
edit.startEditing(False, False) # check these settings in the help
edit.startOperation()
# do stuff here
edit.stopOperation()
edit.stopEditing(True)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:15:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000582-flipline-edit/m-p/207541#M15947</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2021-12-11T10:15:24Z</dc:date>
    </item>
  </channel>
</rss>

