What is wrong in the syntax of the following RecordSelectionFormula...???

Hi,
I try to complete the RecordSelectionFormula of my subreport ("{ALARM.JOB_ID} = {?Pm-?JOB_ID}) with:
" OR {ALARM.GROUP} = 10 AND {ALARM.COMES} > (select top 1 {AUFTRAG.[TIMESTAMP]} from where {AUFTRAG.JOB_ID} = {?Pm-?JOB_ID} and {AUFTRAG.STATUS} = 1 order by {AUFTRAG.TIMESTAMP} asc)"
I always get the error "A number, a currency amount, a boolean value, a date, a time, a date/current value or a character sequence are expected."
Is "top 1" the problem? I made both tables, ALARM and AUFTRAG, well known to the report by the database wizard...
Thanx!

Thank you @Don!
The complete statement, I tried was:
{ALARM.JOB_ID} = {?Pm-?JOB_ID} OR {ALARM.GROUP} = 10 AND {ALARM.COMES} > (select top 1 {AUFTRAG.TIMESTAMP} from where {AUFTRAG.JOB_ID} = {?Pm-?JOB_ID} and {AUFTRAG.STATUS} = 1 order by {AUFTRAG.TIMESTAMP} asc)
The first part - {ALARM.JOB_ID} = {?Pm-?JOB_ID} - comes from the designer by setting the subreport conjunctions.
The second part - OR {ALARM.GROUP} = 10 AND ... - is necessary, because I do not only need ALARM data for the specified JOB_ID, but also System ALARM data which belong to GROUP '10' and occured later than the earliest TIMESTAMP of the JOB_ID in another tabel called AUFTRAG.
It seems to be an syntax problem... or are subqueries not allowed in the RecordSelectionFormula?!?
Thanx.
Edited by: Markus Schfer on Feb 24, 2009 9:00 AM

Similar Messages

  • I am getting the error "We're sorry we cannot complete your request on the iTunes store at this time. Please try again later." on both my iPhone and iTunes on my computer. What is wrong with iTunes? Is the server down???

    I am getting the error "We're sorry we cannot complete your request on the iTunes store at this time. Please try again later." on both my iPhone and iTunes on my computer. What is wrong with iTunes? Is the server down or what? I need to download some things and update some apps...

    I've been getting the same message for like an hour now.  Since everything was working fine a few hours ago, and nothing changed on my end before it stopped working, I'm guessing it's something on Apple's end.  They probably already know about it by now, and are hopefully working on fixing it, so there's probably not much we can do but wait for them to fix it.

  • What's wrong with my syntax?

    I'm getting an error with this. What's wrong with my syntax?
    Error: Scene 1, Layer 'actions', Frame 1, Line 21 1084: Syntax error: expecting rightparen before semicolon.
    // Line 21
    holder.load(new URLRequest("Interactive_StrategyMap.swf" + "?random=" + Math.random();));

    Hi Ned,
    I'm trying to force my preloader to load the .swf every time. I do not want it stored in cache (because I'm trying to solve the issue where the dynamic text doesn't load on refresh)
    So, I've added this math.random to the end of the string... but now the preloader .swf apparently can't see the .swf I want it to load because the path is Interactive_StrategyMap.swf?random=123 instead of Interactive_StrategyMap.swf
    The error I get is:
    completeHandler: Interactive_StrategyMap.swf?random=123
    Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
    My full code is:
    //THIS IS THE PRELOADER CONTAINER THAT LOADS THE INTERACTIVE
    //STRATEGY MAP (Interactive_StrategyMap.swf).
    // CREATE A NEW LOADER OBJECT TO HOLD THE LOADED CONTENT
    var holder:Loader = new Loader();
    var myString:String = "Interactive_StrategyMap.swf" + "?random=123" + Math.random();
    addChild(holder);
    // CREATE EVENT HANDLERS TO TRACK THE LOADING PROGRESS
    // AND TO TRACK THE COMPLETION OF THE LOADED CONTENT
    holder.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoading);
    holder.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    function onComplete(e:Event):void {
    this.loadingClip.visible = false;
    function onLoading(e:ProgressEvent):void {
    var pcent:Number = e.target.bytesLoaded / e.target.bytesTotal * 100;
    loadingClip.loadingText.text = int(pcent) + "%";
    // LOAD THE EXTERNAL CONTENT
    holder.load(new URLRequest(myString));
    trace("completeHandler: " + myString);

  • Error Message: The syntax of the value for prompt 'p_phone_num' is incorrect. Please correct the syntax and try again.

    Post Author: helpwithcr
    CA Forum: General
    " The syntax of the value for prompt 'p_phone_number' is incorrect. Please correct the syntax and try again."
    I am getthing this error while I tried to pass the value from an oracle package to the web when the the crystal report viewer kicks in.
    I found the source of the error. Its just a paranthesis that I used with the phone number inside the function.... The function looks like this
    function phone_number
    return varchar2
    is
    begin
    return '(123) 456 - 789';
    end phone_number;
    I really dont want that paranthesis to go. Its the format that everyone wanted. But they dont want that to be static on the report also
    Please help
    Thanks
    helpWithCr

    Sir, you are a legend!!! 
    Many thanks for putting me on the right track... 
    Here's where I went wrong and how I fixed it.
    First I installed the Azure Pack: MySQL Extension on the MySQL server.
    This was wrong, it needs to be installed on the WAP server/s.
    So I installed the extension on the WAP server and it still didn't work.
    So I uninstalled the extension from the MySQL server and it still didn't work.
    So I also installed the MySQL Connector/Net on the WAP server and it worked.
    This eventually fixed it. 
    What I will say is that in the documentation it doesn't mention installing the MySQL Connector/Net from the web platform installer on the WAP server (unless I have completely missed this)?
    Thanks again :-)
    Microsoft Partner

  • The input line is too long. The syntax of the command is incorrect.

    I am a prentice on J2EE by using the Tutorial 1.4.
    I keep getting this error message: "The input line is too long. The syntax of the command is incorrect." from the windows's terminal no matter what arguments I issued for the command asant right after I successfully executed command "asant build" under the directory of both <Install>\j2eetutorial14\examples\web\bookstore and bookstore1 when I practice the topic of The Example Servlets on Chapter 11: Java Servlet Technology.
    The command and the arguments are:
    asant create-db_common
    asant create-bookstore-war
    asant package-bookstore
    asant deploy-war
    All of them have the same outcome:
    "The input line is too long.
    The syntax of the command is incorrect."
    I have tried to do the research on the google and ased some Java developer friends and school teachers; unfortunately, none of them can solve this problem.
    The OS I am using is win2k professional. The commands were issued on DOS terminal. I have successfully built application server, and pointbase, deploy tool. I have utilize this tools and environment to run all the examples very well on Chapter 8: Building Web Services with JAX-RPC.
    Even worse, after failing on running the Servlets Examples, I got the same error message when I go back to the Chapter 8's Examples and run the command "asant build" on the directory <install>\j2eetutorial14\examples\jaxrpc\staticstub.
    The Server and PointBase were activated when I issued those commands.
    Can someone or the Tutorial's authors kindly help? Thank you very much!

    Hi eric.jendrock,
    Appreciate your help; unfortunately, in my asant.bat script I cannot find the line you indicated even though I found the solution addressed in the FAQ as you instructed, too. The only ines I found are:
    :runAnt
    "%_JAVACMD%" %ANT_OPTS% -Dcom.sun.aas.installRoot="%AS_INSTALL%" -Djava.library.path="%AS_INSTALL%\bin;%AS_ICU_LIB%" -classpath "%AS_INSTALL%/lib/appserv-se.jar";"%AS_INSTALL%/lib/admin-cli.jar";"%AS_INSTALL%/lib/appserv-admin.jar";"%AS_INSTALL%/lib/j2ee.jar";"%AS_INSTALL%/lib/appserv-ext.jar";"%AS_INSTALL%/lib/appserv-rt.jar";"%AS_INSTALL%/lib/commons-launcher.jar";"%AS_INSTALL%/lib/install/applications/jmsra/imqjmsra.jar";"%LOCALCLASSPATH%" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.Main %ANT_ARGS% %ANT_CMD_LINE_ARGS%
    goto end
    :runAntWithJikes
    "%_JAVACMD%" %ANT_OPTS% -Dcom.sun.aas.installRoot="%AS_INSTALL%" -Djava.library.path="%AS_INSTALL%\bin;%AS_ICU_LIB%" -classpath "%AS_INSTALL%/lib/appserv-se.jar";"%AS_INSTALL%/lib/admin-cli.jar";"%AS_INSTALL%/lib/appserv-admin.jar";"%AS_INSTALL%/lib/j2ee.jar";"%AS_INSTALL%/lib/appserv-ext.jar";"%AS_INSTALL%/lib/appserv-rt.jar";"%AS_INSTALL%/lib/commons-launcher.jar";"%AS_INSTALL%/lib/install/applications/jmsra/imqjmsra.jar";"%LOCALCLASSPATH%" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.Main %ANT_ARGS% %ANT_CMD_LINE_ARGS%
    goto end
    I however did tried to remove those lines with -Dcom and -Djava but kept the variables of arg0s, "%_JAVACMD%" %ANT_OPTS%. Here is the result I got:
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)
    where options include:
    -client to select the "client" VM
    -server to select the "server" VM
    Looks funnier. Do you haver any clue or better solutions? Thanks!

  • Can a system-variable passed in the The syntax of the FoRM statement

    The syntax of the FoRM statement is
    FORM {TABLES <t1><t2><t3>......} {USING <U1><U2><U3>.....} {CHANGING <C1><C2><C3>.....}
    ENDFORM .
    As all these are vvariables can a system-variable passed here
    ---if not why?

    Hi,
      Why do you need to pass the system variable to the form at the first place ? It would not be a good programming practice to pass a system variable to the form.
    Hope this helps..
    Thanks in advance,
    Harikrishna.

  • About the syntax of the ALTER TYPE.

    Hi, everybody:
    1. Would you teach me, the syntax of the alter type statement to modify one user-define constructor of the type, the type has been used to a table or a subtype?
    2. Would you teach me, the syntax of the alter type statement to add one user-define constructor?

    Here are the docs for it:
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_43a.htm#2057830
    Tom Best

  • What is wrong with my phone if the battery life is draining while the phone is in the lock position?

    Last night my phone just started getting extremely dim and I had it on the brightest setting. It was so dim you had to look at it under a light just to see what was on the screen. It then proceeded to lock down. I plugged it in but it would not charge. Finally, after almost an hour of being plugged in it finally started charging. It is acting completely normal except that it is constantly warm and the battery life keeps draining even when it is not in use. Does anyone know what is wrong with it? Can it be fixed? Normally, how much would this cost me? Your help would be greatly appreciated!!

    Your phone is probably broken.

  • What is the syntax for the mdx offset in universe designer?

    Hi everybody!!!
    I wish someone could help me with my mdx syntax. I made an universe with Universe designer (BOEdge 3.1) from a BW query and I'm trying to create in this universe an object with an offset.
    My new object has to be the result of the [0CALYEAR].[LEVEL01] with "- 1" offset, is it possible???
    I tried to put the code in the select or in the where fields of the object but without results. When I try to make a query in webi rich client this "new object" doesn't work...
    Please help me...
    Dario

    Hi Ingo,
    thank you for the reply.
    I tried to use that document...the problem is when I put the code in the object (inside univ des) and I analyse the code using the button, the syntax is every time without errors. When I try to make the query in webi rich client , if I use that object the software shows a window with error.
    I used these code in the "where" field:
    1. <EXPRESSION>@SELECT([0CALYEAR].[LEVEL01])-1</EXPRESSION>
    2. <EXPRESSION>@SELECT(Anno calendario\L01 Anno calendario)-1</EXPRESSION>
    the problem is to find the right syntax for what I want...the -1 offset for the new object from the OCALYEAR. I need that if in webi I select from the object filter [0CALYEAR].[LEVEL01] the value 2010 - in the new object will be 2009 etc...
    Dario

  • What is wrong with this website? The client is being VERY vague

    I'm kind of annoyed because whenever I call him, he just says something is wrong with it but won't say EXACTLY what. This is my first project, so it isn't going to be great, which is probably why the first guy is a minecraft server host. You gotta start somewhere though, and at least I get paid. There is something that is a bit off, but I don't know what it is, and neither does the guy... Have any feedback? The blank spot in the middle for the home page is an embedded YouTube video of their server and the blank tiles below show live server status for each server, but they didn't show up in the picture.

    You mentioned server status being on the website which probably means you need to send some sort of message of reliability, I'm not really seeing that here.
    The whole site doesn't look very modern - and maybe that's the point, with it being for MineCraft - but if so the MineCraft card has been over played here.
    I'd lose a lot of the gunge, the shadows and lighting effects/filters & use more solid, less in your face colours - the yellow and green you have chosen really don't go.
    Generally use the MineCraft visual language much more sparsely. To finish on a positive I like the layout, keep that.
    Like you said, it's a first go - in that case it's class. My first was certainly a lot worse than this, mostly everything just needs dialing down. Stay away from filters and effects and just concentrate on the layout, the typography, using the right colour, etc. at first.
    Hope this helps,
    Charles

  • What is the SYNTAX for the user and group filters??? Is the HTML Ampersand token Amper A m p semicolon required in the filter

    There seems to be quite a bit of confusion over the actual syntax for the user and group filters on the Forms Based Authentication  Ldap Role and membership providers.. MSFT isn't really clear and there is a universal confusion in the blogsphere.
    I the filters should the prefix be the ACTUAL Ampersand or the HTML token for an AMPERSAND.. I realize the in many cases the blogger might have inadvertently specified the html token when the bare naked ampersand was intended..   The question
    therefore is : can a filter be taken directly from and ADSIEdit query and used as a filter or must the filter be made HTML safe by swapping out the AMERSAND with the HTML Token for AMERSAND before putting it into the configuration
    for the LDAPRole/membership provider...
    All science is either physics or stamp collecting

    Hi GUYO,
    I am not quite sure how we implement this on sharepoint side, as I did research and sharepoint may not have this feature to do this.
    most of the LDAP for sharepoint may need to follow these steps in this article:
    http://technet.microsoft.com/en-us/library/ee806890(v=office.15).aspx
    http://blogs.msdn.com/b/sridhara/archive/2010/01/07/setting-up-fba-claims-in-sharepoint-2010-with-active-directory-membership-provider.aspxhttp://blogs.msdn.com/b/kaevans/archive/2013/01/31/configuring-ldap-for-fba-in-sharepoint-2010-or-sharepoint-2013-with-powershell.aspx
    here is an example :
    http://blogs.msdn.com/b/sharepoint__cloud/archive/2011/12/20/achieving-fba-with-adlds-amp-sharepoint-2010.aspx
    if should this questions was at the ADSIEdit part, perhaps you can help us by opening a new thread at the AD foum
    https://social.technet.microsoft.com/Forums/en-US/home?category=windowsserver
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • What's wrong with LR5 Slideshow and the time it takes to render a 900 image show?

    I just updated my LR5 with great expectation that the "Bug" would be fixed. "NOT" ...........  I used the slideshow feature to display/create 700 wedding image slideshows for my clients. In LR 5 or LR5.3 when I try to play a show, I have to wait an "UNGODLY" amount of time [Six Hours???} before it plays. Heaven forbid I make changes and then it has to render again. LR4 played wonderfully. I should go back and ask for my $$$ back for the $$$'s spent upgrading to LR5. BTW, I have a very fast machine with lots of memory so it's NOT my machine.
    Can anyone tell me what is going on?
    And/Or if Adobe is attempting to fix this issue?
    Also If I choose to go back to LR4, will my catalogs still be read by LR4?
    If I go back to LR4, can I get my money back?

    3.0 Zeon processors x 2
    2 Quads
    16 GB  memory
    SSD scratch disk
    SSD Boot disk
    2.0 terabyte Raid 5 storage
    Photoshop CS5
    LR 5.3 Updated today
    One image renders every 6 seconds in building my slide show
    I'm encouraged by your comment
    Canon 1DS Mk III  21 - 28 Mp each RAW Image [Same as you I believe]
    LR 4 .............. I always by passed the render and the show played perfectly
    What else do you need?

  • TS1702 What's wrong with my ipad if the apps are not downloading

    I am trying to download some apps but all it says is "waiting" and I have been "waiting" for about an hour.  I do not have any (other) apps downloading except for the ones I am having problems with. Please help whenever possible.

    I have posted these suggestions many times and some of them have worked for other users in the past. Give them a try - in the order that they are typed below. Maybe something will work for you.
    1. Tap the "waiting" icon and see if you can pause it. If it does pause, then tap it again and see if it will resume. If that works, repeat the same steps for each "waiting" icon.
    2. Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    3. Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    4. If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.
    5. You can also try deleting the waiting icons - tap and hold down on an icon until it wiggles - the tap the X on the icon to delete it. Then try to download again.
    6. You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered.
    7. If all else fails, download the updates or the apps in iTunes on your computer and then sync the content to your iPad.

  • What's wrong with my iPod.  The battery is on the fritz!

    I have an iPod Mini 2nd gen
    I'm not really sure how to describe what my iPod's doing, so I'll just describe what today was like. The iPod was fully charged when I left for school this morning, but died after 3 minutes of listening to an audiobook. I tried to turn it back on a few times, but it died quickly. Often, I would turn it on and leave it in the menu for 20 seconds until the battery life went from empty to about 2/3 (I've no idea why). The battery would die again when I started to play music. Once, instead of dying, it started playing the song very choppy and slow. I had to hard-reset to get out of it. Eventually, I turned it on and was able to listen to some songs (I've no idea why), but when I tried the audiobook it said "low battery" again and turned off. I think it worked again on my way back from class.
    I was home for 2 hours (did not charge the ipod) and had similar problems and couldn't get the iPod to stay on for anything (except the brick game for some reason). After 4 hours of classes, I turned it on for my journey home and it showed a little battery instead of empty (before it jumped up to 2/3 like it always does). I was able to listen to the audiobook for 15 minutes. It died as I chose the next part for the book, very similar to how it would normally die a few seconds into the audiobook.
    Obviously, my battery went from not working to working to not working to working again...I think. So what's going on? Do I need a new battery or is my ipod just no longer understanding how much battery it has?

    Crikey! It may have been a quick error on the logic board - If it was reading incorrectly it wont increase without being charged. I am really surprised that your battery is still going after 6 years! I'd think about replacing soon. What sort of life are you getting from it?
    Mark

  • I have the Adobe Premiere Pro CS4 "Classroom in a Book" but my computer says "File Format is not Supported" when I try to use accompanying DVD. What is wrong please, I really like the book and want to learn!

    I've had the product for a while and have tried editing without the book and using video's but it goes slow and I don't feel like I'm learning.
    I'm sure there are shortcuts to be had and I'm re-inventing the wheel it seems.
    "File Format not supported" means exactly what? Is my Windows Version not compatible?
    Not used to chat rooms, would prefer personal training but that is not the way of things anymore.

    Okay, so I Right Click and nothing says "Link Media".
    When I double click on an asset it says, "the selected file cannot be linked because it has 2 audio channel(s) and the clip was created with 1 audio channel(s)."
    However 1 video clip asset does open in CS4.
    The "Lesson One" project itself says, "file format not supported." still.

Maybe you are looking for

  • Adobe Form NOT getting displayed in WebDynpro Modal Window  (Pop Up)

    Hi, I am trying to display the table data in a Interactive Form. I have used TABLE UI element in Interactive Form. When the user clicks on a EXPORT button this form is displayed in a pop up window (Modal Window). This form is not getting displayed fo

  • Why won't my plantronics 780 headphones work with itunes?

    I have plantronic 780 headphones, the kind that plug in to a USB drive, and It is selected as my only default "speaker" on my actual computer but for some reason Itunes won't play any of my music because I disabled my speakers on the computer.  Tryin

  • Encoder crashes and will not open anymore

    I have worked on encoder, trying out some new codecs (cineform) - I had a crash and since then, encoder will not open anymore. Is there a way to trash the prefs? I can only find the plist, is there anything else? Thanks!

  • Empty Target Stack on Mopz

    Hi... we try to implement SP25 on our Solman.... In Mopz-step 'Choose Stack' we get an empty field... In Log we can find the message 'Stacks of Product Version SAP SOLUTION MANAGER 7.0 EHP 1 do not include NW Stack 05 (09/2009)' Source-Stack is 23, N

  • Changing Process Version adds +/- icon

    Something I found really annoying when upgrading to LR3. I asked LR 3 to update the process version to 2010 for all pictures. It worked. However, all my pictures are now being considered has having being modified, thus having the little +/- icon on t