Table not declared error even though I'm able to view it in database

Hi,
I'm trying to compile a form with the following code in a when button pressed trigger.I get the error that Trust_tab should be declared even though I am able to view the contents in sql plus. Why is it?
REGISTER_BLK.TRUST_CODE:=:GLOBAL.TRUSTCODE;
declare
m number;
begin
if CHECKBOX_CHECKED('REGISTER_BLK.CHK_BETWEEN_DATES') =true and (:REGISTER_BLK.date_from is null or :REGISTER_BLK.date_to is null )THEN
if :REGISTER_BLK.date_from is null then
m:=show_alert('alert61');
-- message('Please Enter Date');
previous_item;
go_item('register_blk.date_from');
raise form_trigger_failure;
elsif :REGISTER_BLK.date_to is null then
-- message('Please Enter Date');
m:=show_alert('alert61');
previous_item;
go_item('register_blk.date_to');
raise form_trigger_failure;
end if;
else
DECLARE
n number;
PL_ID PARAMLIST;
CONDITION VARCHAR2(500);
CHANGED_MODE_TYPE VARCHAR2(20);
MODECODE NUMBER;
TRUSTNAME VARCHAR2(60);
TNAME VARCHAR2(60);
TRUST_CODE VARCHAR2(1);
MODE_TYPE VARCHAR2(15);
DATE_FROM DATE;
DATE_TO DATE;
CONDITION1 VARCHAR2(200);
MAXDATE DATE;
BEGIN
IF NOT Id_Null(get_parameter_list('ABC')) THEN
Destroy_Parameter_List('ABC');
END IF;
PL_ID:=create_parameter_list('ABC');
IF
CHECKBOX_CHECKED('REGISTER_BLK.CHK_BETWEEN_DATES')= TRUE
--THEN
and :REGISTER_BLK.date_to is not null
and :REGISTER_BLK.date_from is not null then
DATE_FROM:=:REGISTER_BLK.DATE_FROM;
DATE_TO :=:REGISTER_BLK.DATE_TO;
SELECT TRUST_NAME INTO TRUSTNAME FROM TRUST_TAB
WHERE TRUST_CODE=:REGISTER_BLK.TRUST_CODE;
:REGISTER_BLK.TNAME:=TRUSTNAME;
CONDITION:= ' HAVING DV.TRUST_CODE = '|| :REGISTER_BLK.TRUST_CODE ||
' AND MAX(MAXDATE) >= ' ||''''||TO_CHAR(:REGISTER_BLK.DATE_FROM,'DD-MON-YY')||'''' ||
' AND MAX(MAXDATE) <= ' ||''''||TO_CHAR(:REGISTER_BLK.DATE_TO,'DD-MON-YY')||'''';
-- MESSAGE(CONDITION);
Add_parameter('ABC','paramform',TEXT_parameter,'no');
Add_parameter('ABC','P_CODE',TEXT_PARAMETER,:REGISTER_BLK.TRUST_CODE);
Add_parameter('ABC','P_datefrom',TEXT_PARAMETER,:REGISTER_BLK.DATE_FROM);
Add_parameter('ABC','P_dateto',TEXT_PARAMETER,DATE_TO);
--Add_parameter('ABC','WHERE_CLAUSE',TEXT_PARAMETER,CONDITION);
--Add_parameter('ABC','HAVING_CLAUSE',TEXT_PARAMETER,CONDITION1);
Run_Product(REPORTS,'new_rec2.rdf',ASYNCHRONOUS,RUNTIME,
FILESYSTEM,PL_ID,NULL);
ELSIF
CHECKBOX_CHECKED('REGISTER_BLK.CHK_BETWEEN_DATES') = FALSE
--THEN
or :REGISTER_BLK.date_to is null
or :REGISTER_BLK.date_from is null then
n:=show_alert('alert62');
previous_item;
go_item('REGISTER_BLK.CHK_BETWEEN_DATES');
--raise form_trigger_failure;
-- MESSAGE('Select atleast One Option for Generation of Report');
-- MESSAGE('Select atleast One Option for Generation of Report');
RAISE FORM_TRIGGER_FAILURE;
END IF;
END;
end if;

Guess you are connected with wrong schema..
have you test with another test button ,simply just count the record into local
vraible with sql in another test button??
DECLARE
  cnt    NUMBER;
BEGIN
SELECT COUTN(*) INTO cnt
  FROM  trust_tab;
message(cnt);
END;If the same prob persist check yours connectivity from where you are connected.
Khurram

Similar Messages

  • Method not found error even though method exists....

    hello
    i m a newbee to sun and oracle technologies
    these days i m doing teh SRDemo tutorial with JDeveloper (ADF)
    I m having a problem and cannot figure out its solution so far
    problem is i have a utility funtion defined in a AFDUTIL javaclass,
    when i call this function in any class ,
    and one of its method
    compiler gives me error method not found
    even though i select the method from the list, plus when from cotenxt menu it can go to method as welll
    please help me to solve this issue
    regards

    well the code behind for the button is as follows
    public String cancelButton_action() {
    This action is actually reused from two pages, so we just need to ensure that we
    use the correct binding container reference.
    DCBindingContainer dcBindings =
    (DCBindingContainer)ADFUtils.findBindingContainer(getBindings(),
    "app_SRCreatePageDef");
    Reset the product list to the first item:
    DCIteratorBinding productsIter =
    dcBindings.findIteratorBinding("findAllProductsIter");
    productsIter.setCurrentRowIndexInRange(0);
    Clean out the description field:
    AttributeBinding problem =
    (AttributeBinding)dcBindings.getControlBinding("problemDescription");
    problem.setInputValue(null);
    Navigate back to the list page
    return "GlobalHome";
    and in ADF UTILS the method findBindingContainer is defined as
    public static BindingContainer findBindingContainer(BindingContainer bindings, String pageDefName){
    BindingContext bctx = ((DCBindingContainer)bindings).getBindingContext();
    BindingContainer foundContainer = bctx.findBindingContainer(pageDefName);
    return foundContainer;
    plus in source code of cancelbutton window message gives error BindingContainer findBindingContainer(BindingContainer bindings, String pageDefName) cannot invoke BindingContainer findBindingContainer(BindingContainer bindings, String pageDefName)(ADFUTILS)
    Message was edited by:
    user518797

  • After upgrading to 3.6.8 none of the plugins load even though there are updates available. The updates will not install and even though the error states to look at the console error log there are no errors listed in the log.

    After upgrading to 3.6.8 none of the extensions load even though there are updates available. The updates will not install and even though the error states to look at the console error log there are no errors listed in the log. All extensions are listed in Addons>Extensions.
    == This happened ==
    Every time Firefox opened
    == Upgrading to newer Firefox version (3.6.8)

    I have been having the same issue for the last two weeks. No real indication as to why it ever began other than I had turned off my router and Airport Extreme Base Station off for a weekend while I was away from my place.
    iPad, iPhone, iPod Touch, all have no issues at all with my Airport Extreme Base Station. Can stay connected throughout my living room, bathroom, bedroom, no issues whatsoever.
    My 5 month old MacBook Pro 2.66 GHz Core i7 Airport is sometimes perfect, able to connect, DHCP, and browse without issue. Then, for no reason, I won't be able to join my wireless network, or when I can join, I can't pick up an IP address. And then it will connect, pick up and IP, and then it won't browse. No real rhyme or reason to when this will happen, or when it works.
    I thought that it was an issue with my MacBook Pro, but then my sister visited with her brand new MacBook Pro 2.26 Intel Core 2 Duo, and while a month ago she was able to connect, DHCP, and browse without issue, this weekend she had all of the same issues I was having.
    My XBOX 360 and MacBook Pro have absolutely no issues with the wired connection. Only my WAN seems to have this issue.
    Did you ever find anything more to this?

  • I am unable to stream Netflix to my Iphone or Apple TV, from my wireless router . . . even though I am able to watch Netflix on my WII (also wireless) and desktop computer (not wireless).

    I am unable to stream Netflix to my Iphone or Apple TV, from my wireless router . . . even though I am able to watch Netflix on my WII (also wireless) and desktop computer (not wireless).
    On the Iphone and Apple TV I can connect to Netflix . . . it recognizes me and my account settings . . . and I can veiw all my recent programs and show titles, descriptions, etc..  But when I select one to watch I get a message saying:
    "ERROR A PROBLEM OCCURED WHILE PLAYING THIS ITEM. TRY AGAIN LATER, OR SELECT A DIFFERENT ITEM. GO TO WWW.NETFLIX.COM/SUPPORT FOR MORE INFORMATION. (139)
    Netflix support say there is nothing wrong on their end . . . that it is an Apple issue.  They see the request for the show, the devices are registered . . . but it shows 0 bandwidth to the device.
    My Apple TV did this when I first hooked it up a couple of weeks ago.  Then after a few days started working with Netflix, for no apparent change . . . now doesn't again for the past couple of days (I think that it auto restarted the other night after a virus scan).
    Very frustrating, and driving me nuts!  Has anyone else had and been able to resolve this problem?

    Troubleshooting
    Apple TV2 update one day and netflix is browsing but not launching the actual content (error 139)
    Ipad2 (another ios device) forces me to update netflix if I want to use it and I get the same error 139 on it.
    **** now I have two not ways not working where prior to some update it was fine.
    Nintendo Wii is still working ( mind you running an ancient version of netflix )  Dusted the Wii off and gave it to the kids use.  Now they are happy again...
    PC is also still working ( using some other flash client ) but that's just of interest, we're not going to be watching tv with that.
    My wife's iphone 4s is still working.  Odd.. still ios but for somereason I am not forced to update the version. So basically she could mirror stream up to the apple tv with it.  Nice feature of Ios5.  Later found out it is using 1.4 version of netflix.  The most useful thing out of that is that all 3 of the devices are Ios and it was actually the iphone with the 1.4 version of netflix that still worked!
    I heard from a friend who was on a different ISP he was still working so I took my appletv2 and ipad2 over to my brothers house who is on that same ISP as my friend and both started working.  So the ISP is involved too!
    Brought the appletv2 and ipad2 back to my house hoping it would maybe still work.  No dice   Broken again.
    Searched the appstore for a decent packet analyzer and there isn't really anything.  I was able to sniff the traffic with my PC and also on my juniper ssg5 confirmed that.  Turns out port 80 traffic is actually failing and authorization is not happening.  The other clients do not do this...
    Asked a buddy from work who used to work at the ISP if he could make a call to some one who might actually know what is going on.  He came back pretty quick and said yea they are trying really hard to get the beta patch in from Bluecoat asap. 
    So knowing that it was actually Netflix that changed when it hit 2.0 and in my case the ISP made the adjustment it's pretty safe to say this issue is going to be ongoing unless netflix changes again the way they authorize for licenses.
    So that's the summary of what went right down the troubleshooting path but I'll tell what what didn't
    2 calls to Netflix (useless... waste of time... they are too quick to blame anyone but themselves)
    1 call to apple support (support call was going to cost more than it cost for me to change ISPs)
    2 calls to ISP (through the normal means - regular support number)
    So why is this intermittantly working sometimes?  If you are lucky enough to authorize to an IP address that is not cached they voila you are going to get an authorization / a license to watch the show.  Some people report after defribulating their appletv (reseting, rebooting, dns changes, you name it) they get it working.  Over the past month we all seem to have got it working for some period of time only to lose it a day to two later.
    It's now been several days since the beta patch to the bluecoat and 4 of us who have been communicating on the issue appear to be online all at the same time for those several days and that is a good sign that we might be out of the woods on the issue.
    Hope this turns into something helpful for someone else out there.

  • Hi...i cannot connect to my imessage it always show a message says network error even though i have a network..please help..tnx..

    Hi...i cannot connect to my imessage it always show a message says network error even though i have a network..please help..tnx..
    [email protected]

    Both parties must be connected to wifi to use FaceTime (and you must have FaceTime turned on in Settings>Facetime).  If you're phone shows 3G at the top when it's on, you're not connect to wifi; you'll have to solve that problem first.

  • Getting an VISANS timeout error even though VISA Status is 0

    I have an application that runs well on my development system but consistently fails at the user site giving out timeout errors even though the user experiences no time outs. Indeed, VISA returns a success status. Yet, it raises timeout exceptions such as in this segment from my trace log:
    DefaultSource, Verbose, 8, Setting timeout to 30000, "CONNECT", 2008-08-12 00:47:21Z, 2077539389311920
    DefaultSource, Information, 0, GPIB0::26::INSTR termination character set to 10, "CONNECT", 2008-08-12 00:47:21Z, 2077539630487436
    DefaultSource, Verbose, 8, Checking GPIB0::26::INSTR message available, "FR, CONNECT", 2008-08-12 00:47:21Z, 2077539636730532
    DefaultSource, Verbose, 8, Flushing read GPIB0::26::INSTR buffer, "FR, CONNECT", 2008-08-12 00:47:21Z, 2077539673800216
    DefaultSource, Error, 2, Flushing read GPIB0::26::INSTR buffer failed: NationalInstruments.VisaNS.VisaException: Timeout expired before operation completed.  VISA error code -1073807339 (0xBFFF0015), ErrorTimeout
       at NationalInstruments.VisaNS.Internal.ErrorChecker.CheckStatusAndThrow(Int32 status, VisaHandle visaObject)
       at NationalInstruments.VisaNS.Session.CheckStatusAndThrow(Int32 status)
       at NationalInstruments.VisaNS.Session.BufferedReaderService.NationalInstruments.VisaNS.Internal.IBufferedReader.Scan(String scanSpecifier, Int32& count, StringBuilder receiver)
       at NationalInstruments.VisaNS.MessageBasedSessionReader.CommonReadString(String scanString, Int32 count)
       at NationalInstruments.VisaNS.MessageBasedSessionReader.ReadLine()
       at isr.Visa.MessageBasedReader.ReadLine()
       at isr.Visa.GpibSession.ReadLine()
       at isr.Visa.Ieee4882.Instrument.ReadString()
       at isr.Visa.Ieee4882.Instrument._flushRead(). VISA status=Success, "FR, CONNECT", 2008-08-12 00:47:21Z, 2077539717184364
    DefaultSource, Verbose, 8, Flushing GPIB0::26::INSTR write buffers, "FW, CONNECT", 2008-08-12 00:47:21Z, 2077539723797900
    DefaultSource, Verbose, 8, , "WRITE, FW, CONNECT", 2008-08-12 00:47:21Z, 2077539731761192
    DefaultSource, Error, 2, Flushing GPIB0::26::INSTR write buffers failed: NationalInstruments.VisaNS.VisaException: Timeout expired before operation completed.  VISA error code -1073807339 (0xBFFF0015), ErrorTimeout
       at NationalInstruments.VisaNS.Internal.ErrorChecker.CheckStatusAndThrow(Int32 status, VisaHandle visaObject)
       at NationalInstruments.VisaNS.Session.CheckStatusAndThrow(Int32 status)
       at NationalInstruments.VisaNS.Session.BufferedWriterService.NationalInstruments.VisaNS.Internal.IBufferedWriter.WriteLine()
       at NationalInstruments.VisaNS.MessageBasedSessionWriter.WriteLine()
       at isr.Visa.MessageBasedWriter.WriteLine(String queryCommand)
       at isr.Visa.GpibSession.WriteLine(String queryCommand)
       at isr.Visa.Ieee4882.Instrument.WriteLine(String value)
       at isr.Tsp.TspVisaIO.WriteLine(String value)
       at isr.Visa.Ieee4882.Instrument._flushWrite(). VISA status=Success, "WRITE, FW, CONNECT", 2008-08-12 00:47:21Z, 2077539742753448
    The first exception above is raised on the session Message Based Reader ReadLine() command.
    Note that I check for message available before issuing read. 
    Note also that VISA NS returns a status code of success:   VISA status=Success (this is what I log above)
    The second exception is raised after I try to clear the write buffers using the Message Based Writer command: WriteLine()
    Here too VISA reports success.
    Note also that the above segment executes in less than one second whereas the time out is set to 30 seconds. 
    The user runs VISA 4.3 runtime.  I am using NationaInstruments.VisaNS 8.1.20.222.
    I would be most grateful for some clues as to how to further explore this issue.  We have been at it for a few days already and are not seeing any light at the end of this tunnel.
    David

    Hello David,
    It looks like you are not passing any valid handlers in your viUninstallHandler command.  Calling viUninstallHandler removes the specified handler from the list of
    active handlers on the given session.  You can see the exact error information for your error in the picture below.
    Useful information can be found in the manual:  VISA Programmers Reference Manual Pages 5-146 & 7
    Have a great day!
    Meghan R
    Applications Engineer
    National Instruments
    Message Edited by Meghan R on 08-15-2008 11:39 AM
    Attachments:
    ScreenHunter_01 Aug. 15 11.33.gif ‏9 KB

  • TS4050 I am running Windows 8. Although my contacts and notes from my Ipod touch show up on icloud my calendar entries do not show up even though they do show up in my Google calendar and my windows phone calendar. Any suggestions not already covered?

    I am running Windows 8. Although my contacts and notes from my Ipod touch  show up on icloud my calendar entries do not show up even though they do show up in my Google calendar and my windows phone calendar. Any suggestions not already covered in trouble shooting articles?

    As I mentioned earlier, you have to decide which calendar you want to use.  You can either use Google or iCloud, but not both.
    If you want to use your iCloud calendar, go to Settings>Mail,Contacts,Calendars>Default Account (in the Calendar section) and set this to your iCloud calendar.  After doing so, all new events you add to your calendar will be added by default to your iCloud calendar, and as a result, will appear on icloud.com and your computer (if it is syncing calendars with your iCloud account).
    If, on the other hand, you want to use your Google calendar (as it sounds like you are doing with your iPod), simply add the same Google calendar to your phone and your computer.

  • I have uninstalled and installed the latest Flash Player 17 many times.  I am currently working on a yearbook site that gets locked every time I try to add photos.  I have also received a plug in error even though the plug in box is checked.  I have a Mac

    I have uninstalled and installed the latest Flash Player 17 many times.  I am currently working on a yearbook site that gets locked every time I try to add photos.  I have also received a plug in error even though the plug in box is checked.  I have a MacBook Pro.  Please help!!!

    To give you any useful advice, I'm going to need to know more about your computer and browser:
    https://forums.adobe.com/message/5249945#5249945

  • Table not found error while importing table defintion in PI 7.1?

    Hi Guys,
    I am trying to import the table structure from DB2 as an external defintion but i am getting the error table not found.
    There are no connection issues with the DB2 and CC is good. Are there any additional settings i need to perform to import the table?
    any help or suggestions would be really appreciated
    Thanks,
    Srini

    Hi Srinivas,
    I think you want to do JDBC lookup.. you must have created the JDBC receiver communication channel. As your communication channel is correct and still you are getting Table not found error.. Check following steps.
    - Check that your Communication channel is activated and working fine.
    - Check that the ID which you are using in JDBC receiver is having proper authorization to import the table definition.
      Just check with all authorization.
    I think the problem is with insufficient authorization to User ID used on JDBC communication channel.
    Thanks,
    Bhupesh.

  • In the context of restoring a drive from a backup, i copied /etc/sudoers from my backup. Now it does not work due to the permissions not being correct (even though it was copied via sudo cp -rp)

    In the context of restoring a drive from a backup, i copied /etc/sudoers from my backup. Now it does not work due to the permissions not being correct (even though it was copied via sudo cp -rp)

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • TS3276 incoming messages are not shown automatically even though in 'preferences' i have set to check every minute. I have to click the mail icon to see new messages. phil

    incoming mail does not appear automatically even though preferences is set to check for new mail every minute

    If by download bar you are referring to the spinning gears, they are gone in Mail 6.5. There is no indication Mail is checking for Mail. If it finds Mail, it will show it downloading in the lower left hand corner.
    Under the Window menu there is Activity. Try opening it and you should be able to see if Mail is checking for new mail.

  • How do I get idvd on my computer? It did not come installed even though I have ilife

    How do I get idvd on my computer? It did not come installed even though I have ilife? Also, no operating system dvd came with my computer. I have had it for 5 months so its quite new.

    iDVD is no longer developed or shipped by Apple. You can purchase an iLife 11 disk (if you can find one) or purchase an alternative DVD authoring app.
    SInce 10.7 should you need to re-install you do so via the Recovery partition and/or the App Store.
    http://reviews.cnet.com/8301-13727_7-20083166-263/managing-the-os-x-10.7-lion-re store-drive/

  • Entry in outbound table not found, Error message no. EO400

    I have created Partner profile and include message in partner profile.  when i have generated IDOc (we60), that time, it is given error ( Entry in outbound table not found---- Error Msg no. EO400).
    Please suggest me solution for the same.
    Kunjan shah

    Hi Kundan,
    can u be more specifidc about ur requirement.So that i can help u out.What all the configs u have done and what is method ur using for generationg outbound idoc.
    Regards,
    nagaraj

  • Recipients not receiving emails even though internet provider shows post in it's esnd folder. Started happening with no changes in configuratuin. Thanks

    Sending emails from my laptop using Thunderbird I get the usual "connecting to...., sending to...,message sent" But recipients do not receive post even though my internet provider's sent folder contains the posts. Cox is my email provider and I can send posts from their WebMail site.
    There were no changes in configuration.
    I should note that I was using a "free" WiFi in Nicaragua.
    Also, I receive emails just fine.
    Cox says it's my email client but I don't see how it could be you guys isince Cox had had to receive the posts in order to put them in the sent folder.
    Thanks
    [email protected]

    have you tried mail to multiple domains or all say cox.net. I have a feeling your email might have got a bad reputation in deepest darkest Africa.

  • Receiving "Connect to iTunes error" message when trying to purchase gems in Kingdoms of Camelot Battle for the North game even though I was able to do so earlier today.

    Receiving "Connect to iTunes error" message when trying to purchase gems in Kingdoms of Camelot game app even though I was able to do so earlier today.

    Hello Robidt,
    The following article provides information and tips that can help restore your connection to the iTunes Store.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Cheers,
    Allen

Maybe you are looking for

  • Almost all incoming emails going to junk folder

    I've been using Thunderbird for a few months now with very few glitches. However, suddenly, it is putting almost all my incoming emails into the junk folder. I believe my junk settings are appropriately set. I have attached a screen shot of them. Wha

  • Can we get data return from stored procedure in a select query ?

    Hello, Suppose i have a function GetSum(x,y) that returns sum of two numbers x and y .We can call this function from within a sql function like this : select GetSum(4,5) SUM from dual;But is this possible through a stored procedure ? i.e., can i call

  • Blank entry in table t512z

    Hi, We have a blank entry in t512z in production, and in development its not allowing us to create an blank entry. Can any one suggest me how to remove this blank entry from production. Thanks Veer

  • Script to frame multiple designs in various colours and save each image.

    I sell prints online, and have a template of a frame, but I would like to know if there is a script which can be used to input maybe 10 image files into the frame template, and save each file as its own jpeg. Hope that makes sense. Thanks

  • Hooking up crt monitor to imac g5

    I just went out and bought a used crt monitor to work with color. Unfortunately, I have no idea how to hook it up to my imac G5 computer. How do I do this? What cables do I need. The monitor is a JVC TM-1400SU and came with a BNC to RCA cable. Any he