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

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

Open
isc-pbarton opened this issue Jan 27, 2025 · 0 comments · May be fixed by #698
Open

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

isc-pbarton opened this issue Jan 27, 2025 · 0 comments · May be fixed by #698
Assignees

Comments

@isc-pbarton
Copy link
Collaborator

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.

@isc-pbarton isc-pbarton self-assigned this Jan 27, 2025
@isc-pbarton isc-pbarton linked a pull request Jan 27, 2025 that will close this issue
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 a pull request may close this issue.

1 participant