Skip to content

DYN-10491: Fix template open for legacy XML .dyn files#17102

Open
Chloepeg wants to merge 1 commit into
DynamoDS:masterfrom
Chloepeg:DYN-10491-Template-error-with-older-xml-fmt-graph
Open

DYN-10491: Fix template open for legacy XML .dyn files#17102
Chloepeg wants to merge 1 commit into
DynamoDS:masterfrom
Chloepeg:DYN-10491-Template-error-with-older-xml-fmt-graph

Conversation

@Chloepeg
Copy link
Copy Markdown
Contributor

Purpose

This PR addresses DYN-10491 https://jira.autodesk.com/browse/DYN-10491 The changes in the code aim to fix misleading "corrupted file" error for valid old XML workspaces opened from File- New - From template
This issue was discovered while testing the new workflow ( File- New - From template https://jira.autodesk.com/browse/DYN-10228 ) But this behaviour already existed in previous File - Open -Template workflow

Changes :

OpenTemplateFromPath now matches OpenFileFromPath: try JSON, then fall back to XML when JSON parsing fails. OpenXmlFileFromPath accepts an optional isTemplate flag so XML graphs opened from File > New > From Template set WorkspaceModel.IsTemplate like JSON template opens.

Issue :

Issue gif

Fix :

Fix gif

Declarations

Check these if you believe they are true

Release Notes

Align OpenTemplateFromPath with OpenFileFromPath JSON-then-XML load.
Set IsTemplate on XML-opened workspaces for the template flow.

Reviewers

@zeusongit
@DynamoDS/eidos

FYIs

@dnenov
@johnpierson
@jnealb

OpenTemplateFromPath now matches OpenFileFromPath: try JSON, then fall
back to XML when JSON parsing fails. OpenXmlFileFromPath accepts an
optional isTemplate flag so XML graphs opened from File > New > From
Template set WorkspaceModel.IsTemplate like JSON template opens.
@github-actions github-actions Bot changed the title Fix template open for legacy XML .dyn files DYN-10491: Fix template open for legacy XML .dyn files May 11, 2026
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-10491

@sonarqubecloud
Copy link
Copy Markdown

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

Successfully merging this pull request may close these issues.

1 participant