Octopus step templates throws always warning about <>f__AnonymousType0`1
ybhole
Posts: 5 New member
Hello,
I am using SQL Change Automation 3.0.5.2759 together with Octopus deploy v 2018.3.6 and Redgate - Create Database Release and Redgate - Deploy from Database Release step templates always throw warning because of which we never have clean green Octopus build. Octopus build is marked as success with warning which is
Telemetry: Cannot add type. The type name '<>f__AnonymousType0`1' already exists.
Check the attached complete log from the step template.
Best Regards !
/ Yogesh
I am using SQL Change Automation 3.0.5.2759 together with Octopus deploy v 2018.3.6 and Redgate - Create Database Release and Redgate - Deploy from Database Release step templates always throw warning because of which we never have clean green Octopus build. Octopus build is marked as success with warning which is
Telemetry: Cannot add type. The type name '<>f__AnonymousType0`1' already exists.
Check the attached complete log from the step template.
Best Regards !
/ Yogesh
Comments
This should be addressed by installing PowerShell Get 2 on the tentacle.
You can do this by running the following as an admin in PowerShell on the tentacle
Update-Module -Name PowerShellGet
More info:
The problem occurs because you have PowerShell Get 1.0.0.1 on the machine, and we require at least 1.6. So we install that but due to an issue in PowerShell Get, you get the warning when we install version 2 of the module.
By the way I have to execute following command (with -Force option) on Octopus tentacle server
as mentioned at https://docs.microsoft.com/en-us/powershell/gallery/installing-psget
Without -Force option gave following errors