Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 192300

Re: Received change on an object not registered in the factory

$
0
0

Thanks,here's the entire code. I am instantiating as an array at the start, unless it needs to be declared in the method you list. Keep in mind this works fine under 4.1, but when importing into 5.1 it throws the error:

 

 

var vmArray = new Array();

 

 

vmArray.push(vmName);

vmArray.push(datacenterInput);

vmArray.push(regionInput);

vmArray.push(osInput);

 

 

 

 

if (vmRequestApprovedConfigurationElement.getAttributeWithKey(vmName) != null) {

 

  vmRequestApprovedConfigurationElement.removeAttributeWithKey(vmName);

 

} else if (vmRequestIssueConfigurationElement.getAttributeWithKey(vmName) != null) {

 

 

  vmRequestIssueConfigurationElement.removeAttributeWithKey(vmName);

}

 

 

 

 

 

 

 

 

var msg = "********** DEBUG values - VM:" +vmName +" *** vmArray: " +vmArray +" *********************";

Server.log (msg, msg);

System.log (msg);

 

 

vmRequestCompletedConfigurationElement.setAttributeWithKey(vmName, vmArray);


Viewing all articles
Browse latest Browse all 192300

Trending Articles