Skip to main content
Solved

SQL ERROR FOR DATA SOURCE

  • February 10, 2021
  • 3 replies
  • 176 views

Forum|alt.badge.img+7

I am trying to exclude certan W/D/R’s from my data, i think it is to many and was hoping to find a way to make this work. below is my SQL and the error i get when i try to save it in data source designer, the preview shows the correct data but it will not save. Thank you for any help you might have

 

Best answer by Sajith D

Hi @Rpauley,

Which version of the App are you running? The error give the impression that there is a variable length issue with the statement in whole but since DS’s definition is stored as Clob, it seems quite strange. 

Have you tried saving the DS without the lengthy W/D/R condition? If that you are able to save without that, that would tell you that the problem is probably with the length of the condition. If for some reason that is the case, you can work around that by creating a simple IAL (i.e. excluded WDR) and using a sub query as your condition without having to have everything in the DS it self. 

i.e. WAIV_DEV_REJ_NO not in (Select WDR from ifsinfo.excluded_wdr)

Cheers

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

3 replies

Forum|alt.badge.img+21
  • Superhero (Employee)
  • 427 replies
  • Answer
  • February 10, 2021

Hi @Rpauley,

Which version of the App are you running? The error give the impression that there is a variable length issue with the statement in whole but since DS’s definition is stored as Clob, it seems quite strange. 

Have you tried saving the DS without the lengthy W/D/R condition? If that you are able to save without that, that would tell you that the problem is probably with the length of the condition. If for some reason that is the case, you can work around that by creating a simple IAL (i.e. excluded WDR) and using a sub query as your condition without having to have everything in the DS it self. 

i.e. WAIV_DEV_REJ_NO not in (Select WDR from ifsinfo.excluded_wdr)

Cheers

 


Mohamed Infaz
Hero (Employee)
Forum|alt.badge.img+10
  • Hero (Employee)
  • 158 replies
  • February 11, 2021

Hi @Rpauley,

Please try executing your query from a database client such as SQL Developer or PL/SQL developer, also check if one of the datatypes of the WDR number is not a String. The suggestion is something @Sajith

mentioned, probably a different subquery that involves fewer characters.


Forum|alt.badge.img+7
  • Author
  • Sidekick
  • 65 replies
  • February 11, 2021

Thank you everyone, it does save with out the string, so i just need to find a away to shorten it. Thank you again


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings