Skip to content

[BUG]: Cannot convert value "4195872" to type "VstsTaskSdk.FS.Attributes" due to enumeration values that are not valid. #21311

@AviralNalwat

Description

@AviralNalwat

New issue checklist

Task name

PublishSymbol@2

Task version

Version : 2.260.0

Issue Description

We're getting transient errors

##[error]Cannot convert value "4195872" to type "VstsTaskSdk.FS.Attributes" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Readonly,Hidden,System,Directory,Archive,Device,Normal,Temporary,SparseFile,ReparsePoint,Compressed,Offline,NotContentIndexed,Encrypted,IntegrityStream,Virtual,NoScrubData,FirstPipeInstance,OpenNoRecall,OpenReparsePoint,PosixSemantics,BackupSemantics,DeleteOnClose,SequentialScan,RandomAccess,NoBuffering,Overlapped,Write_Through".

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows

Relevant log output

##[debug]Caught exception from task script.
##[debug]Error record:
##[debug]Find-VstsMatch : Cannot convert value "4195872" to type "VstsTaskSdk.FS.Attributes" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Readonly,Hidden,System,Directory,Archive,Device,Normal,Temporary,SparseFile,ReparsePoint,Compressed,Offline,NotContentIndexed,Encrypted,IntegrityStream,Virtual,NoScrubData,FirstPipeInstance,OpenNoRecall,OpenReparsePoint,PosixSemantics,BackupSemantics,DeleteOnClose,SequentialScan,RandomAccess,NoBuffering,Overlapped,Write_Through".
##[debug]At C:\Agent\_work\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.260.0\PublishSymbols.ps1:122 char:22
##[debug]+ ... matches = @(Find-VstsMatch -DefaultRoot $SymbolsFolder -Pattern $Sear ...
##[debug]+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##[debug]    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
##[debug]    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Find-VstsMatch
##[debug] 
##[debug]Script stack trace:
##[debug]at Find-Match, C:\Agent\_work\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.260.0\ps_modules\VstsTaskSdk\FindFunctions.ps1: line 221
##[debug]at <ScriptBlock>, C:\Agent\_work\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.260.0\PublishSymbols.ps1: line 122
##[debug]at <ScriptBlock>, <No file>: line 1
##[debug]at <ScriptBlock>, <No file>: line 22
##[debug]at <ScriptBlock>, <No file>: line 18
##[debug]at <ScriptBlock>, <No file>: line 1
##[debug]Exception:
##[debug]Microsoft.PowerShell.Commands.WriteErrorException: Cannot convert value "4195872" to type "VstsTaskSdk.FS.Attributes" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Readonly,Hidden,System,Directory,Archive,Device,Normal,Temporary,SparseFile,ReparsePoint,Compressed,Offline,NotContentIndexed,Encrypted,IntegrityStream,Virtual,NoScrubData,FirstPipeInstance,OpenNoRecall,OpenReparsePoint,PosixSemantics,BackupSemantics,DeleteOnClose,SequentialScan,RandomAccess,NoBuffering,Overlapped,Write_Through".
##[error]Cannot convert value "4195872" to type "VstsTaskSdk.FS.Attributes" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Readonly,Hidden,System,Directory,Archive,Device,Normal,Temporary,SparseFile,ReparsePoint,Compressed,Offline,NotContentIndexed,Encrypted,IntegrityStream,Virtual,NoScrubData,FirstPipeInstance,OpenNoRecall,OpenReparsePoint,PosixSemantics,BackupSemantics,DeleteOnClose,SequentialScan,RandomAccess,NoBuffering,Overlapped,Write_Through".
##[debug]Processed: ##vso[task.logissue type=error]Cannot convert value "4195872" to type "VstsTaskSdk.FS.Attributes" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Readonly,Hidden,System,Directory,Archive,Device,Normal,Temporary,SparseFile,ReparsePoint,Compressed,Offline,NotContentIndexed,Encrypted,IntegrityStream,Virtual,NoScrubData,FirstPipeInstance,OpenNoRecall,OpenReparsePoint,PosixSemantics,BackupSemantics,DeleteOnClose,SequentialScan,RandomAccess,NoBuffering,Overlapped,Write_Through".
##[debug]Processed: ##vso[task.complete result=Failed]

Full task logs with system.debug enabled

Details
 ##[debug]Caught exception from task script.
##[debug]Error record:
##[debug]Find-VstsMatch : Cannot convert value "4195872" to type "VstsTaskSdk.FS.Attributes" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Readonly,Hidden,System,Directory,Archive,Device,Normal,Temporary,SparseFile,ReparsePoint,Compressed,Offline,NotContentIndexed,Encrypted,IntegrityStream,Virtual,NoScrubData,FirstPipeInstance,OpenNoRecall,OpenReparsePoint,PosixSemantics,BackupSemantics,DeleteOnClose,SequentialScan,RandomAccess,NoBuffering,Overlapped,Write_Through".
##[debug]At C:\Agent\_work\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.260.0\PublishSymbols.ps1:122 char:22
##[debug]+ ... matches = @(Find-VstsMatch -DefaultRoot $SymbolsFolder -Pattern $Sear ...
##[debug]+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##[debug]    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
##[debug]    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Find-VstsMatch
##[debug] 
##[debug]Script stack trace:
##[debug]at Find-Match, C:\Agent\_work\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.260.0\ps_modules\VstsTaskSdk\FindFunctions.ps1: line 221
##[debug]at , C:\Agent\_work\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.260.0\PublishSymbols.ps1: line 122
##[debug]at , : line 1
##[debug]at , : line 22
##[debug]at , : line 18
##[debug]at , : line 1
##[debug]Exception:
##[debug]Microsoft.PowerShell.Commands.WriteErrorException: Cannot convert value "4195872" to type "VstsTaskSdk.FS.Attributes" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Readonly,Hidden,System,Directory,Archive,Device,Normal,Temporary,SparseFile,ReparsePoint,Compressed,Offline,NotContentIndexed,Encrypted,IntegrityStream,Virtual,NoScrubData,FirstPipeInstance,OpenNoRecall,OpenReparsePoint,PosixSemantics,BackupSemantics,DeleteOnClose,SequentialScan,RandomAccess,NoBuffering,Overlapped,Write_Through".
##[error]Cannot convert value "4195872" to type "VstsTaskSdk.FS.Attributes" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Readonly,Hidden,System,Directory,Archive,Device,Normal,Temporary,SparseFile,ReparsePoint,Compressed,Offline,NotContentIndexed,Encrypted,IntegrityStream,Virtual,NoScrubData,FirstPipeInstance,OpenNoRecall,OpenReparsePoint,PosixSemantics,BackupSemantics,DeleteOnClose,SequentialScan,RandomAccess,NoBuffering,Overlapped,Write_Through".
##[debug]Processed: ##vso[task.logissue type=error]Cannot convert value "4195872" to type "VstsTaskSdk.FS.Attributes" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "None,Readonly,Hidden,System,Directory,Archive,Device,Normal,Temporary,SparseFile,ReparsePoint,Compressed,Offline,NotContentIndexed,Encrypted,IntegrityStream,Virtual,NoScrubData,FirstPipeInstance,OpenNoRecall,OpenReparsePoint,PosixSemantics,BackupSemantics,DeleteOnClose,SequentialScan,RandomAccess,NoBuffering,Overlapped,Write_Through".
##[debug]Processed: ##vso[task.complete result=Failed]
 

Repro steps

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions