cancel
Showing results for 
Search instead for 
Did you mean: 

"API specification file is invalid" error importing OpenAPI spec into SAP Build Actions — Scope 'Vie

08-12-2026 12:33 AM
KalpaBehera Discoverer
107 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

Hi all,

I'm trying to import my OpenAPI 3.0.3 spec into SAP Build (Connectors → Actions → Create) to create a new Action, and I'm getting this error:

Error
The API specification file is invalid. As the uploaded file specification format does not align with OpenAPI or CSDL specification standards.

This error could happen for the following reasons:

  • Scope 'Viewer' not found in settings of declared secured by OAuth2ClientCredentials.

Correlation Id: 

My spec's security scheme declares scopes like read and write — not viewer

Questions:

  1. Does SAP Build require a specific scope literally named viewr under oauth for the import to succeed, or is it looking for something else entirely?
  2. Is viewr a fixed/reserved scope name SAP Build expects by convention, or can the scope be named anything as long as it's referenced correctly elsewhere?
  3. What's the correct way to declare OAuth2 scopes in an OpenAPI spec so SAP Build accepts the import?

Any guidance appreciated.


Regards,
Kalpa Behera
0 Likes

Accepted Solutions (0)

Answers (0)