Select to view content in your preferred language

Tool Parameter Workspace with arcpy.GetParameterAsText() result is different for SDE vs fgdb

505
1
Jump to solution
12-01-2023 09:53 AM
SeanT
by
Occasional Contributor

I have a custom GP tool that combines two or more gdb together, works fine for fgdbs, but two SDEs don't combine. The tool is setup to accept multiple Workspaces.

While debugging the issue, I found that two fgdbs come in as a list like path\name1.gdb;path\name2.gdb. The issue for SDE egdbs is that they come in like: 'path\name1.SDE';'path\name2.SDE'.

Can someone explain why the SDE is coming in with quotations vs the fgdbs that come in without them? I think that is the issue, but not sure what is causing it. 

 

0 Kudos
1 Solution

Accepted Solutions
SeanT
by
Occasional Contributor

Figured out my own issue, thankfully, the SDE names had spaces in them, and thus were put in quotes, which then didn't work in the tool's script. 

View solution in original post

0 Kudos
1 Reply
SeanT
by
Occasional Contributor

Figured out my own issue, thankfully, the SDE names had spaces in them, and thus were put in quotes, which then didn't work in the tool's script. 

0 Kudos