My Oracle Support Banner

DBActions: Show Code Slider For REST Template Handler Reveals The Wrong Code (Doc ID 2967823.1)

Last updated on AUGUST 14, 2023

Applies to:

Oracle REST Data Services - Version 23.1 and later
Information in this document applies to any platform.


In DB Actions, the Handler definition page of a module template shows Source type "Collection Query".

However, the Show code button reveals a different code:
p_source_type => 'source_type_collection_feed'

If one tries this code will get a HTTP 500 error from ORDS.

SQL Developer classic provides the correct REST Definition though:
p_source_type => 'json/collection'

A similar problem appears if Source type is set to "Collection Item" DB Actions, we get
p_source_type => 'source_type_collection_item'

or for "Media":
p_source_type => 'source_type_media'

and finally for Source type "PL/SQL", we get from Show code:
p_source_type => 'source_type_plsql'

This behavior is confirmed with latest ORDS 23.2.2.r2081534.

Furhter more, the code is executed correctly for example in SQL Worksheet.

However, if the endpoint is tested again, the handler will produce a 500 error:

2023-08-04T07:49:54.366Z SEVERE <ECID> GET /ords/examples/emp/emp 500 An unexpected error with the following message occurred: source_type_collection_feed
InternalServerException [statusCode=500, logLevel=SEVERE, reasons=[An unexpected error with the following message occurred: source_type_collection_feed]]




 No changes.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.