Yielding is not allowed within a C or metamethod call

The way I'm developing my plug in is that I'm creating individual modules, testing those modules and then integrating the modules into my plugin. The individual modules work. However, I have a problem when I try to integrate.
I'm using an anonymous function to call a function when a user presses a button. That function calls another lua file (is that a module?) If I place the require statement at the top of the file I receive the Yielding is not allowed within a C or metamethod call error.
However, if I place the require statement within the function that specifically requires accessing the lua file then I don't receive the error. Clearly, I don't understand what's going on. Can anyone explain what is happening here?
Thanks!

Hey Rob,
Thanks for helping me with this. Since this is so new to me, I'm all over the place and I'm having trouble even understanding what my problems are :-)
Anyway, here's where I'm at:
I have a button in sectionsForTopOfDialog. I have changed the action to be action = function() .... end
When I press the button the function is called. The problem is when I call the LrHttp.post function. That's when the yield error is being thrown.

Similar Messages

  • Subquery is not allowed within FILTER arguments

    In a report I need to show two columns of same type but with values obtained with different criterias.
    The criterias are difined in 2 different reports
    Report
    Month, ColumnA , ColumnB, Number_of_Nights
    ColumnA refers to the actual column Member_id= criteria are defined with REPORT1 (where joined date between X and Y and market code=Z)
    ColumnB refers to the actual column Member_id=criteria are defined with REPORT2 (where joined date between A and B and market code=C)
    I can not use on ColumnA the normal filter and than filter based on results from another request, because it would apply to columnB as well.
    I need therefore to use the filter from the "Edit Formula" screen and than filter on a column and select REPORT1 for ColumnA and REPORT2 for ColumnB.
    This approach doesn't seem to work because I return :
    [nQSError: 10058] A general error has occurred. [nQSError: 22033] Subquery is not allowed within FILTER arguments. (HY000)
    How do you manage such reports?
    Thanks!!
    Edited by: user6185307 on 14.05.2012 06:00
    Edited by: user6185307 on 14.05.2012 06:01
    Edited by: user6185307 on 14.05.2012 06:02

    Try creating the report in one go...
    Instead of creating a subquery, and then a subquery using that subquery, and finally a "master" query, create the "master" query first, and within the conditions, create your subquery as you go along.
    I'm not sure whether this would work, as I don't currently have access to Discoverer!
    Alternatively, subqueries are rarely the most efficient way of processing information, so consider writing a PL/SQL function to do some of the work for you.

  • SET CHAINED command not allowed within multi-statement transaction

    Hi,
    i need to do one transaction and i am setting autocommit(false) and
    once i am don ewith my 2 inserts i am settins it to true.
    i have like 20 thousand rows and when it is working fine for some inserts but after that it is throwing
    "SET CHAINED command not allowed within multi-statement transaction".
    can anyone please help me.

    You can find some information here:
    http://publib.boulder.ibm.com/infocenter/wsphelp/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rtrb_dsaccess.html
    it's first problem for sybase DB

  • Sybase:  SET CHAINED command not allowed within multi-statement transaction

    Hello,
    I'm getting the error message "SET CHAINED command not allowed within
    multi-statement transaction" for CMP Entity beans against Sybase.
    The errors appear in my jdbc.log in this order:
    010SM: This database does not support the initial proposed set of
    capabilities, retrying.) SQLState(010SM)
    JZ0EM: End of data.
    JZ0SJ: Metadata accessor information was not found on this database.
    Please install the required tables
    as mentioned in the jConnect documentation.
    010SL: Out-of-date metadata accessor information was found on this
    database. Ask your database administrat
    or to load the latest scripts.) SQLState(010SL)
    SQLState(ZZZZZ) vendor code(226)
    com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed
    within multi-statement transaction.
    I'm using JConnect 5.5, WebLogic 6.1 sp3, Solaris 8, and Sybase 11.
    The weird thing is, the app works on a box running 6.1 sp2 and Win2k
    Prof.
    Any ideas?
    Thanks!
    Dan

    Hi Dan,
    There is a patch for this sybase problem, please contact [email protected] to
    get a temp patch.
    sree
    "Dan Blaner" <[email protected]> wrote in message
    news:[email protected]..
    Hello,
    I'm getting the error message "SET CHAINED command not allowed within
    multi-statement transaction" for CMP Entity beans against Sybase.
    The errors appear in my jdbc.log in this order:
    010SM: This database does not support the initial proposed set of
    capabilities, retrying.) SQLState(010SM)
    JZ0EM: End of data.
    JZ0SJ: Metadata accessor information was not found on this database.
    Please install the required tables
    as mentioned in the jConnect documentation.
    010SL: Out-of-date metadata accessor information was found on this
    database. Ask your database administrat
    or to load the latest scripts.) SQLState(010SL)
    SQLState(ZZZZZ) vendor code(226)
    com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed
    within multi-statement transaction.
    I'm using JConnect 5.5, WebLogic 6.1 sp3, Solaris 8, and Sybase 11.
    The weird thing is, the app works on a box running 6.1 sp2 and Win2k
    Prof.
    Any ideas?
    Thanks!
    Dan

  • Private modifier not allowed within Interface

    hello,
    Can someone explain to me the logic behind not being able to declare a method's modifier as "private" when defining my Interface? When I do so the compiler generates the following error:
    "modifer private not allowed here at line 23, column 16"
    I change it back to public and its fine. One would think that the compiler would allow one to declare a method private within an Interface so long as the Implementation matches? Thanks in advanced.

    The idea behind interfaces is to provide information to the outside world about a class that implements the interface. Specifically, it lets the outside world know about certain methods that can be called on instances of that class. That way, a class can use instances of any class that implements a given interface rather than commiting itself to one specific implementation only.
    Since the outside world cannot see private methods, it doesn't make sense for interfaces to prescribe private methods in the first place. In fact, how a class deals with implementing a method is none of the interface's business...

  • Will not allow me to answer or make calls

     Whenever I try to make a call, or answer one, nothing happenes at all. Please help!!

    Hello jennyveyna
    Take a look at the article below to troubleshoot issues with making and receiving FaceTime calls. It will have you look at checking the Wi-Fi settings as well as looking to make sure that there are not blocked ports that could be limiting the connection.
    FaceTime for Mac: Troubleshooting FaceTime
    http://support.apple.com/kb/ts4185
    Regards,
    -Norm G.

  • Budget Modifications is not allowing

    Hi Gurus,
                  I need your help. When users are trying to modify the budget data through the portal it is not allowing and it is throwing message called
                 "The Range you are trying to modify is locked and therefore read-only"
                We dont have any issue till last week.Please advice me what is the issue and solution.
    Thanks
    Robert Courtney.

    Hi Clemens/Srinivas,
                                       As you said I already created user specific variable exits based on profit center. We already went go alive this last year October. I dont have any problems since from using but from last two weeks . Even we did reforecast the data as well a month back.
                                     I have full access even though it is not allowing. Please advice is there any alternate. Do you think is this problem with service pack, like we updated service packs to 13. We are using BW 3.5.
                                    Let me check the Matthias OSS Note no. Matthias your OSS note talks about the BI 7.0 but we are still in BW 3.5.
    Thanks
    Robert Courtney.
    Edited by: Robert Courtney on May 26, 2009 5:54 PM

  • I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content)

    I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.

    Another View.
    the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot.

  • "Your organization's policy does not allow you to share with this recipient." When trying to share calendar within our Org

    Hi,
    Wondering if this is a bug - we have serveral different accepted domains, and our users within our org might have different primary SMTP domains - some @nwtraders.com and some @contoso.com - as examples.
    We had a user today report an issue where they were trying to use the 'share calendar' button in Outlook 2010 and then typed in the SMTP address of someone in our org in the field of whom to share with, but that address had a different SMTP domain
    than the user's (but still in our org).  When she tried to send the sharing request she received a popup stating:
    Calendar sharing is not available with the following entries because of permission settings on your network:
    <intended smtp address>: Your organization's policy does not allow you to share with this recipient.
    I thought it might be related to freeform typing in the address - if I hand type out the address with a valid SMTP address within the same SMTP domain, and press send it works. 
    If I use the address picker, and pick the intended sharing recipient (who's has an SMTP domain that is different that the senders), it works fine. It only seems to have an issue when you manually type out the address and it's not in the same SMTP domain
    as you....
    Could this 'problem' be masked with setting up Sharing policy between all of our authoritative domains?
    Thanks

    Looks like Microsoft has an answer as to whether this is to be expected: http://support.microsoft.com/kb/983062/en-us In my research into this, the error you are receiving is a common thing people have run into and they are all using the solution MS lists
    in their KB article. Hope that helps.
    JAUCG - Please remeber to mark replies as helpful if they were or as answered if I provided a solution.

  • When I am trying to unlock my passcode it will not allow me to do so. Everytime I hit a key the voice within the phone tells me what button I am hitting. I can't get to the home page. Help!!!

    I cannot get into my phone. It is locked up and will not allow me to use my passcode because the four boxes are enclosed in a white rectangular box. Also, the voice tells me what buttons I am pressing. What is this???

    The device must be restored from the computer it was last synced with.
    iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    iOS: Understanding passcodes
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • "Content is not allowed in prolog" with SOAP Attachment

    I'm writing an application using SAAJ that sends a soap message to a servlet which responds with some information, including HTML which the client application will display. The HTML has to go into a SOAP attachment so the tags won't get confused with XML.
    I had the whole thing working with plain text sending within a normal node, and I only switched a few lines to make that text an attachment with HTML instead, but now I'm getting the exception "Content is not allowed in prolog" on the Client side when it tries to create the envelope from the SOAPMessage.
    Code for building answering SOAPMessage with attachment (Servlet to Client)
         public static SOAPMessage buildXML(Message newMessage){
              SOAPMessage msg = null;
              try {
                   MessageFactory msgFactory = MessageFactory.newInstance();
                   msg = msgFactory.createMessage();
                   // Create an envelope in the message
                   SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
                   msg.setProperty(SOAPMessage.WRITE_XML_DECLARATION, "true");
                   msg.setProperty(SOAPMessage.CHARACTER_SET_ENCODING, "UTF-8");
                   //Get hold of the the body
                   SOAPBody body = envelope.getBody();
                   SOAPElement soap_message = body.addChildElement("MESSAGE");
                   if (newMessage.message_type != null){
                        SOAPElement soap_message_type = soap_message.addChildElement("MESSAGETYPE");
                        soap_message_type.addTextNode(newMessage.message_type);
                   if (newMessage.questionID != 0){
                        SOAPElement soap_questionID = soap_message.addChildElement("QUESTIONID");
                        soap_questionID.addTextNode("" + newMessage.questionID);
                   if (newMessage.username != null){
                        SOAPElement soap_username = soap_message.addChildElement("USERNAME");
                        soap_username.addTextNode(newMessage.username);
                   if (newMessage.password != null){
                        SOAPElement soap_password = soap_message.addChildElement("PASSWORD");
                        soap_password.addTextNode(newMessage.password);
                   if (newMessage.message_text != null){
                        AttachmentPart soap_message_text = msg.createAttachmentPart("<html><body>" + newMessage.message_text + "</body></html>", "text/html");
                        soap_message_text.setContentId("MESSAGETEXT");
                        msg.addAttachmentPart(soap_message_text);
                        //SOAPElement soap_message_text = soap_message.addChildElement("MESSAGETEXT");
                        //soap_message_text.addTextNode(newMessage.message_text);
                   if (newMessage.sampleString != null){
                        SOAPElement soap_password = soap_message.addChildElement("SAMPLESTRING");
                        soap_password.addTextNode(newMessage.sampleString);
                   SOAPElement tmpEl;
                   for (int i=0; i<newMessage.numArrayUsed; i++){
                        tmpEl = soap_message.addChildElement("SAMPLEINT");
                        tmpEl.addTextNode("" + newMessage.sampleInt);
                   msg.saveChanges();
              } catch (Exception e) {
                   e.printStackTrace();
              return msg;
    You can see in the area where it adds MESSAGETEXT there are two clients commented out which work. The three lines above it are what changed to make it an attachment instead.
    Code in Client for recieving reply from Servlet
    SOAPMessage reply = connection.call(soap_msg, endpoint);
    System.out.println("\nReceived reply from: " + endpoint);
    reply.writeTo(System.out);
    System.out.println("");
    reply_msg = ProcessXML.parse(reply);This is the console output:
    Edit: These forums seem to be inserting an extra > before the <?xml version="1.0" encoding="UTF-8"?> line, but it doesn't exist in the code I'm pasting
    Received reply from: http://localhost:8080/kuj/CaseStudyServlet
    ------=_Part_2_371807.1137465625031
    Content-Type: text/xml; charset=UTF-8
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><MESSAGE><MESSAGETYPE>deliverquestion</MESSAGETYPE><QUESTIONID>1</QUESTIONID><USERNAME>zac</USERNAME></MESSAGE></SOAP-ENV:Body></SOAP-ENV:Envelope>
    ------=_Part_2_371807.1137465625031
    Content-Type: text/html
    Content-Id: MESSAGETEXT
    <html><body>This is an Array sort Question. You will be given 10 random integers and you must sort and return them in the order of greatest to least.</body></html>
    ------=_Part_2_371807.1137465625031--
    ERROR:  'Content is not allowed in prolog.'
    17-Jan-2006 02:40:25 com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
         at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:111)
         at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:39)
         at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:98)
         at com.zacwittedesign.xml.ProcessXML.realParse(ProcessXML.java:32)
         at com.zacwittedesign.xml.ProcessXML.parse(ProcessXML.java:26)
    (snip)And this is the beginning of the code for extracting the info from the SOAPMessage on the Client side:
    private static Message realParse(SOAPMessage msg){
              Message newMessage = new Message();
              try {
                   SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
                   SOAPBody body = envelope.getBody();
    (snip)It dies on SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
    Does anyone know what I'm doing wrong?

    I suppose I should also include the bit where the Servlet actually SENDs the resulting SOAPMessage
    SOAPMessage msg = ProcessXML.buildXML(outMessage);
    // try to send it
    try {
         response.setContentType("text/xml");
         msg.writeTo(response.getOutputStream());

  • Caption Does Not Allow Me to Type a Message

    How can I write a message in the caption boxes of the different templates within iPhoto when I click email to share a photo as it does not allow any text to be placed or typed into the caption boxes?
    Can someone suggest something to make this part of the iphoto programme work please?
    Thanks

    Restart the phone

  • I am trying to ask a question about iPhones, but it will not let me post - I get a message similar to this - you are not allowed to change the content.  Any help on this matter?

    I am trying to ask the following question: Just updated my iPhone5 to V 7.1.2 and can no longer print to my MFC 7860W from this phone.  I researched this issue on this forum and found answers from last October/November.....  Wary of downloading anything that was posted that long ago.  Wondering if there is anyway around this issue, with more recent information?  I was able to use this printer in the past by using Brother's iPrint App. 
    Thanks!!
    But when I hit post, I get an error message at the top - "you are not allowed to change this content"  Can anyone help me?

    I am assuming you got that message when attempting to post an old thread. The old post is probably locked/archived.
    FYI, posting on old threads usually yields no responses at all.
    I have requested that this post be moved to the iPhone forum where you might get assistance.
    Barry

  • Calendar:  Why not allow freedom to set alerts on any date/time?

    Hypothetically speaking...
    A man's wedding anniversary is every July 29th, however his memory has failed to prepare himself for the date appropriately for the last few years.
    He recently added this date to his Iphone Calendar app, however it only allows him to alert the event the maximum of 2 days before. Why not allow the freedom to set alerts weeks in advance? Or perhaps allow alerts to be provided at any date/time you feel necessary?
    I feel this scenario, and many varieties of others would benefit to the availability of this feature within the Calendar app.
    I also have one additional recommendation for the app. If an event is considered an ALL DAY event and an alert is set as a reminder, this alert will go off at midnight since it 'technically' is the beginning of the day. Quite annoying in my opinion. Lets also have the availability to set the alert notification time for ALL DAY events.
    I look forward to Apple recognizing these innovative ideas and providing these additions to their next upgrade! THANKS!
    Message was edited by: Drew Henderson

    I agree completely that this sort of freedom is needed.

  • The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?

    I have recently switched from a PC to a MacBook Pro.
    I have a large number of documents and photographs on a multiterrabite external drive, backed up on a second multiterrabite external drive.
    Both external drives are formatted for MacIntosh. This has been verified by agents at an Apple store and also at Best Buy in two different cities.
    This is the problem:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    Thanks!
    Roderick Guerry
    [email protected]

    Roderick Guerry wrote:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    No, this is a philosophical difference between Apple and Microsoft. Apple believes that it's dangerous to cut a file in case the user never pastes it; in that case the file is lost. Microsoft seems to not have this problem (if I remember Windows correctly) because they don't delete the originating file if it's cut but never pasted.
    Even though Macs have a lot of keyboard shortcuts, philosophically Macs have traditionally been mouse-first. This applies to file copy operations. In your case, what a Mac user would do is open the source window, open the destination window (on your second drive), and then Command-drag the selected files from the source to destination window. This is because a normal drag would leave the originals behind, while adding the Command modifier key tells OS X that this is a Move, not a Copy, so don't leave the originals behind.
    (In addition there are different rules for drag-copying within the same volume or between different volumes. If you drag between two folders on the same volume, the files are moved. If you drag between different volumes, the files are copied unless you hold down Command to delete the copies on the source volume.)
    Roderick Guerry wrote:
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    Two problems in this case. First, batch file renaming is not built into OS X unless you build something with Automator. However, there are many utilities that can do batch file renaming which you can find at macupdate.com or on the App Store. Since I work with media I often batch rename using one of the media managers I have lying around like Media Pro or Adobe Bridge (comes with Photoshop).
    iPhoto is a database front end designed to shield the file system from the consumer and let them concentrate on creativity and sharing. As such it is often a poor choice for managing files directly. When you "transferred the photographs" chances are you moved the originals, not the ones iPhoto edited which are stored in a hidden folder.
    Roderick Guerry wrote:
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    There will not be a way to do it exactly like Windows. As described above, there are ways to do it "the Mac way." If it is possible to remove judgment on which way is "better" you might find the Mac way to be acceptable, but of course sometimes we simply prefer what we're used to.

Maybe you are looking for