Skip to Content
Author's profile photo Sven Huberti

“Unable to update API – connection to runtime destination has failed” with XSL Transform Policy

Hi all,

lately I stumbled on an issue that took me a while to track down.

In an API Proxy, I was configuring an XSL Transform policy. This policy requires a resource to work, and the policy points toward that resource.

For instance:


<XSL async="true" continueOnError="false" enabled="true" xmlns="http://www.sap.com/apimgmt">
     <!-- The XSLT file to be used for transforming the message. -->
     <ResourceURL>xsl://myXSL</ResourceURL>
     <!-- Contains the message from which information needs to be extracted -->
     <Source>response</Source>
</XSL>

Do you spot the issue in the configuration above?

Yes, the file name extension is missing!

When Saving and Updating the API proxy, you will get the following error:

Capture.JPG

This error message is a little misleading.

So be careful to correctly enter the file name, with the file extension:


<XSL async="true" continueOnError="false" enabled="true" xmlns="http://www.sap.com/apimgmt">
     <!-- The XSLT file to be used for transforming the message. -->
     <ResourceURL>xsl://myXSL.xsl</ResourceURL>
     <!-- Contains the message from which information needs to be extracted -->
     <Source>response</Source>
</XSL>

Hope this helps!

Sven

EDIT: this error also occurs when you simply misspell your XSL transformation policy, ie. when XSL Transform policy¬†can’t find the file you have specified.

Assigned tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Elijah Martinez
      Elijah Martinez

      Thanks Sven, that's actually an important thing to note!

      Regards,

      Elijah

      Author's profile photo Sindhuja Jayapandiyan
      Sindhuja Jayapandiyan

      Hi Sven,

       

      We are facing the same issue of "unable to update API" while trying to edit and save the API proxy in different tenant-quality systems. But same is working in Dev tenant. Could you please advice on this whether anything related to user role for my user id.

      Thanks,

      Regards,

      Sindhuja.