Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

Cannot validate argument on parameter 'PercentComplete'

Open hmank opened this issue 6 years ago • 0 comments

Details of the scenario you tried and the problem that is occurring

I was exporting - Teams Channel, Teams Team, Teams User for a large tenant. It threw an error after reaching 110% of completion, but didn't complete the export.

Verbose logs showing the problem

[2020/07/29 04:40:53] {InvalidData} System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'PercentComplete'. The 111 argument is greater than the maximum allowed range of 100. Supply an argument that is less than or equal to 100 and then try the command again. ---> System.Management.Automation.ValidationMetadataException: The 111 argument is greater than the maximum allowed range of 100. Supply an argument that is less than or equal to 100 and then try the command again. at System.Management.Automation.ValidateRangeAttribute.ValidateElement(Object element) at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags) --- End of inner exception stack trace --- at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception) at System.Management.Automation.Interpreter.ActionCallInstruction2.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) at System.Management.Automation.PSScriptCmdlet.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) at System.Management.Automation.PSScriptCmdlet.DoEndProcessing() at System.Management.Automation.CommandProcessorBase.Complete() ""

Suggested solution to the issue

The DSC configuration that is used to reproduce the issue (as detailed as possible)

# insert configuration here

The operating system the target node is running

OsName : Microsoft Windows 10 Pro OsOperatingSystemSKU : 48 OsArchitecture : 64-bit WindowsVersion : 2004 WindowsBuildLabEx : 19041.1.amd64fre.vb_release.191206-1406 OsLanguage : en-US OsMuiLanguages : {en-US}

Version of the DSC module that was used ('dev' if using current dev branch)

1.20.730.1

hmank avatar Jul 30 '20 14:07 hmank