Skip to content

[Bug]: error in set-halokbarticle #62

@NobbyClarke-FA

Description

@NobbyClarke-FA

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'.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions