homotechsual / HaloAPI

PowerShell module for the Halo Service Solutions series of software products.
MIT License
48 stars 38 forks source link

[Bug]: Operation is not valid due to the current state of the object #32

Closed daniel-kuhn-ict closed 3 months ago

daniel-kuhn-ict commented 11 months ago

Contact Details

dk@pkcg.com.au

What happened?

While running warranty update into Halo, continually receive this error. This throws the error against different devices, intermittently.

Line | 65 | throw $ErrorRecord.Exception.Message | ~~~~~~~~ | Operation is not valid due to the current state of the object.

Version

1.0.1

Which operating systems have you tested on?

What PowerShell version are you running?

None

Halo Product

Halo PSA

Halo Version

2.126.32

What command did you run?

Running warranty update using the HaloAPI via PSWarranty module.
Don't believe it is the module as this is running fine against DattoAPI.

What was the output of the command?

No response

homotechsual commented 11 months ago

You need to update your HaloAPI module - current version is 1.16.0.

There's currently a known bug coming from Halo when using PowerShell 7.4 see https://docs.homotechsual.dev/modules/HaloAPI

homotechsual commented 3 months ago

This should have been resolved now - it was an issue in the background with Halo vs PowerShell 7.4.0