Issue Tracker App - Error Message

Hello, all,
I'm trying to learn, basically by following the steps to produce the Issue Tracker application from the Tutorials section in Apex 3.1. The application was written for Apex 2.x and at one point wants me to put the following query into a report:
DECLARE
q VARCHAR2(32767); -- query
w VARCHAR2(4000) ; -- where clause
we VARCHAR2(1) := 'N'; -- identifies if where clause exists
BEGIN
q := 'SELECT "ISSUE_ID", '||
' "ISSUE_SUMMARY", '||
' "IDENTIFIED_BY", '||
' "RELATED_PROJECT", '||
' "ASSIGNED_TO", '||
' "STATUS", '||
' "PRIORITY", '||
' "TARGET_RESOLUTION_DATE", '||
' "ACTUAL_RESOLUTION_DATE" '||
' FROM "#OWNER#"."HT_ISSUES" ';
IF :P6_IDENTIFIED_BY != '-1'
THEN
w := ' IDENTIFIED_BY = :P6_IDENTIFIED_BY ';
we := 'Y';
END IF;
IF :P6_RELATED_PROJECT != '-1'
THEN
IF we = 'Y'
THEN
w := w || ' AND RELATED_PROJECT = :P6_RELATED_PROJECT ';
ELSE
w := ' RELATED_PROJECT = :P6_RELATED_PROJECT ';
we := 'Y';
END IF;
END IF;
IF :P6_ASSIGNED_TO != '-1'
THEN
IF we = 'Y'
THEN
w := w || ' AND ASSIGNED_TO = :P6_ASSIGNED_TO ';
ELSE
w := ' ASSIGNED_TO = :P6_ASSIGNED_TO ';
we := 'Y';
END IF;
END IF;
IF :P6_STATUS != '-1'
THEN
IF we = 'Y'
THEN
w := w || ' AND STATUS = :P6_STATUS ';
ELSE
w := ' STATUS = :P6_STATUS ';
we := 'Y';
END IF;
END IF;
IF :P6_PRIORITY != '-1'
THEN
IF we = 'Y'
THEN
w := w || ' AND PRIORITY = :P6_PRIORITY ';
ELSE
w := ' PRIORITY = :P6_PRIORITY ';
we := 'Y';
END IF;
END IF;
IF we = 'Y'
THEN q := q || ' WHERE '|| w;
END IF;
RETURN q;
END;
When I do, I get the error "PLS-00372: In a procedure, RETURN statement cannot contain an expression." I googled the error and got the simple advice to turn the query into a function. Simple to many, yes, but not to me. Also, 3.1 does not allow the selection "SQL function returning a query" or some such, only an anonymous PL/SQL block.
Any help (at a very elementary level, please), please?
Thanks!

Hello,
the problem with your code is that it is designed as an PL/SQL body returning an SQL query not as an anonymous PL/SQL block.
Which version of ApEx are you using? I have taken a look into version 3.1 and there is the possibility to select 'SQL Query (n PL/SQL body returning an SQL query)'.
Regards, Tine.

Similar Messages

  • Issue Tracker App Demo

    As I'm a newby to htmldb, I'm building the Issue Tracker app demo. Did anyone who has already built the demo have trouble with create/edit Person information on page 4? When I submit, I get the following error:
    Error ERR-1025 Error processing PLSQL expression. (:p5_person_role in ('CEO','Manager') and :p5_assigned_project = '%||'null%') or (:p5_person_role in ('Lead','Member') and :p5_assigned_project != '%'||'null%')
    OK
    ORA-06550: line 2, column 29: PLS-00103: Encountered the symbol "NULL" when expecting one of the following: . ( ) , * @ % & - + / at mod remainder rem and or || multiset
    Any assistance would greatly appreciated

    Glenn,
    Looks like a syntax error in a condition: a missing quote:  :p5_assigned_project = '%||'null%')
        should be
      :p5_assigned_project = '%'||'null%')You'll have to poke around to find where that condition exists (on a region, an item, etc.). Or you could search for it in the export file.
    Scott

  • Spooler SubSystem App error message when printing

    I am having troubles printing with my HP Photosmart C4450 printer. The printer will not finish printing a job and will come up with the "Spooler SubSystem App" error message. The printer remains "frozen" after this message appears on my computer. I have tried uninstalling and reinstalling the printer witht the latest driver, downloading all the associated updates and running the HP Print Diagnostic tool to no avail. The spooler is indeed set to automatic and is started. I am running Windows XP on my computer. Any insight into this problem is appreciated. Thank you.

    Have you tried with system PLD?
    Thanks,
    Gordon

  • Can't Export ALL Comments from Issues Tracking app in Sharepoint 2013

    I really like the flexability of the SharePoint 2013 Issues Tracking application. I am able to enter the initial issue, then update it regularly with "comments". Each comment is added as a seperate entry to the issue, date stamped, etc.
    The issue I am having is in exporting this to Excel. I know, I know, the purpose of SharePoint is that you DON'T turn everything into an Excel spreadsheet.  However, I have to send the issues to an external contact that does not have access to the SharePoint
    environment.  When I export to Excel, it only adds the LAST comment to the Comments column in the spreadsheet. I need all comments combined, and dropped into the correct cell.
    Is there a way to do this? I found another thread where it seemed everyone accepted the fact that this was not possible, but I thought I'd try one more time and see if there were any new ideas.
    I believe this is tied to the option of "Append Changes to Existing Text" that is available in the Edit Column settings for the Issues Tracking app. I see that you can turn this off, but then you lose the ability to date-stamp each entry. If there
    is no good solution, then I think the only alternative would be to turn this off, then just manually add a date to each time. 
    Word of caution!!  If you have a bunch of comments already appended, and THEN you decide to change the option from Append Yes to Append No, it will hide all previous comments. I did this and thought I'd lost them, but when I changed the option back
    to Append Changes, they were all still there.  I may need to manually cut-paste every single comment out, change to Append No, and then manually past the entire comment thread back in.  Will be very tedious for a large issues log.
    Thank you.
    Bill

    Update - The only solution I was able to change to "Append Changes to Existing Text", then do as I dreaded, which was to manually cut and past every comment out then back into the single field.  Definitely a good lessons-learned to set the
    value to "Append Changes to Existing Text" before starting.

  • APP Error messages

    Hi ,
    Can anyone tell me if the APP error messages(ex:APP-PO-14040 ) are stored in any tables /  logs.
    Thanks
    Karthic

    Moved to new thread.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Pdftopdf.app error message printing to epaon 4880 via LR

    pdftopdf.app error message printing to epson 4880 via LR

    If you don't get an answer from a Lightroom user here, you may need to contact Adobe and possibly Epson about it.

  • Receiving Podcast app error message

    Receiving Podcast app error message anyone getting that after the 7.0 ios download?

    I called Apple Care last night.  The default setting on Podcast App is to require download via the phone not sync. 
    You have to change your setting on the iPhone in 3 places:
    1.  Settings - ITunes & App Store - Ensure "Automatic Downloads" is on for all items (note that my cellular data is off for iTunes)
    2. Podcast App - go to the settings of each Podcast (tap Podcast - settings) ensure the following settings
         a.  Refresh Podcast  - not set to manually - mine is set at "every 6 hours"
         b. Auto-Downloads - not set to off - mine is set to "most recent"
    If you syncing with a Mac, what Apple explains happens is that you sync with iTunes on the Mac, then the iPhone will automatically download over my wireless connection. 
    Please note that if you are using cellular data for Podcast App - this might not be a solution for you.

  • Simultaneous multi-tracking and error messages

    Hi. I'm trying everything to record a live drum kit w/only 4 microphones(channels) through a Presonus Firepod. I'm well versed in the recording arts and to be honest, everything functions as it should; Tracks are assigned. Signals are crystal clear. Recording sounds spectacular... although: I keep receiving error messages reading "...too many real instrument tracks to record in real-time..."
    So I go through every-single step in the book; All apps closed. Airport off. System at peak(highest) performance. Mute unnecessary tracks for the take. Lock all tracks...etc. etc.. Still after 5-10 seconds of recording this 4 mic drum set-up, I continue to be interrupted with the same error message.
    I went for the extra Ram(2GB is my early MB Pro's limit) and still... error.
    Here's a kicker: If I perform the take at a weaker velocity(how hard I hit the drums), understanding this equals less input volume, ergo less work for my system, it'll record through the song fine... when I return to my normal playing level, again... error.
    And still, everyone I ask suggests my system shouldn't have any issues.
    Finally, I have a simple plug-and-play set-up but I can't play:(
    Please, someone help me before I well-up and cry.
    Thank you

    31characters wrote:
    Here's a kicker: If I perform the take at a weaker velocity(how hard I hit the drums), understanding this equals less input volume, ergo less work for my system, it'll record through the song fine... when I return to my normal playing level, again... error.
    That's really strange - more volume shouldn't mean more work for your system.
    A couple other troubleshooting suggestions:
    Did you try trashing GB preferences (both of them)?
    If you go to all your audio control panels, is there any sample rate conflict?
    Is there any plugin that's potentially overloaded by excessive signal?

  • Provider hosted app error message: The remote server returned an error: (429) Too Many Requests.

    Hi,
    I have a customer running a provider hosted app and in Sharepoint 2013. Things have been working fine but recently they keep experiencing an issue where the all the app parts on the page show the following error message. Does anyone have an idea what
    could be causing this problem and how I can fix it? The Sharepoint site and provider hosted app site are running on a Server 2008 R2 box with IIS 7.5.
    Server Error in '/Test.Sharepoint.App' Application.
    The remote server returned an error: (429) Too Many Requests.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.           
    Exception Details: System.Net.WebException: The remote server returned an error: (429) Too Many Requests.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [WebException: The remote server returned an error: (429) Too Many Requests.]
    System.Net.HttpWebRequest.GetResponse() +8527180
    Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() +58
    Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) +975
    Test.Sharepoint.AppWeb.Pages.LatestAnnouncement.GetLatestAnnouncement(Boolean showFullText) +610
    Test.Sharepoint.AppWeb.Pages.LatestAnnouncement.Page_Load(Object sender, EventArgs e) +764
    System.Web.UI.Control.LoadRecursive() +71
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034
    Impreza Software Development

    Hi GuYumming,
    I have checked the Sharepoint site using Fiddler and my X-SharePointHealthScore stays consistently on 1, I have even refreshed the site and had the "(429) Too Many Requests" error happen right in front of me whilst Fiddler is running and when I look at the
    200 response for the Sharepoint site it is still showing "X-SharePointHealthScore: 1".
    I assume because of this I do not need to make any of the changes suggested in your article above?
    I have also been through the ULS logs and found the following 3 log entries that appear to relate to the issue but they do not really mean much to me so I am hoping that you can help:
    Begin CSOM Request ManagedThreadId=59, NativeThreadId=12476
    SPResourceTally(ClientServiceRequestDuration) value 1 + 150425 > 150000
    ResourceBudgetExceeded, sending throttled status code. Exception=Microsoft.SharePoint.SPResourceBudgetExceededException: ResourceBudgetExceeded     at Microsoft.SharePoint.SPResourceTally.Check(Int32 value)    
    at Microsoft.SharePoint.SPAggregateResourceTally.Check(SPResourceKind kind, Int32 value)     at Microsoft.SharePoint.Client.SPClientServiceHost.OnBeginRequest()
    Impreza Software Development

  • Familybase App Error Message says "System is currently unavailable"

    I recently added familybase (~24 hours ago).  At verizon.com, it shows there has been no activity when I know there has been.  On my FamilyBase App (iphone 5), the phones show up but get an error message that says "System is currently unavailable".  This is the same message I have received since yesterday.  Any ideas on what is wrong?

    george wayne wrote:
    I understand that and I have been using the printer successfully on OS X 10.5 on another old iMac.
    However I also have an euqally old Canon printer and its drivers were successfully downloaded using the same procedure as recommended for the Epson.
    The fact that the Epson RX510 is currently listed on the Apple Support website as being supported is the frustrating issue.
    Go to;  http://support.apple.com/kb/HT3669#epson
    - then scroll down to the Epson section and eventually you will find the RX510 listed with Version 9.00 shown and "P" & "S" shown for printer and scanner drivers being available.
    PS: Sometimes you need to click on the "Software available" link to open the list of printers. It is then a fair way down the Epson list with the RX series.
    Regards,
    Wayne
    http://tech.epson.com.au/downloads/product.asp
    seems to show driver download here.
    Pete

  • Cant download apps, error message can't set up on new computer

    why I'm having problems downloading apps? I enter my credit card number error message says ' your account has been assessed from a nre computer of device and I must verify payment.

    Mail has a bug that causes ~/Library/Mail/Mailboxes to sometimes be a file instead of a folder, and that prevents Mail from creating any mailboxes there.
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all filesystem issues, if any, proceed as follows:
    1. Quit Mail if it’s running.
    2. In the Finder, go to ~/Library/Mail/.
    3. Locate Mailboxes. If it’s a file instead of a folder, move it to the Trash.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • Connecting to bb app error message

    I have had my bb 1 month and been trying to connect to app world but keep getting an error message saying cannot connect please verify your settings as cannot connect to bb server. Looked everywhere and cannot rectify it. Help please......

    The sales reps at cell phone stores often do not know all they are supposed to. You will need a data plan with your device in order to access data. If you can connect to a wifi you can likely get it to work but email, bbm and other BB services will not be available.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Issue Tracking List Error

    Hello All,
    I've created an Issue Tracking (Task) List for our company with a customized view.  I had to change the width of one of the columns (Description) in SharePoint Designer in order to accommodate a large amount of text. I changed the default
    view to this new, modified view. 
    Now each morning, the first person that accesses the list receives the following error:
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePOint Desinger. If the problem persists, contact your Web server administrator.
    Correlation ID: 6a01a375-2bc5-4ee0-b169-042da4858956
    Could this be of my customized column width, and if so, how can I keep the customized column width without getting the error!
    Thanks!!

    Hi Benjamin,
    The error can be caused by many reasons, so you need to check the ULS log for detailed error message.
    For SharePoint 2010, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS.
    In the meanwhile, you can clear the configuration cache for SharePoint to see if the issue still occurs.
    To clear the configuration cache, please follow the link below:
    http://blogs.msdn.com/b/jamesway/archive/2011/05/23/sharepoint-2010-clearing-the-configuration-cache.aspx
    Please also check if the issue is caused by the KB2844286 Security Update on SharePoint 2010 as Cameron suggested.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • HT1926 Version 11.1.4.62 on WinXP issue: AppleMobileDeviceHelper.exe error message every 30 seconds. iTunes hangs when iPhone4 is syncronized

    Version 11.1.4.62 on WinXP issue: I have re-installed iTunes according to instructions. iTunes give me the error message "AppleMobileDeviceHelper.exe has found an error and terminates. Restarting service does not help. Re-installing does not help. iTunes cannot update iPhone4S, iTunes hangs when trying after iPhone syncronization.

    See the user tip: https://discussions.apple.com/docs/DOC-6562 for resolution

  • Issue Tracker app - how to make one page public

    Hi all,
    We have installed and made a few tweaks to the Issue Tracker demo app, and are finding it very useful! We have just a handful of users that have logins for the application, and it is working well for them. We would like to make a modification to the app, so that the main "Issues" page (that lists out all of the issues, and you can search them) can be viewable by anyone in our company. Is there a way to do this? Basically, I'd prefer to be able to just send out the URL for this page, and make it so that anyone in our company can just go to that URL, and have Read-Only access to this page (without having to login), so they can search for issues, and see their status. I would also want to make it so that these folks cannot see the "Add a New Issue" button, and probably hide the breadcrumb at the top as well.
    I know that I could create a whole separate AppEx app, and basically just duplicate the layout of that one page, and make that application public. Is that the easiest route? I was assuming there would be a fairly simple way to take the existing app, and just tweak it so that this one page is public.
    Any advice?? Thanks!

    Quick update - that was easier than I thought! I simply made that one page Public under the Authentication. And I was able to make the "Add a New Issue" button only viewable by the Admins.
    One more question - is there a way to do a similar thing with the breadcrumb at the top? Currently, when I go to the public page, I see the "Home - Isses" breadcrumb at the top left. If I click on the link for Home, then it brings me to a login. However, it would be best if the public users didn't even see this breadcrumb. Is that possible?

Maybe you are looking for