Skip to Content

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.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply