"The value '-100' of attribute 'ovf:id' on element 'OperatingSystemSection' is not valid with respect to its type, 'unsignedShort'" error when deploying Horizon Edge Gateway OVA file on VCD
search cancel

"The value '-100' of attribute 'ovf:id' on element 'OperatingSystemSection' is not valid with respect to its type, 'unsignedShort'" error when deploying Horizon Edge Gateway OVA file on VCD

book

Article ID: 379464

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • When deploying Horizon Edge Gateway OVA file on VCD, there is  "The value '-100' of attribute 'ovf:id' on element 'OperatingSystemSection' is not valid with respect to its type, 'unsignedShort'" error on web UI:

  • In /opt/vmware/vcloud-director/logs/vcloud-container-debug.log, same error can be captured as below:

    2024-10-07 09:55:46,065 | WARN     | task-service-activity-pool-93 | VAppUploadManagerImpl          | Transfer session: b651b853-3b9b-4ab3-b012-f810b4cc5c22. Error during content upload: Validation failed for the OVF file you provided: Fatal: Line/char 467/92: cvc-minInclusive-valid: Value '-100' is not facet-valid with respect to minInclusive '0' for type 'unsignedShort'.
    Fatal: Line/char 467/92: cvc-attribute.3: The value '-100' of attribute 'ovf:id' on element 'OperatingSystemSection' is not valid with respect to its type, 'unsignedShort'.. | requestId=8757ce82-05ca-45e5-8e6d-015d13a81266,request=POST https://<vcd hostname>/api/vdc/c8d5ecff-da0e-4a09-9380-0d1fd3fa0367/action/instantiateOvf,requestTime=1728266137726,remoteAddress=<client IP address>:50510,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/*+xml;version 38.0 vcd=38bd4824-b383-4aa1-9372-a6665e7162f5,task=d5adee6f-4a7d-47e0-a51f-fc8acf9b5980 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:d5adee6f-4a7d-47e0-a51f-fc8acf9b5980)
    com.vmware.vcloud.api.presentation.service.BadRequestException: Validation failed for the OVF file you provided: Fatal: Line/char 467/92: cvc-minInclusive-valid: Value '-100' is not facet-valid with respect to minInclusive '0' for type 'unsignedShort'.
    Fatal: Line/char 467/92: cvc-attribute.3: The value '-100' of attribute 'ovf:id' on element 'OperatingSystemSection' is not valid with respect to its type, 'unsignedShort'..
            at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.performFirstPhaseOvfValidation(VAppUploadManagerImpl.java:4257)
            at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.validateAndParseOvfDescriptor(VAppUploadManagerImpl.java:3316)
            at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.handleUploadOvfDescriptor(VAppUploadManagerImpl.java:2200)
            at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.handleUploadBody(VAppUploadManagerImpl.java:2082)
            at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.handleUpload(VAppUploadManagerImpl.java:1979)
            at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.executeTask(VAppUploadManagerImpl.java:5464)

Cause

'ovf:id' on element 'OperatingSystemSection' in filename.ovf file is not a unsignedShort number . e.g. -100 in this case.

Resolution

It is recommended to contact OVA/OVF subscriber to correct the "ovf:id".

Below procedure can be applied as a workaround

Procedure: