Title: Bug - Format-Default - Cannot process argument because the value of argument "name" is not valid · Issue #21147 · PowerShell/PowerShell · GitHub
Open Graph Title: Bug - Format-Default - Cannot process argument because the value of argument "name" is not valid · Issue #21147 · PowerShell/PowerShell
X Title: Bug - Format-Default - Cannot process argument because the value of argument "name" is not valid · Issue #21147 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/21147
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug - Format-Default - Cannot process argument because the value of argument \"name\" is not valid","articleBody":"### Prerequisites\n\n- [X] Write a descriptive title.\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [X] Search the existing issues.\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nThe issue is specific to `TableControl` with that pulls from a localized resource.\n\n### Expected behavior\n\n```console\nThis starts failing from PS 7.4.\r\n\r\n\r\n\u003cView\u003e\r\n \u003cName\u003ePSRule.Rules.RuleRecord\u003c/Name\u003e\r\n \u003cViewSelectedBy\u003e\r\n \u003cTypeName\u003ePSRule.Rules.RuleRecord\u003c/TypeName\u003e\r\n \u003c/ViewSelectedBy\u003e\r\n \u003cGroupBy\u003e\r\n \u003cPropertyName\u003eTargetName\u003c/PropertyName\u003e\r\n \u003c/GroupBy\u003e\r\n \u003cTableControl\u003e\r\n \u003cTableHeaders\u003e\r\n \u003cTableColumnHeader\u003e\r\n \u003cLabel AssemblyName=\"Microsoft.PSRule.Core\" BaseName=\"PSRule.Resources.ViewStrings\" ResourceId=\"RuleName\"/\u003e\r\n \u003cWidth\u003e35\u003c/Width\u003e\r\n \u003c/TableColumnHeader\u003e\r\n \u003cTableColumnHeader\u003e\r\n \u003cLabel AssemblyName=\"Microsoft.PSRule.Core\" BaseName=\"PSRule.Resources.ViewStrings\" ResourceId=\"Outcome\"/\u003e\r\n \u003cWidth\u003e10\u003c/Width\u003e\r\n \u003c/TableColumnHeader\u003e\r\n \u003cTableColumnHeader\u003e\r\n \u003cLabel AssemblyName=\"Microsoft.PSRule.Core\" BaseName=\"PSRule.Resources.ViewStrings\" ResourceId=\"Recommendation\"/\u003e\r\n \u003c/TableColumnHeader\u003e\r\n \u003c/TableHeaders\u003e\r\n \u003cTableRowEntries\u003e\r\n \u003cTableRowEntry\u003e\r\n \u003cTableColumnItems\u003e\r\n \u003cTableColumnItem\u003e\r\n \u003cPropertyName\u003eRuleName\u003c/PropertyName\u003e\r\n \u003c/TableColumnItem\u003e\r\n \u003cTableColumnItem\u003e\r\n \u003cPropertyName\u003eOutcome\u003c/PropertyName\u003e\r\n \u003c/TableColumnItem\u003e\r\n \u003cTableColumnItem\u003e\r\n \u003cPropertyName\u003eRecommendation\u003c/PropertyName\u003e\r\n \u003c/TableColumnItem\u003e\r\n \u003c/TableColumnItems\u003e\r\n \u003c/TableRowEntry\u003e\r\n \u003c/TableRowEntries\u003e\r\n \u003c/TableControl\u003e\r\n \u003c/View\u003e\n```\n\n\n### Actual behavior\n\n```console\nGenerates exception.\n```\n\n\n### Error details\n\n```console\nType : System.Management.Automation.CmdletInvocationException\r\nErrorRecord :\r\n Exception :\r\n Type : System.Management.Automation.PSArgumentException\r\n ErrorRecord :\r\n Exception :\r\n Type : System.Management.Automation.ParentContainsErrorRecordException\r\n Message : Cannot process argument because the value of argument \"name\" is not valid. Change the value of the \"name\" argument and run the operation again.\r\n HResult : -2146233087\r\n CategoryInfo : InvalidArgument: (:) [], ParentContainsErrorRecordException\r\n FullyQualifiedErrorId : Argument\r\n Message : Cannot process argument because the value of argument \"name\" is not valid. Change the value of the \"name\" argument and run the operation again.\r\n ParamName : name\r\n TargetSite :\r\n Name : get_Item\r\n DeclaringType : System.Management.Automation.PSMemberInfoIntegratingCollection`1[T]\r\n MemberType : Method\r\n Module : System.Management.Automation.dll\r\n Source : System.Management.Automation\r\n HResult : -2147024809\r\n StackTrace :\r\n at System.Management.Automation.PSMemberInfoIntegratingCollection`1.get_Item(String name)\r\n at Microsoft.PowerShell.Commands.Internal.Format.TableViewGenerator.GenerateTableHeaderInfoFromDataBaseInfo(PSObject so)\r\n at Microsoft.PowerShell.Commands.Internal.Format.TableViewGenerator.GenerateStartData(PSObject so)\r\n at Microsoft.PowerShell.Commands.Internal.Format.InnerFormatShapeCommand.WriteFormatStartData(PSObject so)\r\n at Microsoft.PowerShell.Commands.Internal.Format.InnerFormatShapeCommand.ProcessObject(PSObject so)\r\n at System.Management.Automation.CommandProcessor.ProcessRecord()\r\n CategoryInfo : InvalidArgument: (:) [format-default], PSArgumentException\r\n FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.FormatDefaultCommand\r\n InvocationInfo :\r\n MyCommand : format-default\r\n HistoryId : 3\r\n CommandOrigin : Internal\r\n ScriptStackTrace : at Invoke-PSRule\u003cProcess\u003e, D:\\Dev\\Workspace\\PSRule\\out\\modules\\PSRule\\PSRule.psm1: line 181\r\n at \u003cScriptBlock\u003e, \u003cNo file\u003e: line 1\r\n PipelineIterationInfo :\r\n\r\n\r\n\r\nTargetSite :\r\n Name : Invoke\r\n DeclaringType : System.Management.Automation.Runspaces.PipelineBase, System.Management.Automation, Version=7.4.1.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35\r\n MemberType : Method\r\n Module : System.Management.Automation.dll\r\nMessage : Cannot process argument because the value of argument \"name\" is not valid. Change the value of the \"name\" argument and run the operation again.\r\nInnerException :\r\n Type : System.Management.Automation.PSArgumentException\r\n ErrorRecord :\r\n Exception :\r\n Type : System.Management.Automation.ParentContainsErrorRecordException\r\n Message : Cannot process argument because the value of argument \"name\" is not valid. Change the value of the \"name\" argument and run the operation again.\r\n HResult : -2146233087\r\n CategoryInfo : InvalidArgument: (:) [], ParentContainsErrorRecordException\r\n FullyQualifiedErrorId : Argument\r\n Message : Cannot process argument because the value of argument \"name\" is not valid. Change the value of the \"name\" argument and run the operation again.\r\n ParamName : name\r\n TargetSite :\r\n Name : get_Item\r\n DeclaringType : System.Management.Automation.PSMemberInfoIntegratingCollection`1[T]\r\n MemberType : Method\r\n Module : System.Management.Automation.dll\r\n Source : System.Management.Automation\r\n HResult : -2147024809\r\n StackTrace :\r\n at System.Management.Automation.PSMemberInfoIntegratingCollection`1.get_Item(String name)\r\n at Microsoft.PowerShell.Commands.Internal.Format.TableViewGenerator.GenerateTableHeaderInfoFromDataBaseInfo(PSObject so)\r\n at Microsoft.PowerShell.Commands.Internal.Format.TableViewGenerator.GenerateStartData(PSObject so)\r\n at Microsoft.PowerShell.Commands.Internal.Format.InnerFormatShapeCommand.WriteFormatStartData(PSObject so)\r\n at Microsoft.PowerShell.Commands.Internal.Format.InnerFormatShapeCommand.ProcessObject(PSObject so)\r\n at System.Management.Automation.CommandProcessor.ProcessRecord()\r\nSource : System.Management.Automation\r\nHResult : -2146233087\r\nStackTrace :\r\n at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)\r\n at Microsoft.PowerShell.Executor.ExecuteCommandHelper(Pipeline tempPipeline, Exception\u0026 exceptionThrown, ExecutionOptions options)\n```\n\n\n### Environment data\n\n```powershell\nName Value\r\n---- -----\r\nPSVersion 7.4.1\r\nPSEdition Core\r\nGitCommitId 7.4.1\r\nOS Microsoft Windows 10.0.22621\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\n```\n\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/BernieWhite","@type":"Person","name":"BernieWhite"},"datePublished":"2024-01-27T12:56:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/21147/PowerShell/issues/21147"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d8bd5613-583d-33c9-0b37-203971cf42f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD72:2A243B:BA3BD0:FE6059:6A555E6B |
| html-safe-nonce | e71b8240152d010e21dbca9ef91f9c2504a6cbbf9407deaa9787098260764125 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDcyOjJBMjQzQjpCQTNCRDA6RkU2MDU5OjZBNTU1RTZCIiwidmlzaXRvcl9pZCI6IjcyMjg0MzUzODEyMDA3MDcxNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fe5d0ce02542f88cb13989c0b573eba15eff95a3405343cb3f331b7ad9ce7768 |
| hovercard-subject-tag | issue:2103577553 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/21147/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9a833e22063ce88c858c8b774482923b181a32e86d2ae8bfdf47f75034bb862c/PowerShell/PowerShell/issues/21147 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a833e22063ce88c858c8b774482923b181a32e86d2ae8bfdf47f75034bb862c/PowerShell/PowerShell/issues/21147 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BernieWhite |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 73595e82546ca2415571a2031890ab16ecb3001a |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width