Error while importing a new service

Hi all,
I am trying to import next link https://wiki.easyvista.com/xwiki/bin/download/Documentation/Integration/WebService%20REST/WebHome/Swagger%20file.json?rev=1.1 into a Service, from the library design view and is not working:


I have tried to find a solution browing the forum, but seems to be an old issue that should be fixed. Does anybody how to solve this?
Just in case, I’m using the latets community version to test this kind of functionalities.
Thanks in advance!

1 Like

Hi @Alvaro_RS,

When you look at your Output Panel, do you see any error messages (stack trace)? Can you share the stack trace error please?

It may look similar to this:
Service operations are not found; An explicit conversion exists (are you missing a cast?) - Feedback / Studio - UiPath Community Forum

Thanks

Hi @kristopherk,

Please, finde next the information displayed in the Output Panel:

Indeed, the same happens when just one operation is selected. So I don’t really know why it can recognise every method but none can be imported or created automatically.

Regards

Hi @Alvaro_RS,

Is your project using C# or VB.NET?
Can you try the other language option in a new project and see if that makes a difference?

Thanks

Hi,

I have created also a C# library to try and it displays exactly the same error.

Regards

Hi @Alvaro_RS,

It looks like there might be an issue processing responses that are defined as “” (blank)




Eliminating these responses allows the JSON to be processed successfully.

For now, you could try to change those responses from “” (blank) to “default”, but there is a bug with the service definition based on the OpenAPi Specification. I believe “default” is the catch-all that should be used in a service definition vs “” (blank)
OpenAPI Specification - Version 3.1.0 | Swagger

Can you ask EasyVista to update their service definition to use “default” instead of “” (blank) for default responses please?

It should look like this:

Thanks

Hi @kristopherk,

I’ve done what you suggested and it works! Indeed, it makes some sense and I should reviewed deeper.

Thanks for the support!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.