Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

An error occurred

Locked
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

An error occurred

Unread post by ruiascensao »

Hi,
I'm having the following error message:
"Error Reference: 988996b
An error occurred while running the following query:
DROP TABLE ___nu152937998313cb___".

There is no table ___nu152937998313cb___ .

Any idea why I'm having this error message?

Thank you.
BR
Rui
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: An error occurred

Unread post by massiws »

Rui,
can you better explain when you get this message?
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Re: An error occurred

Unread post by ruiascensao »

Hi massiws,

For example, in the Form "Custom Code"-> After Save I have some select/updates to the database like:

Code: Select all

$pa = "SELECT * FROM po WHERE po_id='$recordID'";
$porow = db_fetch_object($pa);
$inventoryID = $porow->po_inventoryid;
$postatus = $porow->po_status;
nuRunQuery($pa); 
When I save the form I get this king of message in the "Debug" interface from the administrator.
I check the database and I don't see that table.

Usually there is a lot of those tables when I run querys/ reports and now I don't see them anymore.
Any idea what's happening?

Thanks for you help!
BR
Rui
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: An error occurred

Unread post by massiws »

Rui,
maybe there is an error in your code:

Code: Select all

    $pa = "SELECT po_inventoryid, po_status FROM po WHERE po_id='$recordID'";
    // nuDebug($pa);    // uncomment this to debug in "Setup > Debug"
    nuRunQuery($pa);
    $porow = db_fetch_object($pa);
    $inventoryID = $porow->po_inventoryid;
    $postatus = $porow->po_status; 
Also, it's a better choice to get only two fields you need from database.

Hope this helps,
Max
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Re: An error occurred

Unread post by ruiascensao »

Hi Max,

Probably you are right!

Thanks for your help! I will test it. :-)
BR
Rui
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: An error occurred

Unread post by massiws »

.
Locked