Skip to main content
Question

Error with set serveroutput on, PL/SQL script fails to execute in FME?

  • February 22, 2019
  • 3 replies
  • 51 views

0

 

I am running a script in FME SQL Creator reader. Script looks like,

set serveroutput on
declare var1 a;
BEGIN dbms_output.enable(); dbms_output.put_line ('TEST LINE'); END;

Script runs successfully in Oracle SQL Developer. But If I run from FME, it returns nothing.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • February 22, 2019

I think FME has no idea where to store this value or output the text.

Scripts in the SQLCreator are run to create a feature.

If you want 'TEST LINE' in var1 on a feature, you can use:

Select 'TEST LINE' as "var1" from Dual in the SQLCreator.


  • Author
  • February 22, 2019

I think FME has no idea where to store this value or output the text.

Scripts in the SQLCreator are run to create a feature.

If you want 'TEST LINE' in var1 on a feature, you can use:

Select 'TEST LINE' as "var1" from Dual in the SQLCreator.

Can you please tel me how to do that?


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • February 22, 2019

Can you please tel me how to do that?

For a new feature use the above query in the SQLCreator and expose var1.

For adding var1 to an existing feature, use the SQLExecutor with the query.

For help on these transformers, follow the link (transformer name).