Skip to content

Import All fails to import decomposed production items on Windows network drive #696

Closed
@isc-pbarton

Description

@isc-pbarton

If the Git repository is on a Windows shared network drive, for example \healthconnectshare\healthconnect$\Repo\POC,
Import All options will fail to import any items settings file for a decomposed production.

The root cause is in ParseExternalName(), which will return a null internal name for the item's PTD file. Trying to parse the deploy document using EnsLib.EDI.XML.Document will fail with an error like:
unable to open primary document entity 'e:\hs-databases\poc///healthconnectshare/healthconnect$/Repo/POC/ptd/RPCCC_Production_Foo/Stgs-Bar7BC2.xml' at line 0 offset 0

This EnsLib XML document parser doesn't like the double slashes leading the file path, and treats it as a path relative to the default database directory rather than the absolute path.

A workaround is to move the Git repo from a network drive to a local drive, but we need to fix because putting the Git repo on a shared drive is a good idea for mirrored environments.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions