Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating script for 2018 data model #1

Open
Armadillo21 opened this issue Jun 11, 2018 · 1 comment
Open

Updating script for 2018 data model #1

Armadillo21 opened this issue Jun 11, 2018 · 1 comment
Assignees

Comments

@Armadillo21
Copy link

Armadillo21 commented Jun 11, 2018

This is Barbara in Esri Support Services requesting information on behalf of a user in a Support case. At the time of this writing, the script supports the 2017 data model. The user wants to incorporate ALRS into the 2018 data model. In the script CreateUPDM.py, I have used a plain-text editor (tried with Notepad++ and WordPad) to replace the updmXmlString between the triple-quotes with the entire contents of the UPDM2018.XML file, which appears similar in format to the string in the original script. Running the script, however, gives an error in the function ImportXMLWorkspaceDocument:
"ExecuteError: Failed to execute. Parameters are not valid.
ERROR 001162: Invalid XML file."
Is this the correct approach for this task, and if not, can you advise how to accomplish it. I'm attaching a zipped copy of the updated script, which has a .txt extension for editing purposes. Thanks for any insights!
CreateUPDM_2018_amber2.zip
Update: In a text editor, I changed all occurrences of the string "10.5" to "10.6," both within the embedded XML data and in the script. This allowed the script to run nearly to completion. During the Adding Indexes phase it failed when attempting to add an index to field engtorouteid, which no longer exists within P_PipeCrossing.

@tomhillgeo
Copy link
Collaborator

@Armadillo21 The repo's README now says when we plan to update the python script to handle UPDM 2018. The LRS configuration part of the script needs to be changed to accommodate UPDM schema changes between the 2017 and 2018 versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants