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

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 139796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>