This project is read-only.


Copy-HPOVProfile erorr whilst using assing


When I'm copying a profile to a new profile and assingin to a blade I receive this error:
New-Object : Cannot find type [TaskValidationError]: verify that the assembly containing this type is loaded.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\HPOneView.110\HPOneView.110.psm1:719 char:13
+             New-Object $Exception $Message
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidType: (:) [New-Object], PSArgumentException
    + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

New-Object : Exception calling ".ctor" with "4" argument(s): "Cannot process argument because the value of argument "ex
ception" is null. Change the value of argument "exception" to a non-null value."
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\HPOneView.110\HPOneView.110.psm1:726 char:9
+         New-Object Management.Automation.ErrorRecord $_exception, $ErrorID,$Erro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

Exception calling "ThrowTerminatingError" with "1" argument(s): "Value cannot be null.
Parameter name: errorRecord"
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\HPOneView.110\HPOneView.110.psm1:13392 char:13
+             $PSCmdlet.ThrowTerminatingError($errorRecord)
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentNullException
When using without assign it works fine. But.... i want to assign directly for automation purposes
Closed Oct 18, 2014 at 6:26 PM by ChrisLynchHP


ChrisLynchHP wrote Sep 29, 2014 at 7:21 PM

This is a bug with the task validation part of Copy-HPOVProfile. Unless there was an issue with copying the profile, it should have copied. The error above will be fixed in the next 1.10 library update.

FrankZo wrote Sep 30, 2014 at 6:54 AM

Well, it doesnt copy the profile.

I am using the following command:

[HPONEVIEW]: administrator@10.*.*.* PS C:\Users\user0> Copy-HPOVProfile "default_profile" "profile_2" -assign "HPc7000-s, bay 2"

When i'm unsing Copy-HPOVProfile "default_profile" "profile_2" it makes a copy. But when i'm using -assign it failes with the error above. Nothing is created

ChrisLynchHP wrote Sep 30, 2014 at 3:33 PM

Hmm... Well, the error happens when the library waits for task validation to complete and returns the task back to the caller. I did find the bug and it has been fixed. I'm working on a few more updates to the library, and it will be released by the end of the week, if no further bugs are found.

FrankZo wrote Oct 1, 2014 at 9:16 AM

Thanks, It does work when I'm tring to assign to Bay 1... Bay 2 doesnt work.

ChrisLynchHP wrote Oct 18, 2014 at 6:24 PM

This is fixed in the [URL:1.10.1387 release|].

** Closed by ChrisLynchHP 10/18/2014 10:24AM