Skip to content

Commit cf07f64

Browse files
committed
fix: parsing PTD items on network drive
1 parent d2fba37 commit cf07f64

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- Fixed Import All options not importing the Embedded Git configuration file
1919
- Improved performance of IDE editing and baselining of decomposed productions
2020
- Fixed Discard / Stash not working on deletes (#688)
21+
- Fixed errors deploying decomposed production changes on Windows network drives (#696)
2122

2223
## [2.9.0] - 2025-01-09
2324

cls/SourceControl/Git/Production.cls

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,12 @@ ClassMethod ParseExternalName(externalName, Output internalName = "", Output pro
380380
} else {
381381
if ##class(%File).Exists(externalName) {
382382
// Special case for Config Item Settings PTD, requires checking PTD CDATA for Item and Class name
383-
set deployDoc = ##class(EnsLib.EDI.XML.Document).%New(externalName)
383+
// XML parser requires \\ instead of // for network directories
384+
set deployDoc = ##class(EnsLib.EDI.XML.Document).%New($replace(externalName,"//","\\"))
385+
if '$isobject(deployDoc) {
386+
set sc = $$$ADDSC(%objlasterror,$$$ERROR($$$GeneralError,"Failed to create document"))
387+
quit
388+
}
384389
set exportNotesPTDText = $ZCVT(deployDoc.GetValueAt("/Export/Document[1]/1"),"I","XML")
385390
set exportNotesPTD = ##class(EnsLib.EDI.XML.Document).%New(exportNotesPTDText)
386391
set productionName = exportNotesPTD.GetValueAt("/Deployment/Creation/SourceProduction")

0 commit comments

Comments
 (0)