Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
svenhuberti
Product and Topic Expert
Product and Topic Expert
0 Kudos


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.

2 Comments