Select to view content in your preferred language

Different behavior when importing XML Workspace Document with ArcGIS Pro vs ArcPy

391
0
06-22-2023 07:20 AM
by Anonymous User
Not applicable

Hello,

I'm trying to import a schema XML file into a Geodatabase. Doing this with Pro gets the output I expect, but not with ArcPy. The fields are almost completely broken.

  • All non-Text fields automatically become Text.
  • All Text fields automatically have a maximum length of 65,536 characters.

ArcGIS Pro workflow

  • Add Database
  • Import XML Workspace Document
  • Set paths for GDB and XML
  • Import schema only
  • Leave Configuration Keyword empty

Python code

ap.management.ImportXMLWorkspaceDocument(GDB_PATH, XML_PATH, 'SCHEMA_ONLY')

 

Are there some configuration settings that Pro handles under the hood that I need to set as well? Is this a common workflow others have used as well?

Thanks for the help.

A

Tags (3)
0 Kudos
0 Replies