I am trying to create a view in my physical layer of my RPD (OBIEE 12c). Here is what I have done:
1) Ensured that CREATE_VIEW_SUPPORTED was checked.
2) Right-clicked my physical schema and selected 'New Physical Table'
3) Named my view 'AR_IN_VIEW'
4) For Table Type, I picked 'SELECT'
5) Selected the 'Default Initialization String' radio button
6) Entered in the following query:
select * from ARSchem.ACCOUNTS A where A.account_num in (select B.account_num from ARSchem.ACCOUNTS_IN
;
7) Checked the 'Cacheable' check box, and picked the 'Cache Never Expires' radio button.
8) Click 'OK'
9) I then checked in my changes & saved the RPD. (My consistency check returns no errors)
10) I right-click the view and select 'Update Row Count' or 'View Data'. Here is where I get the error:
[NQODBC][SQL_STATE:HY000][nQSError: 10058] A general error has occurred.
Notes:
- I have tested this query through SQL Developer and it runs fine.
- I can successfully 'Update Row Count' and 'View Data' on all of the physical tables in my ARSchem physical schema (in the physical layer)
- While I would have thought the RPD would have used my query to auto-generate the columns for my view, I see that no columns get generated. So I manually added some of the columns myself in the 'Columns' tab. This doesn't seem to fix my issue. I still get the error.
Am I missing a step or doing something wrong?