<?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 ArcPy looses database connection?  in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/arcpy-looses-database-connection/m-p/834211#M437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears I keep losing my database connection?&amp;nbsp; I am looping.&amp;nbsp; The first 6 or 20 or so operations execute fine, but then it appears I loose the database connection?&amp;nbsp; There is a pause, then a rapid fire of errors.&amp;nbsp; Once it loses a connection, it does not recover.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;testSQLCreatorConnection = r"D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde"&lt;/P&gt;&lt;P&gt;inAllDEMMosaicDataset = r"\GIS.DATACREATOR.all_dem"&lt;/P&gt;&lt;P&gt;inAllDEMMosaicDatasetFullPath = testSQLCreatorConnection + inAllDEMMosaicDataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result = arcpy.GetCellValue_management(in_raster=inAllDEMMosaicDatasetFullPath, location_point=str(point['x'])+ " " + str(point['y']), band_index="")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXAMPLE LOG File:&lt;/P&gt;&lt;P&gt;INFO:root:QADEMData: START&lt;BR /&gt;INFO:root:2018-05-14 11:39:04.494000 Status: 0, cellSize: 0, cellValue: 69.924477&lt;BR /&gt;INFO:root:2018-05-14 11:39:09.009000 Status: 0, cellSize: 0, cellValue: 69.924477&lt;BR /&gt;INFO:root:2018-05-14 11:39:14.822000 Status: 0, cellSize: 0, cellValue: 439.92664&lt;BR /&gt;INFO:root:2018-05-14 11:39:20.462000 Status: 0, cellSize: 0, cellValue: 406.72403&lt;BR /&gt;INFO:root:2018-05-14 11:39:26.071000 Status: 0, cellSize: 0, cellValue: 601.04382&lt;BR /&gt;INFO:root:2018-05-14 11:39:31.618000 Status: 0, cellSize: 0, cellValue: 601.04382&lt;BR /&gt;INFO:root:2018-05-14 11:39:37.180000 Status: 0, cellSize: 0, cellValue: 398.90991&lt;BR /&gt;INFO:root:2018-05-14 11:39:42.743000 Status: 0, cellSize: 0, cellValue: 398.90991&lt;BR /&gt;INFO:root:2018-05-14 11:39:48.399000 Status: 0, cellSize: 0, cellValue: 398.90991&lt;BR /&gt;INFO:root:2018-05-14 11:39:54.055000 Status: 1, cellSize: 0, cellValue: NoData&lt;BR /&gt;INFO:root:2018-05-14 11:39:59.399000 Status: 1, cellSize: 0, cellValue: NoData&lt;BR /&gt;INFO:root:2018-05-14 11:40:05.305000 Status: 1, cellSize: 0, cellValue: NoData&lt;BR /&gt;ERROR:root: File "D:\QAData\QAData.py", line 112, in QADEMData&lt;BR /&gt; result = arcpy.GetCellValue_management(in_raster=inAllDEMMosaicDatasetFullPath, location_point=str(point['x'])+ " " + str(point['y']), band_index="")&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;/P&gt;&lt;P&gt;ERROR:root: File "D:\QAData\QAData.py", line 112, in QADEMData&lt;BR /&gt; result = arcpy.GetCellValue_management(in_raster=inAllDEMMosaicDatasetFullPath, location_point=str(point['x'])+ " " + str(point['y']), band_index="")&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;/P&gt;&lt;P&gt;ERROR:root: File "D:\QAData\QAData.py", line 112, in QADEMData&lt;BR /&gt; result = arcpy.GetCellValue_management(in_raster=inAllDEMMosaicDatasetFullPath, location_point=str(point['x'])+ " " + str(point['y']), band_index="")&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;/P&gt;&lt;P&gt;ERROR:root: File "D:\QAData\QAData.py", line 112, in QADEMData&lt;BR /&gt; result = arcpy.GetCellValue_management(in_raster=inAllDEMMosaicDatasetFullPath, location_point=str(point['x'])+ " " + str(point['y']), band_index="")&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2018 15:57:14 GMT</pubDate>
    <dc:creator>JerryGarcia</dc:creator>
    <dc:date>2018-05-14T15:57:14Z</dc:date>
    <item>
      <title>ArcPy looses database connection?</title>
      <link>https://community.esri.com/t5/python-snippets-questions/arcpy-looses-database-connection/m-p/834211#M437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears I keep losing my database connection?&amp;nbsp; I am looping.&amp;nbsp; The first 6 or 20 or so operations execute fine, but then it appears I loose the database connection?&amp;nbsp; There is a pause, then a rapid fire of errors.&amp;nbsp; Once it loses a connection, it does not recover.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;testSQLCreatorConnection = r"D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde"&lt;/P&gt;&lt;P&gt;inAllDEMMosaicDataset = r"\GIS.DATACREATOR.all_dem"&lt;/P&gt;&lt;P&gt;inAllDEMMosaicDatasetFullPath = testSQLCreatorConnection + inAllDEMMosaicDataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result = arcpy.GetCellValue_management(in_raster=inAllDEMMosaicDatasetFullPath, location_point=str(point['x'])+ " " + str(point['y']), band_index="")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXAMPLE LOG File:&lt;/P&gt;&lt;P&gt;INFO:root:QADEMData: START&lt;BR /&gt;INFO:root:2018-05-14 11:39:04.494000 Status: 0, cellSize: 0, cellValue: 69.924477&lt;BR /&gt;INFO:root:2018-05-14 11:39:09.009000 Status: 0, cellSize: 0, cellValue: 69.924477&lt;BR /&gt;INFO:root:2018-05-14 11:39:14.822000 Status: 0, cellSize: 0, cellValue: 439.92664&lt;BR /&gt;INFO:root:2018-05-14 11:39:20.462000 Status: 0, cellSize: 0, cellValue: 406.72403&lt;BR /&gt;INFO:root:2018-05-14 11:39:26.071000 Status: 0, cellSize: 0, cellValue: 601.04382&lt;BR /&gt;INFO:root:2018-05-14 11:39:31.618000 Status: 0, cellSize: 0, cellValue: 601.04382&lt;BR /&gt;INFO:root:2018-05-14 11:39:37.180000 Status: 0, cellSize: 0, cellValue: 398.90991&lt;BR /&gt;INFO:root:2018-05-14 11:39:42.743000 Status: 0, cellSize: 0, cellValue: 398.90991&lt;BR /&gt;INFO:root:2018-05-14 11:39:48.399000 Status: 0, cellSize: 0, cellValue: 398.90991&lt;BR /&gt;INFO:root:2018-05-14 11:39:54.055000 Status: 1, cellSize: 0, cellValue: NoData&lt;BR /&gt;INFO:root:2018-05-14 11:39:59.399000 Status: 1, cellSize: 0, cellValue: NoData&lt;BR /&gt;INFO:root:2018-05-14 11:40:05.305000 Status: 1, cellSize: 0, cellValue: NoData&lt;BR /&gt;ERROR:root: File "D:\QAData\QAData.py", line 112, in QADEMData&lt;BR /&gt; result = arcpy.GetCellValue_management(in_raster=inAllDEMMosaicDatasetFullPath, location_point=str(point['x'])+ " " + str(point['y']), band_index="")&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;/P&gt;&lt;P&gt;ERROR:root: File "D:\QAData\QAData.py", line 112, in QADEMData&lt;BR /&gt; result = arcpy.GetCellValue_management(in_raster=inAllDEMMosaicDatasetFullPath, location_point=str(point['x'])+ " " + str(point['y']), band_index="")&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;/P&gt;&lt;P&gt;ERROR:root: File "D:\QAData\QAData.py", line 112, in QADEMData&lt;BR /&gt; result = arcpy.GetCellValue_management(in_raster=inAllDEMMosaicDatasetFullPath, location_point=str(point['x'])+ " " + str(point['y']), band_index="")&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;/P&gt;&lt;P&gt;ERROR:root: File "D:\QAData\QAData.py", line 112, in QADEMData&lt;BR /&gt; result = arcpy.GetCellValue_management(in_raster=inAllDEMMosaicDatasetFullPath, location_point=str(point['x'])+ " " + str(point['y']), band_index="")&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;BR /&gt;Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000732: Input Raster: Dataset D:\PWDs\SDE_Connection_Files\agren-gis-test-DataCreator.sde\GIS.DATACREATOR.all_dem does not exist or is not supported&lt;BR /&gt;Failed to execute (GetCellValue).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 15:57:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/arcpy-looses-database-connection/m-p/834211#M437</guid>
      <dc:creator>JerryGarcia</dc:creator>
      <dc:date>2018-05-14T15:57:14Z</dc:date>
    </item>
  </channel>
</rss>

