Cannot exit not request CFC, even if it is a query object

I try a query from a CFC for output, but I keep getting a "complex object types cannot be converted to simple values.".

Here is the code:

promoManager.cfc

< cfproperty displayname = "promoManager" >

< cffunction name = "init" returntype = "promoManager" index = "Initialize the controller" >
< name cfargument = "dsn" type = "string" required = "yes" >
< cfset variables.dsn = arguments.dsn >
< cfreturn this >
< / cffunction >

< cffunction name = returntype "getPromotions" = "query" >
< cfset var qGetPromotions = "" > "".
< name cfquery = "qGetPromotions" datasource = "#variables.dsn #" >
SELECT promoID, promoName, code promo, promoDesc, promoFromDt, promoToDt, introDiscount, proDiscount, execDiscount, premDiscount
PROMOTIONS
ORDER BY promoName
< / cfquery >
< cfreturn qGetPromotions >
< / cffunction >

< / cfproperty >

test.cfm

< cfset promoManager = createObject("component","cfcs.promoManager").init (attributes.dsn) >

#IsQuery (promoManager.getPromotions ()) < cfoutput > # < / cfoutput > < /p > <-this outputs YES

< cfset getPromotions = promoManager.getPromotions () >

< p > < cfdump var = "#getPromotions #" > < / p > <-it export a query object

< cfoutput query = "#getPromotions #" > here < br / > < / cfoutput > <-WHAT AN ERROR!

TIA

It works if you omit the sharps in the query attribute value ( )?

Tags: ColdFusion

Similar Questions

  • Problem in Adobe Illustrator CS6: could not open the illustration. Cannot complete the requested operation.

    Problem in Adobe Illustrator CS6: could not open the illustration. Cannot complete the requested operation.

    I was working on my .ai file and pasted a picture of PowerPoint to the adobe illustrator file. Then, AI crashed graphics colorful/patterns/images in my .ai file become black and white, and then I closed the file and may never reopen. I have tried a few apps demo available online recovery (as: service to restore file corrupted Illustrator for anyone ) but they do not work so far... What should I do? Thank you in advance!

    [Ask in the correct forum allows... Left non-technical Forum Lounge for forum specific program... MOD]

    deppie,

    Because obviously, cannot you try to copy and paste the work of a new document, one other thing that is often attempted is first of all create a new document and the file > Place (PDF summary, if any, of the) a corrupt how much can be saved this way.

    Here are a few Web sites I hope more effective where you can see if it can save the actual file, and if possible, you can pay a subscription having,.

    http://www.recoverytoolbox.com/buy_illustrator.html

    the http://Markzware.com/Adobe-Software/Fix-Illustrator-file-Unknown-error-occurred-pdf2dtp-fi collection.

    http://www.Illustrator.fixtoolbox.com/

    I remember, the first is for the victory and the second is for Mac, while the third should be both.

    Here are some pages about yourself the wrong with it:

    http://daxxter.WordPress.com/2009/04/16/how-to-recover-a-corrupted-Illustrator-AI-file/

    http://helpx.Adobe.com/Illustrator/KB/troubleshoot-damaged-Illustrator-files.html

    http://kb2.Adobe.com/CPS/500/cpsid_50032.html

    http://kb2.Adobe.com/CPS/500/cpsid_50031.html

    http://helpx.Adobe.com/Illustrator/KB/enable-content-recovery-mode-Illustrator.html

  • Have 12 items. Many worked on 8.1, my new laptop has Windows 10. Now the elements photo editing software will open the image in raw, but once I did my settings and try to 'open image', it tells me it "cannot complete my request because an error occurred."

    Well, I typed my question in my title.  I have had absolutely no problem under windows 8.1 to 12 items, but unfortunately the death of my laptop could not be repaired, so I had to get a new 8.1 one and that time windows was no longer available on the laptop I wanted. Who would have the go-getter, comparable to my old and able to handle my photography.  SO I have an I7 processor 2.6 Ghz with 6 MB of cache and 16 GB of Ram with Windows 10 64-bit operating system.

    As indicated above, while the Publisher will open the photos in camera raw, once I made my changes and try to "open image" I get the message he, "it cannot complete my request because an error occurred." I tried uninstalling and reinstalling several times with the same results.  I made also all updates have been made. About 10% of the time, it will open up the photo, but then when I try to record it says that I don't have enough memory.  Do not know how this can be, this configuration of the computer is basically the same as my other, only difference is windows 10.  Not even close to a full hard drive. No other program running. Help!

    reset your preferences - https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html, http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm

  • Lack of space disk or memory, cannot display the requested font. Outlook blurred fonts

    After I've been using Word and Outlook for awhile, I get the following message: there is not enough memory or disk space. Word cannot display the requested font. Once I get this error message, my fonts are truncated in Word and Outlook.

    I am running Windows Vista 64-bit Home Premium with Office 2007. I have 4 GB of RAM, with settings in automatic mode (Windows detect).

    I'm not a power user. I googled and searched Microsoft help, nothing helps.

    My brand new computer becomes almost unusable! Help, please.

    kimlife,
    Thank you for visiting the Microsoft Answers community forum.

    There are a few things that can cause this.  One is a damaged normal.dot template, one is a damaged printer driver, and the other would be a sort of third part add in.  Start with the simplest to try so that replaces the normal.dot template.

    Click Start, click search, and in the search for box, type normal.dot.  There should be a search option you can check "Search hidden files", which is checked.  If it does not, try searching * .dot.  It can be difficult to find because it is a hidden file.  You may have to go into options files and make sure that 'show hidden files' are ticked.  Whenever you find the normal.dot file, rename the old.dot and restart your computer.  Open Word and it will create a new normal.dot template, which is what Word uses as a document is empty by default.

    If this does not work, read this article about a third-party add-in that can cause this problem:
    http://support.Microsoft.com/kb/906899

    Let us know how it works and if you need additional assistance.
    Thank you
    Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Cannot process the request because a modal dialog box or the alert is active

    I can't work for the life of me why I get this message when "cannot process the request because a modal dialog box or the alert is active. I simplified my code to reproduce the problem.

    All I want to do is have a dialog box that allows me to edit items on the page... But it does not seem to allow it. I must be missing something simple.

    var selection = app.activeDocument.selection[0];
    
    dialog = new Window('dialog');
    
    var button = dialog.add('button', undefined, 'Resize');
    
      button.onClick = function() {
    
      selection.geometricBounds = [0, 0, 10, 10];
    
    };
    
    dialog.show();
    

    If you use 'dialogue', then you must leave the modal state to interact with the app was done by closing the dialog box.

    var w = new Window('dialog');
    var v = w.add ('edittext');
    var b = w.add('button');
    b.onClick = function(){
        w.close(1);
    }
    if (w.show()==1) alert (v.text);
    

    Or switch to modal MOM like brother suggested dialog boxes...

    Loïc

    Ozalto | Productivity-oriented - Loïc Aigon

  • When I pick a color for the foreground color, I have a popup saying "cannot process your request due to a bug"

    I have the CC legal of Photoshop, working with Windows 8.1, 8 GB...

    When I pick a color for the foreground color, I have a popup saying something like "Cannot process your request due to a bug" (I have the Dutch version, so it is translated). When I click 'OK', popup goes you and I can use the color that I took. When I pick a color for the background color, there is no problem. When I switch the front - and the background color, I get the popup again.

    I use Illustrator, InDesign, and Premiere Pro also, I have no problem with these programs.

    -Restarting my laptop does not work

    -Restart Photoshop and the Adobe app does not work

    -I can't update to Photoshop

    -I want to try to remove Photoshop and install it again, but I'm afraid I have to re - install all my brushes and my actions again

    Could someone help me? It's really annoying :/

    What did you do for troubleshooting so far?

    Restoration of preferences after checking all the presets custom like stocks, models, brushes etc. have been saved can be a good starting point:

    t http://blogs.Adobe.com/Crawlspace/2012/07/Photoshop-basic-troubleshooting-steps-to-fix-MOS - issues.html

  • iOS 10.0.2 problem cannot open notes

    iOS 10.0.2 problem cannot open notes

    Since the update to ios 10.0.2 week last on my 5s just notes iPhone keep crashing. Anyone got a fix?

  • Try to upgrade OS 10.6.8 to El Capitan on iMac. But the FREE update tells me it can not install but will not say why even when I click on learn more. Suggestions? Help?

    Try to upgrade OS 10.6.8 to El Capitan on iMac. But the FREE update tells me it can not install but will not say why even when I click on learn more. Suggestions? Help? Appreciate the assistance.

    More details on the iMac you have and how much RAM is installed would certainly contribute to answering your question.

  • Dead zone near the top of the screen in Safari? Cannot use Safari to log even here, because the arear connection is at the top. Virtually all nearthe fields are dead. I have no problem going into the fields to halfway to the bottom of the screen. Chrome w

    Dead zone near the top of the screen in Safari? Cannot use Safari to log even here, because the login box is at the top. Virtually all of the fields near the top are dead. I have no problem going into the fields to halfway to the bottom of the screen. It comes to Chrome and it works very well.

    I suggest you only begin by taking the measures recommended in this support article.

  • Modbus tcp read holding registers return not requested quantity

    Background: I have a client using ELAU motion system - they record data with records they want to be able to read on a cRIO match with some analog FPGA data (I have digital handshaking going on for this).

    LabVIEW 2010 SP1

    cRIO-9074

    With the help of the library of VI of MOdbus.llb OR communicate with the other system.  I can open the TCP communication without problem and actually get SOME records, but not ALL registry data, I want to read.

    I want to do is read the registers individual operating 330 U16 values.  I know how the data are split to represent different lengths (i.e. most of the data items use 2 records number represent a 32 bit).  I want just to read all of the individual records and analyze the data in another VI to convert it to other data types.

    I provided the .vi MB Ethernet Master Query (poly) with the starting address for the first register, then the amount of 330.  The polymorphic instance selected is "reading record keeping.  The array returned by this VI via 'Holding Registers' is only 74 elements and not requested 330.  I have no exception code and no error in LV.  Is there some intrinsic limit, i.e. the number of Holding Registers that can be read?

    I do not use the (not sure if necessary) MBAP header entry.

    Thank you.

    Simple solution once I dug in the series MODBUS/TCP protocol protocol documentation out there via Google.

    History of the modbus function series is the limitation that carried over TCP - the maximum amount of bytes in the pack a data can be only 256 bytes.  So I was limited to approximately 125 ~ records at a time.

    256 bytes is 2048 bits.  The use of the 16-bit registers which gives maximum 128 registers.  I went with 125 followed making easier totals.

  • My HP Officejet Pro Wireless is not printing black even with a new cartridge.

    My HP Officejet Pro Wireless is not printing black even with a new cartridge.  Help!

    Hello

    Of course check that the cartridge is very savvy.

    As OEM HP is responsible for the good operation of the printer and their
    drivers provided. Check with HP support, their documentation online and
    drivers and ask in their forums.

    Good luck, you need to update or reinstall the latest driver.

    HP support/troubleshooting & drivers
    http://welcome.HP.com/country/us/en/support.html

    Contact HP
    http://welcome.HP.com/country/us/en/contact_us.html

    HP forums
    http://h30434.www3.HP.com/PSG/

    =============================================

    The main issue is probably the drivers, but these can help:

    Add or remove a printer
    http://Windows.Microsoft.com/en-us/Windows-Vista/add-or-remove-a-printer

    Solve printer problems
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    Open the printer Troubleshooter
    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    Find the manufacturer's Web site
    http://Windows.Microsoft.com/en-us/Windows-Vista/find-a-printer-manufacturers-website

    Find and install printer drivers in Windows 7
    http://Windows.Microsoft.com/en-us/Windows7/find-and-install-printer-drivers

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Windows Update has encountered an error and cannot display the requested...

    I tried Windows Update and got the answer "Windows Update has encountered an error and cannot display the request... »

    Hello

    (1) what is the description which are impossible to install updates?

    I suggest to follow the steps provided and check if it helps.

    You receive an error message "Windows Update has encountered an error and cannot display the requested page" when you try to install an update: http://support.microsoft.com/kb/883614

    Hope this information is useful.

  • Windows Live Messenger will not connect automatically, even if the correct boxes are checked.

    Windows Live Messenger (WLM) will not connect automatically, even if the correct boxes are checked.

    WLM signs component snap perfectly when the Connect button is used, but simply refuses to connect when the computer starts.

    It happened once before but seemed to be linked to the use of the Google toolbar that I uninstalled this time without success.

    Post Windows Live questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • Windows cannot find not (Error Message)

    Windows cannot find not (Error Message)

     Links in Windows Mail = "File not found"... "in IE9

    I use Windows Vista Home Premium; Windows Mail; IE9. -Links browser does not work in Windows Mail - IE9 opens and is left blank with an Error Message in a small window saying:

    Title: http://click.scrippsnetworks.com/track?type...
    Body says: "Windows cannot find
    ... subscription/8080/subscribeUpdate? brand... »
    "Make sure you typed the name correctly and then try again."

    (details vary with each different link)

     
    If I have IE9 open before clicking on the link Windows Mail, everything works as it should.  This problem occurs only if IE9 is not displayed when the user clicks on the link Windows Mail.

    It worked before using clear CCcleaner on cookies and other temporary files, etc.  I think I must have messed up something in the registry.

    Hello

    Method 1: I recommend you perform the clean boot.

    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Method 2: Try a system restore:

    Restoration of the system of windows vista DVD:

    Put the computer to an earlier point in time when the computer was working fine.

    1. Insert the installation disc.

    2. restart your computer.

    Click the Start button, click the arrow next to the button lock and then click on restart.

    3. If you are prompted, press any key to start Windows from the installation disc.

    4. choose your language settings, and then click Next.

    5. click on repair your computer.

    6. Select the operating system you want to repair, and then click Next.

    7. in the System Recovery Options menu, click System Restore and follow the instructions.

    I hope this helps!

  • Cannot delete the file. Says "not not found could not find this item check the location of this object and try again."

    Cannot delete the file.  Says "not not found could not find this item check the location of this object and try again."

    I got this file from my friend got sent - is a word document, I had on their computer.  So I tried to use Disk Cleanup to delete temporary files, temporary internet files and files program downloaded.  Does not work.

    When I check the properties, there is no security tab so I can't transfer ownership in this way.

    I don't want to experiment using the way of the transfer of ownership command prompt as the name of the file is several sentences long.  I can't rename it either, of course.

    Windows 7, a week and I already have a stupid problem which has already lost an hour of my time.

    What I did was to create a Notepad file that was empty and saved in the same location as the file that won't go away.  Once registered.  I click with the right button on the new file and rename the exact name as the file problem.  Don't forget to change the file extension (ex: .doc)

    ex file problem: word.doc

    new file: word.doc

    as long as they match eachother exactly you should see the file problem disappear and once that's gone, you can delete the new file created.

Maybe you are looking for

  • Having just accidentally emptied my Inbox. Help!

    Was my shift + delete usual to my Inbox, when I have accidentally hit the end key at the same time by pressing the button Delete.Can I take my voice messages?

  • Button DELETE BACKUP on iPhone and iPad.  What it means?

    I've recently set up my iPhone and iPad to save on iCloud with the help of the iPad CSA.  After reviewing the two parameters of iCloud, I found some articles that I felt to be odd.  (1.) I started to save manually (using Save button) my iPad, but had

  • IOS 9.2.1 problem...

    I just upgraded to IOS 9.2.1 and found I have now can not get on Web sites easily - when you go into safari and tries to enter a website address in the search box, it brings back me directly to the home page - if someone has experienced this problem

  • What is the procedure to uninstall a program that refuses to uninstall?

    Specifically, Xvidly published by... .jottix This malware focused on all browsers and spits out announcements and makes me nervous.  Microsoft security scan does not detect it, nor has a program like malwarebytes to eradicate it.  Help, please.

  • Move video video cam on the DRIVE - best method

    I want to move/copy on 15 Hi8 fron of Hi8 (Sony HandyCam DCR TRV-320) video tapes to a digital format for example AVI or what would work well. My Sony camera still works, I have several fast computers with firewire connections. I want to record video