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

Environment block used to start a process cannot be longer than 65535 bytes #18

Open
Aussiemon opened this issue Feb 21, 2023 · 1 comment

Comments

@Aussiemon
Copy link

Getting an error that seems to be related to the task SDK being out of date: microsoft/azure-pipelines-task-lib#228

Add-Type : The environment block used to start a process cannot be longer than 65535 bytes.  Your environment block is 
2023-02-21T19:26:20.8808473Z 96274 bytes long.  Remove some environment variables and try again.
2023-02-21T19:26:20.8809779Z At D:\TFS\MA4\_w\_tasks\DeployIsPacs_2ac2b060-978b-11e7-84a3-f5c70df70787\3.2.2\ps_modules\VstsTaskSdk\LongPathFunction
2023-02-21T19:26:20.8811059Z s.ps1:212 char:1
2023-02-21T19:26:20.8811947Z + Add-Type -Debug:$false -TypeDefinition @'
2023-02-21T19:26:20.8812861Z + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-02-21T19:26:20.8813892Z     + CategoryInfo          : NotSpecified: (:) [Add-Type], InvalidOperationException
2023-02-21T19:26:20.8815173Z     + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.AddTypeCommand
2023-02-21T19:26:20.8816178Z  
2023-02-21T19:26:21.0035381Z Add-Type : The environment block used to start a process cannot be longer than 65535 bytes.  Your environment block is 
2023-02-21T19:26:21.0036766Z 96274 bytes long.  Remove some environment variables and try again.
2023-02-21T19:26:21.0038061Z At D:\TFS\MA4\_w\_tasks\DeployIsPacs_2ac2b060-978b-11e7-84a3-f5c70df70787\3.2.2\ps_modules\VstsTaskSdk\VstsTaskSdk.psm1
2023-02-21T19:26:21.0039151Z :74 char:1
2023-02-21T19:26:21.0040131Z + Add-Type -WarningAction SilentlyContinue -Debug:$false -TypeDefinitio ...
@Aussiemon
Copy link
Author

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

1 participant