Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update EXT_OS_Task.json to fix invalidBodyFormat errors #10

Open
wants to merge 1 commit into
base: datasphere
Choose a base branch
from

Conversation

anand-bhat
Copy link

Fixes an error when creating the view template caused by the presence of viewTemplateName and type properties which aren't supported.

Response: 400 Bad Request
{
    "code": "invalidBodyFormat",
    "message": "Invalid body format. Invalid format :Unrecognized field \"viewTemplateName\" (class ariba.reportingapi.rest.entities.ViewParameters), not marked as ignorable (5 known properties: \"status\", \"selectAttributes\", \"documentType\", \"filterExpressions\", \"variant\"])\n at [Source: (String)\"{\"viewTemplateName\":\"EXT_OS_Task\",\"type\":\"custom\",\"status\":\"published\",\"documentType\":\"Task\",\"selectAttributes\":[\"Status\",\"InternalId\",\"Owner\",\"ParentPlan\",\"Title\",\"CreateDate\",\"EndDate\",\"TimeUpdated\",\"BeginDate\",\"TemplateObject\",\"TimeCreated\",\"Active\",\"ParentWorkspace\",\"EndDateTime\",\"RoundNumber\",\"DueDate\"],\"filterExpressions\":[{\"name\":\"updatedDateTo\",\"field\":\"TimeUpdated\",\"op\":\"<=\",\"defaultValue\":null},{\"name\":\"updatedDateFrom\",\"field\":\"TimeUpdated\",\"op\":\">\",\"defaultValue\":null}]}\"; line: 1, column: 22] (through reference chain: ariba.reportingapi.rest.entities.ViewParameters[\"viewTemplateName\"])"
}

Copy link

cla-assistant bot commented Jan 7, 2025

CLA assistant check
All committers have signed the CLA.

@anand-bhat
Copy link
Author

I've been using the views in the datasphere branch but this fix is also needed for this view in the main branch -- https://github.com/SAP-samples/btp-procurement-data-extractor/blob/main/resources/OperationalAPIView/Sourcing/EXT_OS_Task.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant