Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Select query is not fetching records inside odi procedure

keerthi09Feb 13 2017 — edited Feb 27 2017

Hi experts,

I'm new to ODI kindly provide me your inputs on below.

I have an SQL query,which is working fine in SQL developer and giving me output.but the same query is not inserting any records to target sql server in procedure.

Below is for your reference

Target:

INSERT INTO xx.xxdbo.xxx_sync_json([json],[odi_sess_no])values('#JSON',<%=odiRef.getSession("SESS_NO")%>)

Source

select '{"Entity":"'||'contact'||'",'||'"FilterColumn":"new_xx_id",'||'"FilterValue":'||decode(trim(J$xxNT.xxnt_ID),'','null','"'||trim(J$xxNT.xx_ID)||'",')||'"ChangedValues":{'||'}}' AS JSON from xxxDBA.J$xxNT J$xxNT

Note: xxxDBA.J$xxNT is a table

pastedImage_0.png

Also i have noticed ,sometimes the procedure is running and pushing records to target server,but when i run the same procedure inside odi package.it is completing without any errors but not inserting any records(i'm using procedures,not scenarios).

Kindly clear my doubts.

Thanks in advance

Keerthi

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2017
Added on Feb 13 2017
6 comments
947 views