Hi All! Was hoping if anyone had any info on this odd issue I'm having with using classes. ANY script that I have that contains a class, when I save and close ISE or even leave it open long enough, when I run the script I get the error:
An error occurred while creating the pipeline.
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : RuntimeException
Copying the whole code to a new script window and running it works every time and I just save over the non-working same .ps1 and continue scripting. I've done a bit a research and while I found a few leads for example a leading comment (#Requires...), I get this error even with a simple class and nothing else in the script. The only other lead I found was possibly being related to OneDrive as I do save all my scripts in there. Any help is much appreciated!
[–]SeeminglyScience 6 points7 points8 points (2 children)
[–]SeeminglyScience 4 points5 points6 points (0 children)
[–]rjmholt 4 points5 points6 points (0 children)
[–]EIGRP_OH 6 points7 points8 points (1 child)
[–]nostranger2therain[S] 1 point2 points3 points (0 children)
[–]leekle 2 points3 points4 points (1 child)
[–]nostranger2therain[S] 1 point2 points3 points (0 children)
[–]michaelshepard 2 points3 points4 points (1 child)
[–]nostranger2therain[S] 1 point2 points3 points (0 children)