"The operation could not be performed because the argument is invalid. A specified parameter was not correct: profileId" when importing templates from Marketplace to VCD 10.5 backed by VC 8.0.2
search cancel

"The operation could not be performed because the argument is invalid. A specified parameter was not correct: profileId" when importing templates from Marketplace to VCD 10.5 backed by VC 8.0.2

book

Article ID: 325649

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • Importing templates as per the documentation fails with the following error in the UI and opt/vmware/vcloud-director/logs/vcloud-container-debug.log:

[UUID ] The operation could not be performed because the argument is invalid. A specified parameter was not correct: profileId - A specified parameter was not correct: profileId

com.vmware.ssdc.library.exceptions.VimInvalidArgumentException: The operation could not be performed because the argument is invalid. A specified parameter was not correct: profileId at

com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:262) at

com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:498) at com.vmware.vcloud.val.internal.impl.ImportVAppFromOvfActivity$ImportOvfToVcPhase.initiateImportFromOvf(ImportVAppFromOvfActivity.java:854) at

...

Caused by: (vmodl.fault.InvalidArgument) {

faultCause = null, faultMessage = (vmodl.LocalizableMessage) [ (vmodl.LocalizableMessage) { dynamicType = null, dynamicProperty = null, key = com.vmware.pbm.pbmFault.locale, arg = (vmodl.KeyAnyValue) [ (vmodl.KeyAnyValue) { dynamicType = null, dynamicProperty = null, key = summary, value = Profile not found. Id: , } ], message = com.vmware.pbm.pbmFault.locale } ], invalidProperty = profileId } at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

  • The Cloud Director is backed by vCenter version 8.0.2 or higher.


Environment

VMware Cloud Director 10.x

Cause

This is a known issue where all templates that specify a storage policy group which does not exist in VC will fail during upload in VCD.

Resolution

This issue will be resolved in a later release of Cloud Director.


Workaround:

To work around this issue,remove the following section from the OVF before uploading again.

 <vmw:StorageGroupSection ovf:required="false" vmw:id="group1" vmw:name="Workload Storage Policy">

 <Info>Storage policy for group of disks</Info>
 <vmw:Description>Workload Storage Policy group</vmw:Description>

 </vmw:StorageGroupSection>

 ...

 <vmw:StorageGroup ovf:required="false">group1</vmw:StorageGroup>

 ...

 <vmw:StorageSection ovf:required="false" vmw:group="group1">

 <Info>Storage policy group reference</Info>

 </vmw:StorageSection>