I am trying to test out the free tools from Esri that do a schedule sync for construction Purposes. These tools are at GitHub - Esri/schedule-sync: schedule-sync
I am getting an error when running the Sync P6 XML Schedule tool with the sample data. Details below:
Traceback (most recent call last): File "<string>", line 608, in execute File "<string>", line 3947, in syncSchedule File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\__init__.py", line 14961, in publish res = self._portal.con.post(path, postdata) File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1528, in post return self._handle_response( File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1008, in _handle_response self._handle_json_error(data["error"], errorcode) File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1031, in _handle_json_error raise Exception(errormessage)Exception: Analyze Service error: Exception: Connection reset(Error Code: 0)During handling of the above exception, another exception occurred:Traceback (most recent call last): File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\shutil.py", line 627, in _rmtree_unsafe os.unlink(fullname)PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\NICHOL~1.MIL\\AppData\\Local\\Temp\\ArcGISProTemp30184\\tmpvpgoutga\\sync_line_segments.gdb\\a0000000a.freelist'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\tempfile.py", line 805, in onerror _os.unlink(path)PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\NICHOL~1.MIL\\AppData\\Local\\Temp\\ArcGISProTemp30184\\tmpvpgoutga\\sync_line_segments.gdb\\a0000000a.freelist'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "<string>", line 630, in execute File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\tempfile.py", line 830, in __exit__ self.cleanup() File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\tempfile.py", line 834, in cleanup self._rmtree(self.name) File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\tempfile.py", line 816, in _rmtree _shutil.rmtree(name, onerror=onerror) File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\shutil.py", line 759, in rmtree return _rmtree_unsafe(path, onerror) File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\shutil.py", line 624, in _rmtree_unsafe _rmtree_unsafe(fullname, onerror) File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\shutil.py", line 629, in _rmtree_unsafe onerror(os.unlink, fullname, sys.exc_info()) File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\tempfile.py", line 808, in onerror cls._rmtree(path) File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\tempfile.py", line 816, in _rmtree _shutil.rmtree(name, onerror=onerror) File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\shutil.py", line 759, in rmtree return _rmtree_unsafe(path, onerror) File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\shutil.py", line 610, in _rmtree_unsafe onerror(os.scandir, path, sys.exc_info()) File "C:\Users\nicholas.miller\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\shutil.py", line 607, in _rmtree_unsafe with os.scandir(path) as scandir_it:NotADirectoryError: [WinError 267] The directory name is invalid: 'C:\\Users\\NICHOL~1.MIL\\AppData\\Local\\Temp\\ArcGISProTemp30184\\tmpvpgoutga\\sync_line_segments.gdb\\a0000000a.freelist'
I put the tools and the data in the C Temp directory of my PC as I was worried that calling the tools data from my OneDrive wouldn’t work.
But I still get the errors.
I have cloned by python environment as well.
Using PRO3.1.2
Any suggestions on why its failing for me?
I'm getting the same issue, did you manage to resolve this please?