Can't find answer to Query Of Queries runtime error

Not only I browsed this forum but also googled this problem but unfortunnately I have no luck in finding the answer.
All I did was writing this simple query:
<cfquery name="test" dbtype="query">
select SSN,BirthDate from myquery where SSN <> '' OR BirthDate <> ''
</cfquery>
and I got this error:
Query Of Queries runtime error.
Comparison exception while executing <>.
Unsupported Type Comparison Exception: The <> operator does not support comparison between the following types:
Left hand side expression type = "DOUBLE".
Right hand side expression type = "STRING".
I tried the following and did not work either, still got the same error.
<cfquery name="test" dbtype="query"> 
select SSN,BirthDate from myquery
where SSN <> <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value=""/>  
OR BirthDate <> <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value=""/></cfquery>
Has someone ever encountered the same problem and know how to solve it?

HELP ! ! !  Going into testing soon. I need this to work to get correct report results ! ! ! !
My issue seems similar to the one under discussion and the reply from lawhite01 caught my eye. Can you roll my issue into this discussion?
This is a 2 parter. The second part is the QoQ part, but the 1st part has a line in the query that is similar to the QoQ one and it uses the same data. Part 1 also throws an error.
PART # 1.
I'm trying to use a query table created through QueryNew and then query it.
I need multiple columns in the query table I create:
<cfscript>
        tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
    </cfscript>
Then I populate all the cells of the query table.
Then I set up to use the created query table.
I do this first:
    <cfquery name="qAltPostID" datasource="#at_datasource#">
         SELECT AltPoster, fk_Job_AnnounceNum
         from JOB_JPContacts
         Where AltJPContactType = 'AltPosterID'
         and AltPoster = '#session.IHSUID#'
         </cfquery>
Then, in my first query using the created query, I expect to need to choose from multiple values, so I'm using this line in the query (this is NOT a QoQ query):
            and AnnounceNum IN (<cfqueryparam cfsqltype="CF_SQL_varchar" value="#ValueList(qAltPostID.fk_Job_AnnounceNum)#">)
I've also tried:
               and AnnounceNum IN (#ValueList(qAltPostID.fk_Job_AnnounceNum)#)   
and:
               and JOB_AnnounceNum IN
                SELECT fk_Job_AnnounceNum
                from JOB_JPContacts
                Where AltJPContactType = 'AltPosterID'
                and AltPoster = '#session.IHSUID#'
ERROR is: one record should return. I get 0.
PART # 2: Here's the QoQ part.
I get the error:
Query Of Queries runtime error.
Comparison exception while executing IN.
Unsupported Type Comparison Exception: The IN operator does not support comparison between the following types:
Left hand side expression type = "LONG".
Right hand side expression type = "STRING".
A tutorial I found gave an example using only one column for this part of the fix:
     tot_AllCurrentDraftListing = QueryNew("AnnounceNum", "CF_SQL_VARCHAR")
How would I set up the query with the datatype when I'm using multiple columns:
<cfscript>
        tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
    </cfscript>
I used this code after all the cells contained values and before running my QoQ query:
        <cfloop index="intID" from="1" to="#tot_AllCurrentDraftListing.recordcount#" step="1">
            <cfset tot_AllCurrentDraftListing["AnnounceNum"] [intID] = JavaCast("string", intID) />
        </cfloop>
          Is that correct?
Thanks.
Whoever can help me with this should be awarded extra points ! ! ! !

Similar Messages

  • Query of Queries Runtime error

    I have a query pulled from an XML file, with a column that
    contains mixed numeric and alphanumeric strings, like 103, 112,
    A12,
    etc.
    When running a QofQ on this query, I get this error:
    Query Of Queries runtime error.
    Can't convert the string A1 to java type LONG
    Apparently, according to a livedocs comment I found here
    http://tinyurl.com/y24qda
    =====
    if the column's value in the first row of the recordset is
    something that is all numeric, like: 123456 When an all-numeric
    value
    like this is encountered as the first value, CF assumes that
    ALL values in that column are numeric... thus, it errors out if it
    comes accross a record containing both numbers and letters,
    since a mix of letters and numbers will be considered a string.
    =====
    Is there any known way around this?
    Michael Evangelista
    Evangelista Design
    www.mredesign.com

    Yes, running CFmx7... didnt stop to think this might be
    different in each, but found something to that effect last night...
    also, Dan's link gave me a clue... thanks.
    Michael Evangelista
    Evangelista Design
    www.mredesign.com
    "Adam Cameron" <[email protected]> wrote in message
    news:[email protected]..
    >> Ok.. will do, thanks
    >
    > Note that the advice Dan gives is specific to CFMX7,
    whereas it seems you
    > have been looking at the CFMX6 documentation... which
    version of CF are you
    > running?
    >
    > --
    > Adam

  • HT4623 Can someone offer guidance, can't find answer in FAQ's. Redeemed $10.00 itune gift card but can't purchase game for $9.99.

    First time using this.  Can someone offer guidance, can't find answer in FAQ's.  Redeemed $10.00 iTunes gift card but cant make a purchase for $9.99. Any help would be welcome.

    Thanks very much for all your help. How could I have overlooked taxes? Wishfully thinking I guess.

  • I forgot to answer account security, so how can I find answers or change questions and new answers

    I forgot to answer account security, so how can I find answers or change questions and new answers
    Can you help me ,please???

    From a Kappy  post
    The Three Best Alternatives for Security Questions and Rescue Mail
       1. Use Apple's Express Lane.
    Go to https://expresslane.apple.com ; click 'See all products and services' at the
    bottom of the page. In the next page click 'More Products and Services, then
    'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
    ID security questions' and click 'Continue'. Please be patient waiting for the return
    phone call. It will come in time depending on how heavily the servers are being hit.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • 4S w/8.1. All alerts, phone, message etc stopped working. Ckd settings can't find answer. Ckd sounds on settings all test good. Help.

    4S w/8.1. All alerts, phone, message etc stopped working. Ckd settings can’t find answer. Ckd sounds on settings all test good. Help.

    settings - do not disturb - off
    use the side control and make sure the switch is up for ringer and not on vibrate.

  • Query Of Queries syntax error.

    Hi all,
    I have the following query:
    <cfquery name="agent" datasource="datasourcename">
    SELECT * FROM quotes where status = 'Pending'
    <cfif isDefined("form.agent")>
    AND agent = '#FORM.agent#'
    </cfif>
    </cfquery>
    Then, I have the following query of that query
    <cfquery name="totalvalue" dbtype="query">
    SELECT SUM(value) as total FROM agent
    </cfquery>
    however I get the following error:
    Query Of Queries syntax error.
    Encountered "SUM ( value. Incorrect Select List,
    on line 20 which is:
    <cfquery name="totalvalue" dbtype="query">
    now i'm sure this is identical to what ive used before but
    getting the error. the totals query works fine when querying the
    database direct, only got this error when I changed it to query the
    master query.
    i appreciate any help in advance, as no matter how much i
    stare at it I can't see whats wrong!

    I believe that
    value is a reserved word that is probably causing your
    current error. I would rename this column, or alias it in your
    original query. Also, I would add WHERE value IS NOT NULL to your
    Q-of-Q to cover your NULLs.
    Phil

  • 6i can't find waveform peak detection vi. Load error code 20

    6i can't find waveform peak detection vi. Load error code 20

    The waveform peak detection VI is found only in the Full and Professional development systems. Do you have the base package?

  • Have downloaded new Lightroom 5.4 from CC. When trying to launch am getting following error message and then Lightroom crashes: "an error occurred when attempting to change modules". Can't find a thread which relates to this error message.

    Have downloaded new Lightroom 5.4 from CC. When trying to launch am getting following error message and then Lightroom crashes: "an error occurred when attempting to change modules". Can't find a thread which relates to this error message.

    Hi 99jon,
    Many thanks for that. Had been going through this list yesterday and now again today:
    Ref  Solution 1: Lightroom is at its latest update
    Ref  Solution 2: It's interesting how I cannot find the Preferences file anywhere on my mac. (new mac pro, OS 10/9.2) . . .
    Ref  Solution 3: Lightroom doesn't allow me to do anything after the error message appears
    Ref  Solution 4: don't have any Nik Software plug-ins
    Ref  Solution 5: checked permissions and changed all to "Read & Write" - makes no difference
    Ref  Solution 6: I don't have a different user account on my mac.
    Not sure what else to do.

  • "Can't find dependent libraries" Query

    I created a sample.dll using VC++ which inturn uses java libraries. I
    was getting 'file.obj : error LNK2001: unresolved external symbol
    __imp__JAWT_GetAWT@8' link error while creating sample.dll even after
    providing jawt.dll path. So used jre/lib/jawt.lib to create the
    sample.dll. I am using this sample.dll to run a java program. While
    running the java program, I am getting the error 'Exception in thread
    "main" ava.lang.UnsatisfiedLinkError: sample.dll: Can't find dependent
    libraries'. If I don't use jawt.lib (by commenting relevant code) to
    create sample.dll, my java program runs fine.
    But I need to use the code relevant to jawt.lib. Any idea how to over
    come Can't find dependent libraries error?

    You need to link against "jawt.lib"
    E.g.
    In VC++ goto
    Projects -> Settings ->Link Tab
    Add jawt.lib to the Object/Library modules and Project Options.

  • Blank Screen- Can't find answer to fix it.

    I went to listen to my ipod the other day and when it started up, it had a blank screen. I tried to restart it, but when it came back up for the second time, now the screen is two toned. One half is white, the other grey. Plus the Apple logo no longer appears. I've tried plugging it into my computer, the computer reads the ipod. I've tried retoring the defaults, the screen is still blank. I can't find anything on the Apple.com site. Has anyone had this happen and how do I fix it?

    Try and force the iPhone into Recovery Mode
    1. Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.
    3.While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    4. Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears, release the Home button. iTunes should alert you that it has detected a device in recovery mode. Click OK, and then click Restore to restore the device.
    Note: Data will be lost. You may have to repeat the above many times.

  • "Firefox can't find the server at ..." error message

    I frequently get the "Firefox can't find the server at ..." message but in most cases clicking "refresh" gets to the relevant website. Based on limited usage of IE, IE doesn't give the same problems. In attempting to resolve the issue I've deleted and reallowed Firefox through the firewall, tried starting in safe mode, cleared the cache, made suggested additional entries though About:config, etc. all to no avail. Judging from discussion threads this problem appears to be very common but none of the solutions I've tried work. Any suggestions for possible solutions would be greatly appreciated.
    Thanks

    This problem has occurred frequently since upgrading to 3.6 and upwards, all the way to 6.0. It is so persistent a problem that I am seriously considering bidding farewell to Firefox for a while.
    I have IE, Chrome, Opera, Netscape and ArmorSurf as alternatives. Even the old Netscape Navigator (version 9+) gives me less problems than Firefox.
    Another major annoyance with Firefox: Upgrades too often cause the loss of previously functioning add-ons (some of which had cost money for the premium versions).
    Firefox has lost its razzle-dazzle for me. Too bad.

  • Recently I did an update and now can't open iTunes.  I get a Runtime Error telling me C Runtime library loaded incorrectly.  Please help?

    Recently, I did an update on iTunes on my Acer laptop. Now I can't open iTunes & I get a Runtime Error telling me C Runtime library is loaded incorrectly.  I have Windows 7 64-bit. Do I need to reinstall iTunes.

    Hi sungoddess69,
    Thanks for visiting Apple Support Communities.
    To resolve this error, I recommend completely removing and reinstalling iTunes and all of its related components using these steps:
    Check for .dll files
    Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    Uninstall iTunes and all of its related components.
    Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    Re-download and reinstall iTunes 11.1.4.
    You can find the article with these steps and more information here:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Best,
    Jeremy

  • Finding the transaction of an abap runtime error

    hello,
    is it possible to find out the corresponding transaction to an abap runtime error?
    till now i've got all informations like they are shown in ST22 in my abap program. but i'd also like to have the transaction code, not only the corresponding devclass, subapplication and application.
    does anyone know a function module or any other solution for that problem?
    thanks in advance
    joschi

    When you are analyzing your short dump via ST22, there is a section called "User, transaction..." where the following information is shown:
    Client
    User
    Language key
    Transaction
    Program
    Screen
    That section will show you the transaction code you need.
    I hope that helps,

  • Potential buyer – 8 questions I can't find answers for in the reviews

    Folks,
    I’m seriously considering getting an iPhone in the next few days and after doing my homework I have a few questions I didn’t quite find the answers in the reviews I’ve read/watched. Could anyone comment on them? Some may sound silly
    1- VNC – Has anyone used the version from NateTrue over EDGE? Is that usable? I basically want to use it to access a remote library reference app running on a PC (link: http://cre.ations.net/creation/webvnc---remote-desktop--vnc-on-your-iphone)
    2 - PDF viewing – Can you view PDFs that are stored on websites or just attached to emails? Also, if the PDF has only the image of scanned text, can you still pan/zoom in?
    3 - PDF #2 – Can you search within the PDF doc you’re viewing?
    4 - Alarm - How loud is the sound of the alarm? Any former Treo users (650) who can compare the two?
    5 - MP3s - If you tap on a link to an mp3 file in the browser, will it play?
    6- Podcasts – Does Safari play podcasts using any of those web-based players you see in site wuch as twit, applephoneshow, etc?
    7 - Contacts – I use the Palm Desktop + Treo and have my contacts in there. I don’t use outlook or other apps. Can I just export my contacts in .csv format and get them into the iPhone? Any suggestions? How about exporting/importing calendar events?
    +
    8 - Bonus question 3rd party apps – long shot, since the SDK is not out yet – Does anyone know about 3rd party apps DATA? I am really hoping that iSilo will release an iPhone version of its reader since I am a heavy user of a research library I use for my congregation activities (a modern translation of the Bible + lots of other publications) and I wonder how/if that’s going to work.
    Many thanks in advance for your comments.
    Regards,
    Ismenio
    PS: If anyone has traveled to Brazil with their iPhone (especially in the Northeast), could you comment on the experience? EDGE availability, call quality, etc? You can contact me direct on this one

    *1- VNC – Has anyone used the version from NateTrue over EDGE? Is that usable? I basically want to use it to access a remote library reference app running on a PC*
    I doubt that it will work very well.
    *2 - PDF viewing – Can you view PDFs that are stored on websites or just attached to emails? Also, if the PDF has only the image of scanned text, can you still pan/zoom in?*
    I don't see why not
    *3 - PDF #2 – Can you search within the PDF doc you’re viewing?*
    No. The iPhone does not offer search
    *- MP3s - If you tap on a link to an mp3 file in the browser, will it play?*
    No
    *6- Podcasts – Does Safari play podcasts using any of those web-based players you see in site wuch as twit, applephoneshow, etc?*
    No, all of these would rely on quicktime, which doesn't really work. The iPhone doesn't support streaming audio very well.
    *7 - Contacts – I use the Palm Desktop + Treo and have my contacts in there. I don’t use outlook or other apps. Can I just export my contacts in .csv format and get them into the iPhone? Any suggestions? How about exporting/importing calendar events?*
    No you cannot
    *8 - Bonus question 3rd party apps – long shot, since the SDK is not out yet – Does anyone know about 3rd party apps DATA? I am really hoping that iSilo will release an iPhone version of its reader since I am a heavy user of a research library I use for my congregation activities (a modern translation of the Bible + lots of other publications) and I wonder how/if that’s going to work.*
    Sorry, we cannot answer any questions about the SDK because no details have been made public as of yet.
    Message was edited by: Paul Judd
    Message was edited by: Paul Judd

  • Pages aren't loading right and can't find answer in atricles.

    For 2 days now every site I go to normally is loading weird. Things are piled up on top of each other, things dissappear, the things that aren't piled on each other is in blocks instead of pictures, icons, etc... and i have to reload all the time-pretty much as soon as I bring up any page on any site. It's getting tiring and frustrating. I've tried and tried to fix this and am having no luck. I've clicked on all the restore defaults I can find and it's just not doing it. I really don't want to get rid of Firefox cause for me this is the only thing I trust but honestly I'm thinking about it. Please help!!!

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

Maybe you are looking for

  • New MacBook Pro with Mavericks- reformat or not?

    Hi folks, Background:  I had a lovely MacBook Pro running Snow Leopard which died on me and so I replaced it last week with this equally lovely late 2013 Retina 15" 2.3GHz i7 MacBook Pro which, obviously, came with Mavericks. But since I was under pr

  • How do I rename a volume on an external hard drive

    I have a 500 GB Iomega USB external hard drive divided into 3 volumes. The largest one used to be my Time Machine backup, but I needed more room and have added a new drive for the purpose and want to change the name of the old backup volume to someth

  • Please give me some examples of video chat with adobe flash builder 4 or adobe flex 3.5

    I'm a newbie for flex. I had a project from my college to made a video chat application using Adobe Flash Builder 4 and used Red5.  please help me, give me some examples of video chat source code, so that i may to learn it. thanks a lot friends.

  • Can't attach a Pages doc in an iWeb created site

    We have created a web site using iWeb for some private school tutoring. We have set up a blog page for the students to use as a type of discussion board. We have comments and attachments enabled. For some reason, iWeb will not allow any document crea

  • Problem in sending Fax from the Output type - SAP Script

    Hi Team, I am facng a problem with SAP Script while sending the Fax from the output type. I am able to see the entire output in my outbox. But in the fax machine it is only printing the Main window. I checked with some other outputs which are using t