Issue during import-module #669
Unanswered
jurgendhooge
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Could you confirm that this is actually an LCS T2 (and not T1) environment? If yes, is this environment hosted on premise (local business data)? If not, do you know how the d365fo.tools were installed on it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm not sure if this is the correct place to ask this kind of question, so I apologise in advance if it isn't.
I'm trying to debug a script that uses d365fo.tools for doing a DB refresh in LCS.
This is a Powershell script being called from a DevOps pipeline that worked fine until August 12th.
At the start of the script, it tries to confirm whether the d365fo.tools module is installed on the environment already [in this case a Tier 2 LCS F&O environment, not sure if that is relevant] and import it:
The error in my release pipeline reads:
So from what I can tell it tries to Import-Module d365fo.tools after which it lands in d365fo.tools.psm1 on line 83, but I'm not sure where the four arguments to the Import-ModuleFile command would be coming from, or where it gets this K drive from.
I noticed that in earlier, working runs of the script, it would note that it could not find a %ServiceDrive% variable and default to the C drive, even though we set it to the K drive. I've tried changing that part to the C drive instead as you can tell, but to no avail.
[Environment]::SetEnvironmentVariable("ServiceDrive", "C:", "Machine")
Any idea where it could be getting that K drive from?
Thanks in advance,
Jürgen
Beta Was this translation helpful? Give feedback.
All reactions