"Invalid Input Format" and "Request Validation Failed" Errors while trying to generate a Chargeback Bill on Aria Operations Swagger UI
search cancel

"Invalid Input Format" and "Request Validation Failed" Errors while trying to generate a Chargeback Bill on Aria Operations Swagger UI

book

Article ID: 391563

calendar_today

Updated On: 03-24-2025

Products

VMware Aria Suite

Issue/Introduction

Using the Aria Operations Swagger UI to generate a Chargeback Bill returning with 400 Error:

Error Message:

{"message": "Invalid input format.","moreInformation": [{"name": "api-uri","value": "/suite-api/api/chargeback/bills"}],"httpStatusCode": 400,"apiErrorCode": 400}

In addition, the following Error is observed upon resolving the format error above.

{ "message": "request validation failed. Reason is \"Only OrgVCD resourceIDs should be provided when policyId is specified\".". apiErrorCode": 1517 }

Environment

Aria Operations Suite 8.x

Cause

Incorrect modification to the payload template.  [] bracket was removed from the "resourceIds" section of the template.

Sample payload below with missing [] on the "resourceIds" line:

On the second issue, the "ORG resourceId" was provided on the template, instead of the "OrgVCD resourceId".

Resolution

  • To fix the format Error, update the payload template to include the [] bracket on the resourceIds line. 
    • Once the payload template is properly updated and executed, the 400 Apicode Error will no longer showing.

 

 

  • To fix the "Request Validation Failed" Error, locate the "OrgVCD resourceId" from Aria Operations UI, then update this resourceId on the payload template. The request will returns a 201 response Body.