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

Error in step Adding a version history file _UPDATE_HISTORY.txt #55

Open
mco84 opened this issue Oct 10, 2019 · 2 comments
Open

Error in step Adding a version history file _UPDATE_HISTORY.txt #55

mco84 opened this issue Oct 10, 2019 · 2 comments

Comments

@mco84
Copy link

mco84 commented Oct 10, 2019

I think there's a hard coded base path somewhere in the scripte when using the UpdateLocation parameter. So when I'm using a different then the default path C:\SP\SP2019 in the very end of the process this happens:

Set-Content : Could not find a part of the path 'C:\SP\2019\_UPDATE_HISTORY.txt'.
At P:\SP-Test\AutoSPSourceBuilder\AutoSPSourceBuilder.ps1:1083 char:5
+     Set-Content -Path "$Destination\$textFileName" -Value "This media ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\SP\2019\_UPDATE_HISTORY.txt:String) [Set-Content], DirectoryNotFoundExcep
   tion
    + FullyQualifiedErrorId : GetContentWriterDirectoryNotFoundError,Microsoft.PowerShell.Commands.SetContentCommand

Add-Content : Could not find a part of the path 'C:\SP\2019\_UPDATE_HISTORY.txt'.
At P:\SP-Test\AutoSPSourceBuilder\AutoSPSourceBuilder.ps1:1085 char:1
+ Add-Content -Path "$Destination\$textFileName" -Value "-------------- ...
@brianlala
Copy link
Owner

Yes this is what $Destination defaults to if you don't specify a path for it in the command line.

@mco84
Copy link
Author

mco84 commented Jan 17, 2020

I need to test this again. You see some time has passed and what I remember it was a strange error I haven't had in similar constellations. I will let you know what I find out.

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

No branches or pull requests

2 participants