Select to view content in your preferred language

Update Describe to handle connection strings

196
1
04-30-2024 07:27 AM
Status: Closed
BlakeTerhune
MVP Regular Contributor

I would like to be able to use a database connection to get workspace properties from Describe. Using Pro 3.1.3, accessing any of the workspace properties everything results in

OSError: "CIMDATA=<CIMStandardDataConnection xsi:type=...rest of connection string" does not exist

If I'm building paths to layers and tables in a script, I sometimes use Describe to get workspace information from one layer to build another. It's also helpful in debugging.

Here's a question discussion for reference.

Tags (1)
1 Comment
HannesZiegler
Status changed to: Closed

Thank you for submitting your idea to describe connection strings using ArcPy's Describe methods. We appreciate your suggestion and the time you took to provide detailed feedback. ArcPy Describe is designed to work with data sources (direct paths to data) and ArcPy objects, but not with arbitrary strings. Dealing with arbitrary strings would add significant overhead. To get the description of a database connection, please continue using the result of Create Database Connection (Data Management)—ArcGIS Pro | Documentation or an existing .sde file. After careful consideration, we regret to inform you that we will not be implementing this idea at this time.

Thank you again for your contribution and understanding.