Select to view content in your preferred language

Credential dialogue pop up when running custom tool in ArcGIS Pro

407
3
12-17-2024 03:19 PM
KevindeSouza
Emerging Contributor

Software: ArcGIS Pro 3.2.2, Python 3.9

Hello,

I am developing a tool to be accessed via an ArcGIS Pro toolbox GUI. The script pulls data from 3 databases: 1 Postgres, 2 Oracle DBs. We are using .ini files to store credentials, but give the user the option to manually enter credentials if they prefer (username and password parameters are optional within the tool properties). There are a few quirks about developing in the esri world, one that is really annoying me is that when running the tool, credential dialogue boxes keep popping up, asking the user to log in several times to each database. The user can cancel out of each dialogue and the tool is able to log into to the DBs, so it isn't an issue with credentials.

0 Kudos
3 Replies
KevindeSouza
Emerging Contributor

I think I figured it out. I had to add my sde connections to my favorites within my template project, and then sign in to each DB before running the tool. Would be nice if there was a solution to this that wasn't as redundant as logging in to the same DB multiple times.

 

0 Kudos
AlfredBaldenweck
MVP Regular Contributor

Could you just store the credentials in the SDE file? 

0 Kudos
KevindeSouza
Emerging Contributor

That isn't a great solution due to our organization's policies around data privacy & protection

0 Kudos