Skip to Main Content

Data Science & Machine Learning

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!

Bug? Save fails after transform edited - java closed connection error

Kresimir BokulicSep 22 2014 — edited Oct 17 2014

Hi,

i have this problem with saving ODM workflow after editing transform node.


In transform node I made transform edit for variable 'IMP_APPL_PA_EMP_STS_CD_REV_BIN' to bin variable, sql code as is:

case

when ("IMP_APPL_PA_EMP_STS_CD_REV" in ('011','040','070','080','090')) then 1

when ("IMP_APPL_PA_EMP_STS_CD_REV" in ('012','014','030','051','990')) then 2

when ("IMP_APPL_PA_EMP_STS_CD_REV" in ('010','013','050','061','100')) then 3

when ("IMP_APPL_PA_EMP_STS_CD_REV" in ('015','020','021','022','023','060')) then 4

when ("IMP_APPL_PA_EMP_STS_CD_REV" is null) then 1

else 3

end

Validation pass well, but after I press save I get mesage:

Unable to save TDW_RISK/Test/binn_test (java.sql.SQLRecoverableException: Closed Connection).

I figure out that when I put shorter sql case-when, example

case

when ("IMP_APPL_PA_EMP_STS_CD_REV" in ('011','040','070','080','090')) then 1

when ("IMP_APPL_PA_EMP_STS_CD_REV" in ('012','014','030','051','990')) then 2

when ("IMP_APPL_PA_EMP_STS_CD_REV" in ('010','013','050')) then 3

else 3

end

ewerything is ok. When I add  one,two or any more 'strings' to case when example:061','100' same error happend again.

I try to do that with differen datasource in different workfolows but nothing helped.

I found workaround using SQLNode and it work but it is not best, since we have to use transform for other variables.

Any Idea why is this happenning? Any known restrictions in SQL Developer Transform node?

System: SQL Developer  Version 4.0.0.12, Database 11.2.0.2

Regards,

Kreso

This post has been answered by Kresimir Bokulic on Sep 29 2014
Jump to Answer

Comments

user11440683
Answer

Hi,

you cannot rename a member, the member name is what it is.

You can change its alias.

You can delete the member and add a new member of a different name.

But you cannot rename the member name.

Btw - if you delete you lose any data stored against the member.

To change aliases, export the dimension, look at the file.

Build up a file in the same format with the same headings and delimiters for the columns you need to change.

Validate. Import.

Refresh the DBs.

Marked as Answer by RohitG · Sep 27 2020
user11440683

pastedImage_0.png

user11440683

pastedImage_0.png

user11440683

You can use your spreadsheet tool of choice to parse the columns, change what you need to, cf my original comment on not being able to change member names, save as comma delimited (watch out for commas in the content!) and reimport.

RohitG

Thanks for the input Robert. Here's what I plan to do:

1) Add members with new names as the siblings of the old ones.

2) Move all the children from old members to the new.

3) Delete old members

USER1211

You would want to go and check rules,reports and data forms which those old members are references in also.

user11440683

I would also back up your application / DBs before you start, just in case you do lose any data...

And reconcile before and after.

RohitG

Thanks for your input guys.

1 - 8
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 14 2014
Added on Sep 22 2014
4 comments
1,711 views