avasilsg
Contributor
Contributor

Hello Guys,

I had the same problem and solve it. You should check the missing compulsory field objects within your class. For example, I have:

VirtualMachineCloneSpec cloneSpec = new VirtualMachineCloneSpec();

...

CustomizationSpec customSpec = new CustomizationSpec();

CustomizationLinuxPrep linuxPrep = new CustomizationLinuxPrep();

..

CustomizationAdapterMapping[] customizationAdapterMapping = new CustomizationAdapterMapping[1];

If you miss the mapping, you'll finish with that error. Moreover, if you miss the compulsory IP field, the error will sill appears.

CustomizationIPSettings ip = new CustomizationIPSettings();

ip.setIp(new CustomizationDhcpIpGenerator());
Reply
0 Kudos