Select to view content in your preferred language

Python script error: RuntimeError: Failed to add data. Possible credentials issue.

580
1
09-26-2024 06:58 AM
EricHughesLabella
New Contributor

I use a custom geoprocessing tool that generates two figures. I didn't create this tool, but it has worked without issue for the past two years. Now, it takes roughly 40 minutes to run before crashing (it used to take only a couple minutes to complete) and only part of the tasks are completed. I looked over the code many times and nothing looks to be incorrect. 

I am using ArcGIS Pro 3.3.1

I'm not getting any error codes when it crashes. It just says "RuntimeError: Failed to add data. Possible credentials issue". This is what I'm seeing:

EricHughesLabella_0-1727358878781.png

I attached my script too. Here is a screenshot of my parameters for reference:

EricHughesLabella_1-1727359030996.png

 

0 Kudos
1 Reply
BruceBacia
Frequent Contributor

It may be an issue with a constructed file path.  Try printing out the variable “Centerpoint_shp1” before running addDataFromPath to see if it is constructed properly. 

0 Kudos