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

[Bug]: error in set-halokbarticle #62

Open
1 of 4 tasks
NobbyClarke-FA opened this issue Mar 17, 2025 · 0 comments
Open
1 of 4 tasks

[Bug]: error in set-halokbarticle #62

NobbyClarke-FA opened this issue Mar 17, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@NobbyClarke-FA
Copy link

Contact Details

ian@nobbyclarke.net

What happened?

When trying to update a KB article I constantly get errors 'A parameter cannot be found that matches parameter name 'ArticleId' This occurs only when I don't have the skipvalidation flag set

From what I can see, within set-halokbarticle the script is setting the parameter block with 'ArticleId' before the get-halokbarticle, but the get-halokbarticle is actually expecting 'kbarticleid' to be the parameter, therefore the validation fails as the supplied parameter is unknown.

I don't know enough about git to make the branch and associated pull request.

Version

latest

Which operating systems have you tested on?

  • Windows 10
  • Windows 11
  • Mac OS
  • Linux

What PowerShell version are you running?

7

Halo Product

Halo ISTM

Halo Version

2.174.102

What command did you run?

$ticketDetails = @{
     id       = 194
     description_html = "this is my text."
 }
$ticketdetails | Set-HaloKBArticle

What was the output of the command?

HaloError.ps1:65
Line |
  65 |          throw $ErrorRecord.Exception.Message
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | A parameter cannot be found that matches parameter name 'ArticleId'.
@NobbyClarke-FA NobbyClarke-FA added the bug Something isn't working label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants