FindByIP fails with «the object has already been deleteted...» »

I use axis2c to access VM web services. I can successfully recover a ServiceInstance a Login.

I then try to find a virtual machine by sending the following text:

" & lt; soapenv:Envelope xmlns:soapenv = ' http://schemas.xmlsoap.org/SOAP/envelope/ "& gt;" & lt; soapenv:body & gt; & lt; n: FindByIp xmlns:n = "urn: vim25" & gt; & lt; n: _this type = "Indexderecherche" & gt; FindByIp & lt; / n: _this & gt; & lt; n: ip & gt; 10.177.8.157 & lt; / n: ip & gt; & lt; n: vmSearch & gt; true & lt; / n: vmSearch & gt; & lt; / n: FindByIp & gt; & lt; / soapenv:Body & gt; & lt; / soapenv:Envelope & gt;

I always get the error:

& lt;? XML version = "1.0" encoding = "UTF-8"? & gt;

" & lt; soapenv:Envelope xmlns:soapenc = ' http://schemas.xmlsoap.org/SOAP/encoding/ "

' xmlns:soapenv = ' http://schemas.xmlsoap.org/SOAP/envelope/ "

" container = ' http://www.w3.org/2001/XMLSchema "

" xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "& gt; .

& lt; soapenv:body & gt;

& lt; soapenv:fault & gt; & lt; faultcode & gt; ServerFaultCode & lt; / faultcode & gt; & lt; faultstring & gt; The object has already been disposed or was not completely created & lt; / faultstring & gt; & lt; retail & gt; & lt; ManagedObjectNotFoundFault xmlns = "urn: vim25" xsi: type = "ManagedObjectNotFound" & gt; & lt; type obj = "Indexderecherche" & gt; FindByIp & lt; / obj & gt; & lt; / ManagedObjectNotFoundFault & gt; & lt; / detail & gt; & lt; / soapenv:Fault & gt;

& lt; / soapenv:Body & gt;

& lt; / soapenv:Envelope & gt;

Note that I can use the browser MOB with IP address successfully, as shown below.

Managed object type: ManagedObjectReference:SearchIndex

ID of the object managed: Indexderecherche

Method: FindByIp

ManagedObjectReference:ManagedEntity FindByIp

Parameters

Name

Type

Value

Data center (optional)

ManagedObjectReference:Datacenter

ip (required)

string

vmSearch (required)

Boolean

Result of Invocation of method: ManagedObjectReference

Name

Type

Value

name

string

'Return value '.

Val

ManagedObjectReference:VirtualMachine

VM-966\

Any help is appreciated!

Petwe

Something wrong in your SOAP request. The 'object' mentioned in the fault Declaration does NOT mean the subject of the virtual machine that you are trying to perform a search by IP, but the object of the SerachIndex with which the FindByIp() method is defined.

< n: _this type = "Indexderecherche" > FindByIp < / n: _this >

should be

< n: _this type = "Indexderecherche" > Indexderecherche < / n: _this >

I'm not very sure if the value of the second Indexderecherche, maybe it's 'Indexderecherche', but you can check with the CROWD.

The "FindByIp" must be earlier to < n: _this.

In addition, I don't have a "n" before namespace. How do you have it?

Steve JIN

Author of VMware VI and vSphere SDK (Prentice Hall)

Creator of open source (VI) vSphere Java API(tutorial, testimonials, download, samples)

Blog: DoubleCloud.ORG ( Top 10 best practices, [common mistakes | http://www.doublecloud.org/2010/01/31/Common-Mistakes-using-VMware-VI-and-vSphere-SDK/], Tiny REST API)

http://www.Twitter.com/sjin2008

Tags: VMware

Similar Questions

  • Impossible to apply the resource DRS settings on host.the of object has already been completely created this can drastically reduce the effectiveness of the DRS

    Impossible to apply the resource DRS settings on host.the of object has already been completely created this can drastically reduce the effectiveness of the DRS

    host is having above mess on summer please help on this

    I found the correct solution

    ESXi 5.1 U3 is the permanent fix for this issue

    U3 is fix

  • To get the message that the software has already been used twice. Photoshop is used on a daily basis here.

    To get the message that the software has already been used twice.

    A facility has been uninstalled, but a year ago, the computer no longer exists.

    Now, Photoshop is installed but only on a single computer.

    How can I now perform the Installation on a laptop.

    What happens with Photoshop, when I connect it on all computers?

    I work well the PC to reinstall?

    Photoshop is used here everyday

    Hello

    We see you have a subscription active creative cloud under the same email that you use with the forums.

    If you no longer need creative Cloud installed on one of your computers or you want to connect on a third computer, you can disconnect from creative cloud to release the license and then install and connect on the new computer. Please see this document for instructions: log in and log out of the desktop Adobe Creative Cloud application

    You can also refer to:

    Terms of subscription

    General terms of use Adobe

    Also check out :-https://helpx.adobe.com/x-productkb/policy-pricing/error-maxium-acitvation-exceeded.html

  • I have a number of VIP to order my software. The licency has already been paid. How can I download and install the software.

    I have a number of VIP to order my software. The licency has already been paid. How can I download and install the software?

    Download/install the desktop application, connect and install applications subscription.
    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    Creative cloud to desktop
    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app
    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Help of activation & deactivation
    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#a ctivate-how-to's

    Install, update, or uninstall applications
    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

    Install creative Cloud applications
    http://TV.Adobe.com/watch/CS6-creative-cloud-feature-tour-for-video/installing-desktop-app s-of-creative-cloud.

  • How do I know if the patch has already been installed on ESXi 5.0?

    I describe the installation of patches ESXi on a group of servers (quarterly) who have not access to Internet, Update Manager is not an option.  I would like to be able to identify if a particular patch has already been installed so that I can jump through a script.

    On ESX 3.5, you might look to see if it was in etc/vmware/patchdb/patch_name.xml, but I can't find something similar in ESXi 5.0.

    Vib esxcli software controls do not seem to accept/meet with the zip file names I can say.  They seem to dig deeper into zip files that I want to go.

    The closest I can find is 'grep - c patchname /var/log/esxupdate.log' for a given parcel (i.e. ESXi-500-201207001) and if there are in the file then it has probably been installed.  In addition, there is no clean text that I can pick up on as "Patch ESXi-500-xxxxxxxxx sucessfully installed" that slows me down. This approach has problems if the script is interrupted in the middle of the installation of a patch. When it is run again, it think the patch as it has already been installed and we could actually lose a patch.

    If there is no way for this identify programmatically, I always install each patch in my quarterly updates (until the patch becomes obsolete).  I can't depend on my user to always run these quarterly updates, so I have to be able to catch up its system, if he missed a quarter.

    Appreciate any suggerstions

    There is no need to install the patches separately one after the other if you use a profile of the host to update your hosts.

    Basically, a host profile is a set of files VIB forming a certain level of patch of ESXi.

    1. download the bundle off line ESXi500-201209001 (or what ever is the most recent) from the portal to download patch (a direct link is https://hostupdate.vmware.com/software/VUM/OFFLINE/release-360-20120918-947362/ESXi500-201209001.zip)

    2. download the zip file in a shared data store

    3. update your hosts with the command

    esxcli software profile update /path/to/ESXi500-201209001.zip d Pei ESXi 5.0.0 - 20120904001-standard

    (change/path/to the directory of the correct data store)

    -Andreas

  • Need help... Re-install Vista Home Basic Edition, but Activation has declared that the license has already been used?

    Need help...

    My hard drive crashed,

    then re-install Vista Basic Edition,

    Complete the activation code (come when I bought my notebook)

    but activation said that my license has already been used

    and I have to purchase another license?

    How to solve this problem?

    Hello

    You receive an error message?

    I suggest you follow the step to contact the Microsoft support center and check.

    (a) click Start and in the search for box type: slui.exe 4

    (b) press ENTER on your keyboard

    (c) select your country.

    (d) take the phone activation option and brace yourself for a real person.

    How to activate Windows Vista

    http://support.Microsoft.com/kb/940315

  • I've already filled in the installation code but after that nothing appeared. now I have to fill it up again, but it says that the code has already been used, what do I do?

    I had to buy my CC license for the school. but when I try to turn it on, it says installation code has already been used, I had to fill it up again because the last time I filled in there, nothing displayed on my screen and the whole process stopped. can someone help me pls?

    Hello

    Please see the link below.

    Creative Cloud applications unexpectedly back in the test mode. CCM, CS6

    Kind regards

    Bani

  • Smartphones blackBerry how to recover my BB phone if the flight has already been reformatted it?

    Hi all

    I wonder, if the BB to protect and other software is always useful if the thief tries to reformat my blackberry? Can you suggest some software or even applications with BB protect, I can't find Blackberry ER in my world of BB.

    Can I block my phone stolen with just my PIN and IMEA details?

    Thank you very much.

    With BlackBerry Protect in software, it can be removed by the thief if your phone is not protected by a password.  What you need to do is call Globe as soon as POSSIBLE to have the PIN code blocked so that you will not incur charges for the use of the thief of the phone.  Some carriers will also block the IMEI and some won't, so you don't have to call them on this subject.  You should try also immediately wipe your phone with BlackBerry Protect to protect you from anyone seeing its contents.

    To suggest another software application now that your phone was stolen would be unnecessary in this case.  Next time, I don't really know of any other software that works better than BlackBerry Protect.  Once you get your back of the phone, or a new, I recommend that you install to protect them once more.

    I hope that helps you.

  • Creation of the debugging token error: file has already been signed

    I nuked my PC and could not save my symbolic debugging Moose registration and got a new. I am registered with flash builder 4.6 but failed to create a new debugging token. Whenever I try (FB or from the command line) it gives me the error that the file has already been signed, regardless of what name I try to save it as. Someone has an idea what could be the cause?

    I was able to get the problem solved. Was I was using an older version of the SDK commands and again by specifying the location of the key store and let the necessary detection automatic settings worked.

  • I have Acrobat Pro 8 and 9 for Mac. Can't install (CD media). Has already been installed on an old 17 '' Mac; failed hard drive. Everything seems fine, activation passes through, but when I go to start the program, nothing. Nada. No respo

    I have Acrobat Pro 8 and 9 for Mac. Can't install (CD media). Has already been installed on an old 17 '' MacBook Pro; failed hard drive. Then, new facility, MBP 13 "most recent. Everything seems fine, activation ADOBE passes through, but when I go to launch the APPLICATION, nothing. Nada. No response from the application. Suggestions?

    Acrobat 9 (and 8, of course) is not compatible with your operating system.

  • PowerCLI - an element with the same key has already been added ERROR

    Hello

    I opened a case with VMware on a problem using PowerCLI. And pretty well, they said that they do not support scripts... But the error is not related to any script. It is related to the first command I run against one of our Vcenter and we have 6 of them.

    Everything worked well until we went from 4.1 to 5.1

    I can connect to our VCenter fine, but the first command always give an error and fail to the powercli but the task still occur in vCenter.

    When it gets ugly, is we have several powershell script to maintain and automate our environment but now these script fail.

    Example, we have a script to deploy the VM model and then configure the appropriate hardware configuration and add Notes and custom attributes. But the script fails after that deployment so the rest will not run. It will be possible that deploy us to the first virtual machine.

    So for 'Band-aid' question, I added a line to my script to start a virtual dummy machine, to make sure that what is in the script will work fine.

    Error:

    PowerCLI C:\Program Files\VMware\Infrastructure\vSphere PowerCLI > start-vm vm - Server-m46

    Start-VM: 2013/06/26 11:57:05 Start-VM an element with the same key has already been added.

    Online: 1 character: 9 + start-vm < < < <-vm server-m46 + CategoryInfo: NotSpecified: (:)) [start-VM], ViError + FullyQualifiedErrorId: Client20_VMServiceImpl_StartVM_ViError, VMware.VimAutomation.ViCore.Cmdlets.Commands.StartVM)

    As far as I know, done to the PowerCLI VMware supports.

    I don't think they support the client script debugging, but the product PowerCLI itself is supported.

    I created a few calls myself in the past.

    What you see is a known problem, there are a few discussions in this community who has something similar.

  • First New - VM: an element with the same key has already been added.


    I get a strange error that I have seen a few other posts, but with no resolution (or at least one that I can find).  When you try to create a new virtual machine using the cmdlet New - VM, I get the error "an item with the same key has already been added."

    Now, here's the key that I've not seen many others to mention.  This ONLY happens on the first attempt for each new connection with Connect-VIServer.  I can create as many of the same machines that I want after that first mistake with the same settings (new name of course).  If I disconnect and reconnect again, the error appears for the first time.

    Normally with PowerShell, I have just to catch the error and be on my way.  However, in this case I use the parameter - RunAsync, so that I can capture the task that is returned in a variable.  From there, I use Wait-task until the virtual machine is complete before moving on with the script.  Everything works fine when the error occurs, but when it happens that the object of the task is not returned and the rest of her vomit script errors.

    I am running the latest version of PowerCLI and I tried this on PowerShell v2.0 and v3.0 and get the same results.  I tried different models and guests without success.  I also tried this with and without assistance - AllLinked on Connect-VIServer-bound mode.  I should mention that I am cloning model, by specifying a spec customization and host cluster data store.  Again, the only common denominator repeatable here is that this ONLY happens on the first attempt to use New - VM session to vCenter.

    Any ideas or suggestions?

    If this is useful at all, here are the details of the output on the exception:

    PS C:\ > $Error [0]
    New - VM: 05/06/2013-09:49:22 new-VM an element with the same key has already been added.
    On line: 1 char: 11
    + $VMTask = new-VM-name "NEWTEST20" - model 'Template' - OS...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo: NotSpecified: (:)) [new-VM], VimException)
    + FullyQualifiedErrorId: Core_BaseCmdlet_UnknownError, VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM

    PS C:\ > $Error [0]. Exception | Select *.


    ErrorId: Core_BaseCmdlet_UnknownError
    ErrorCategory: NotSpecified
    TargetObject:
    RecommendedAction:
    SessionId:
    Login ID: /VIServer=USERNAME@SERVER:443/
    Severity: error
    Message: 05/06/2013-09:49:22 new-VM an element with the same key has already been added.
    Data: {ParameterValues}
    InnerException: System.ArgumentException: an item with the same key has already been added.
    to System.Collections.Generic.Dictionary'2.Insert (TKey key, TValue value, Boolean add)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.PopulateTaskDescriptionDict
    ionary()
    at VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.GetTaskDescription (String
    taskDescriptionId)
    at VMware.VimAutomation.ViCore.Impl.V1.Task.TaskImpl.Create (ManagedObjectReference moRef,
    Customer VimClient, accessories 2 dictionary, extensionData object)
    to VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl. < GetTaskListForCli
    ENT > d__7.MoveNext)
    System.Collections.Generic.List to ' 1.InsertRange (Int32 index, 1 IEnumerable collection)
    at VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl.GetTaskList (IEnume
    uidList Maple 1, IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.Sdk.Impl.V1.Task.CoreTaskServiceImpl.GetTaskList (IEnumerable 1 uidList,
    IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskCore (Nullable State 1,)
    IList 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTask (Nullable State 1,)
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskById (String uid,
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    VMware.VimAutomation.ViCore.Impl.V1.Service.VmServiceImpl.NewVM (model TemplateInterop,
    VMHostInterop vmHost, string name, resourceContainer, FolderInterop location VIContainerInterop,.
    StorageResourceInterop data store, Nullable 1 diskStorageFormat, OSCustomizationSpecInterop
    customization, Boolean, Boolean, string 1 Nullable description isRequestedAsync allowNested
    Nullable, 1 haIsolationResponse, Nullable 1 drsAutomationLevel, haRestartPriority, [AdvancedOption]
    options)
    to VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM.DoWork (customer VIAutomation, moList list 1)
    at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.BaseCmdlet.DoWork (VIConnection connection,
    MoList list 1)
    at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.BaseCmdlet.DoWorkEx (VIConnection connection,
    MoList list 1)
    to
    VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ConnectionDispatchHelper.ExecuteRunlist (dictionary 2
    runlist, DoWorkDelegate doWorkDelegate, UidDispatchHelper uidDispatchHelper, result of list 1)
    TargetSite:
    StackTrace:
    HelpLink:
    Source:

    PS C:\ > $Error [0]. Exception.InnerException | Select *.


    Message: An element with the same key has already been added.
    ParamName:
    Data: {ConnectionId}
    InnerException:
    TargetSite: Void Insert (TKey, TValue, Boolean)
    StackTrace: At System.Collections.Generic.Dictionary'2.Insert (TKey key, TValue value, Boolean add)
    to
    VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.PopulateTaskDescriptionDictionary)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.StaticDataServiceImpl.GetTaskDescription (String
    taskDescriptionId)
    at VMware.VimAutomation.ViCore.Impl.V1.Task.TaskImpl.Create (ManagedObjectReference moRef,
    Customer VimClient, accessories 2 dictionary, extensionData object)
    to VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl. < GetTaskListForClient
    > d__7.MoveNext)
    System.Collections.Generic.List to ' 1.InsertRange (Int32 index, 1 IEnumerable collection)
    to
    VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCoreServiceProviderImpl.GetTaskList (IEnumerable 1)
    uidList, IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.Sdk.Impl.V1.Task.CoreTaskServiceImpl.GetTaskList (IEnumerable 1 uidList,
    IEnumerable 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskCore (Nullable State 1,)
    IList 1 connectionUidList)
    to VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTask (Nullable State 1,)
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    at VMware.VimAutomation.ViCore.Impl.V1.Service.TaskServiceImpl.GetTaskById (String uid,
    CmdletTaskInfoProvider cmdletTaskInfoProvider)
    VMware.VimAutomation.ViCore.Impl.V1.Service.VmServiceImpl.NewVM (model TemplateInterop,
    VMHostInterop vmHost, string name, resourceContainer, FolderInterop location VIContainerInterop,.
    StorageResourceInterop data store, Nullable 1 diskStorageFormat, OSCustomizationSpecInterop
    customization, Boolean, Boolean, string 1 Nullable description isRequestedAsync allowNested
    Nullable, 1 haIsolationResponse, Nullable 1 drsAutomationLevel, haRestartPriority, [AdvancedOption]
    options)
    to VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM.DoWork (customer VIAutomation, moList list 1)
    at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.BaseCmdlet.DoWork (VIConnection connection,
    MoList list 1)
    at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.BaseCmdlet.DoWorkEx (VIConnection connection,
    MoList list 1)
    to
    VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ConnectionDispatchHelper.ExecuteRunlist (dictionary 2
    runlist, DoWorkDelegate doWorkDelegate, UidDispatchHelper uidDispatchHelper, result of list 1)
    HelpLink:
    Source: mscorlib


    I was informed that this is actually a "known" bug and a fix has already been planned for the release of the future code.  After getting the access to a beta version, it does not seem to be fixed in the next release.

  • Add-PSSnapin: an element with the same key has already been added

    When you run Add-PSSnapin, I get the above error. This seems to happen if I try to add the snap a second time, but when this happens, none of the power CLI commands are then available up to what the server is restarted.

    Add-PSSnapin: an element with the same key has already been added.

    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

    + Add-PSSnapin $SnapinName;

    +     ~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: NotSpecified: (:)) [Add-PSSnapin], ArgumentExcept)

    ion

    + FullyQualifiedErrorId: System.ArgumentException, Microsoft.PowerShell.Co

    mmands. AddPSSnapinCommand

    Failure of the attempts to remove the snap-in at this point with:

    Remove-PSSnapin: no Windows PowerShell snap-ins for the model

    "VmWare.VimAutomation.Core" were found. Check the pattern and then try the

    command again.

    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

    + Remove-PSSnapin $SnapinName;

    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: InvalidArgument: (VmWare.VimAutomation.Core:Stri

    NG) [Remove-PSSnapin], PSArgumentException

    + FullyQualifiedErrorId: NoPSSnapInsFound, Microsoft.PowerShell.Commands.R

    emovePSSnapinCommand

    I already tried to uninstall the dll and put it back, that makes no difference

    $dllpath = "C:\Program Files (x 86) \Vmware\Infrastructure\vSphere PowerCLI\VMWare.VimAutomation.VICore.Cmdlets.dll.

    $SnapinName = "VmWare.VimAutomation.Core".

    #get the path to instalutil

    $path = [System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory();

    #create an alise for installtuil

    set-alias installutil (resolve-path (join-path $path 'installutil.exe'));

    #uninstall snap

    InstallUtil /u $dllpath;

    InstallUtil $dllpath;

    I tried appdomain unloading, then adding the snap-in with the same result:

    $appdomain = [AppDomain]: CurrentDomain

    $appdomain. # Of unloading | Out-Null

    Add-PSSnapin "VMware.VimAutomation.Core".

    $appdomain. Load

    Everything simply jump beyond the error is not good because it is impossible to find the following commands:

    Add-PSSnapin "VMware.VimAutomation.Core" - ErrorAction SilentlyContinue

    Get - VM $VirtualMachine

    The term 'Get - VM' is not recognized as the name of a cmdlet, function, script file, or an executable program. Check the spelling of the name, or if a path has been included, make sure the path is correct, and then try again.

    Any help to fix this would be greatly appreciated.

    Thank you

    OK, I was kind of what went wrong here.

    The snap has been loaded from a powershell module. When the module is removed and added again, the snap ceases to function, but also can not be added again.

    If the snap is loaded first outside the module everything works fine until you try never to remove or add snap-in module.

  • An element with the same key has already been added

    Hi all

    I see a strange problem when you try to add a new disk to a virtual computer via powershell

    I use the following commands:

    Add-PSSnapin VMware.VimAutomation.Core

    to connect-viserver-Server $MyVC

    $server = "MyServer".

    $vm = get - vm $server

    $NewDisk = new-disk-hard - VM CapacityGB - $DiskSize - StorageFormat $StorageFormat $VM

    When I run it, the drive is added, but what follows is cast in the output:

    New hard drive: 24/06/2013-11:04:22New-harddiskAn element with the same key has already been added.

    On line: 1 char: 11

    + $NewDisk = new-disk-hard - VM $VM CapacityGB - $DiskSize - StorageFormat $StorageForm...

    +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo: NotSpecified: (:)) [new-harddisk], ViError)
    + FullyQualifiedErrorId: Client20_VirtualDeviceServiceImpl_NewVirtualHardDisk_ReconfigError, VMware.VimAutomation.

    ViCore.Cmdlets.Commands.VirtualDevice.NewHardDisk

    When I restarted the command in the same pssession and then it is executed without error.

    Has anyone seen this behavior before?

    This could be a bug?

    I searched for this error, but this seems like something very generic...

    Thanks in advance!

    Filip

    Hi Filip,

    This looks like the same problem as already reported in first New - VM: an element with the same key has already been added.

  • When you try to activate creative cloud, I get "this code has already been used. How can I proceed with the download and installation?

    When you try to activate creative cloud, I get "this code has already been used. How can I proceed with the download and installation?

    Thanks for the Email, the problem is solved now. Please do not hesitate to contact in the future.

    Concerning

    Baudier

Maybe you are looking for