“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:
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.
Thanks Sven, that's actually an important thing to note!
Regards,
Elijah
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.