-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Errors on Import #191
Comments
I can confirm that this has been an issue |
With the latest version of dbaclone 0.10.65 (released today) this should be a thing of the past |
Haven't tested extensively yet, but so far so good on the new version. Thanks! |
Unfortunately, I'm still seeing this on a brand new server with v 0.10.68. If
|
Alright, the issue still present but I do have a workaround for you. TLDRRun The long versionTo recap, these are the errors and, for me, they started while I was trying to call
This led to another issue where the module couldn't be imported. Set-DcnConfiguration : The 'Set-DcnConfiguration' command was found in the module 'dbaclone', but the module could not be loaded. For more information, run
'Import-Module dbaclone'. Looking at So, time to open up VSCode, create a file with We step inside dbaclone\0.10.72\dbaclone.psm1
L49: else { $ExecutionContext.InvokeCommand.InvokeScript($false, ([scriptblock]::Create([io.file]::ReadAllText($resolvedPath))), $null, $null) } This statement is failing so we update the breakpoint and start over but this time we step inside and keep stepping over until we hit the next error. dbaclone\0.10.72\internal\scripts\postimport.ps1
L25: if (((Get-PSFConfigValue -FullName dbaclone.informationstore.mode).ToLower()) -eq 'file') { As you can see, this function is leveraging the Powershell Framework's PSFConfig functions to get/set Dbaclone config settings. If we run the snippet And there you have. In my case I'm using SQL. If you're using something else use that. I'm not sure how the module loads after install before you run |
Thanks for the followup on this! I am no longer working where this was a problem, but this makes sense enough to unblock them I'm sure. |
Before submitting the bug
powershell -NoProfile
)Describe the bug
I haven't been able to dig in much deeper yet, but after having used
Set-DcnConfiguration
to point to a valid dbaclone database, the following error appears onImport-Module dbaclone
. It appears to work fine after the error and doesn't happen 100% of the time.To Reproduce
Expected behavior
A clean import.
The text was updated successfully, but these errors were encountered: