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

Definition Failure by Creation of Custom Connector #2

Closed
RobinHartmann opened this issue Jan 19, 2022 · 2 comments
Closed

Definition Failure by Creation of Custom Connector #2

RobinHartmann opened this issue Jan 19, 2022 · 2 comments

Comments

@RobinHartmann
Copy link

RobinHartmann commented Jan 19, 2022

Hi @hobru ,

I get an Error when I try to "Create Connector" in Power Automate.
Can you help me out?

Specified swagger has the following errors: 'Definition is not valid.  Error: 'Error : paths/~1search/post/responses/200/examples/OBJECT_SPECIFIC_LIST : The response example 'OBJECT_SPECIFIC_LIST' is not produced by the operation 'POST_search'.
   ##   Error : paths/~1search/post/responses/200/examples/GENERAL_LIST : The response example 'GENERAL_LIST' is not produced by the operation 'POST_search'.
   ##   Error : paths/~1search/post/responses/500/examples/~1NEPTUNE~1CX_DR_PROG-IF_T100_MESSAGE~0DEFAULT_TEXTID : The response example '/NEPTUNE/CX_DR_PROG-IF_T100_MESSAGE~DEFAULT_TEXTID' is not produced by the operation 'POST_search'.
   ##   Error : paths/~1search/post/responses/500/examples/~1NEPTUNE~1CX_DR_PROG-RANGE_INVALID_LOW_HIGH : The response example '/NEPTUNE/CX_DR_PROG-RANGE_INVALID_LOW_HIGH' is not produced by the operation 'POST_search'.
   ##   Error : paths/~1search/post/responses/500/examples/~1NEPTUNE~1CX_DR_PROG-SELSCREEN_EVENT_DOES_NOT_EXIST : The response example '/NEPTUNE/CX_DR_PROG-SELSCREEN_EVENT_DOES_NOT_EXIST' is not produced by the operation 'POST_search'.
   ##   Error : paths/~1search/post/responses/500/examples/~1NEPTUNE~1CX_DR_PROG-SELSCREEN_REFERENCE_WRONG : The response example '/NEPTUNE/CX_DR_PROG-SELSCREEN_REFERENCE_WRONG' is not produced by the operation 'POST_search'.
   ##   Error : paths/~1search/post/responses/500/examples/~1NEPTUNE~1CX_DR_PROG-VARIANT_DOES_NOT_EXIST : The response example '/NEPTUNE/CX_DR_PROG-VARIANT_DOES_NOT_EXIST' is not produced by the operation 'POST_search'.
   ##   Error : paths/~1search/post/responses/500/examples/~1NEPTUNE~1CX_DR_PROG-VARIANT_OBSOLETE : The response example '/NEPTUNE/CX_DR_PROG-VARIANT_OBSOLETE' is not produced by the operation 'POST_search'.
   ##   Error : paths/~1execute/post/responses/500/examples/~1NEPTUNE~1CX_DR_SHLP-IF_T100_MESSAGE~0DEFAULT_TEXTID : The response example '/NEPTUNE/CX_DR_SHLP-IF_T100_MESSAGE~DEFAULT_TEXTID' is not produced by the operation 'POST_execute'.
   ##   Error : paths/~1execute/post/responses/500/examples/~1NEPTUNE~1CX_DR_SHLP-EXPAND_NOT_POSSIBLE : The response example '/NEPTUNE/CX_DR_SHLP-EXPAND_NOT_POSSIBLE' is not produced by the operation 'POST_execute'.
'
@thorsten-wolf-neptune
Copy link
Contributor

Hi Robin,

we noted that there might be problems with the "response examples" as well as the slash "/" in sap namespaces.
Please try adding the following query parameters to the URL which returns the Open API Specification:
...&exclude_response_examples=true&namespace_separator=-
so your URL would look like this:
https://yourSAPSystem:port/neptune/api/dynamic/neptune/cl_dr_lib_ddic_shlp_x/SH/DEBIA/swagger.json?oas_version=2.0&sap-user=user&sap-password=password&exclude_response_examples=true&namespace_separator=-

Please let me know if that resolves the error. If so i will update the documentation.

Kind regards
Thorsten

@RobinHartmann
Copy link
Author

Hi @thorsten-wolf-neptune ,

this works fine. Now i didn´t get any errors anymore. 😊
Thanks for the immediate support!

Stay healthy
Robin

thorsten-wolf-neptune added a commit to thorsten-wolf-neptune/Power-Platform-Neptune-API-Factory that referenced this issue Jan 19, 2022
Added hint to parameters exclude_response_examples and namespace_separator
hobru added a commit that referenced this issue Jan 24, 2022
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

No branches or pull requests

2 participants