MySQL Error#: 1045 Not Explained

I have had this error, and found a zillion posts on the web
asking for a solution, and never found a solution. But I've kind of
figured out what's going on and I'd like to know exactly how and
why it does what it does.
I have a Linux box lemon running MySQL, and a Windows XP
client orange. From orange I can connect using mysql command line
client (mysql -u root -p -h lemon mydatabase). I can also connect
using ODBC (by creating an ODBC connection in Control Panel and
testing the connection).
When I try to connect to lemon/root/password in Dreamweaver
CS3 by creating a MySQL Connection it fails with...
MySQL Error#: 1045
Access denied for user root@lemon (using password:YES)
(This is what a ton of posts complain about with lame
responses like - you got the password wrong).
So what I discover is that in Dreamweaver I have to set up
the connection using localhost instead of lemon. (NOTE: Dreamweaver
is running on orange - not lemon, where the MySQL server is
running!)
So I wonder - what the!!! The database is not on localhost.
So I fiddle a bit and find that if I go into Manage Sites and
change the name of the FTP host under Testing Server that the
connection to localhost breaks - so somehow the MySQL connection is
being made using the FTP host.
How is Dreamweaver making a MySQL connection using lemon as
the FTP server and localhost (orange) as the MySQL server, when it
is lemon that is the MySQL server???

.oO(nevdelap)
>I have had this error, and found a zillion posts on the
web asking for a
>solution, and never found a solution. But I've kind of
figured out what's going
>on and I'd like to know exactly how and why it does what
it does.
>
> I have a Linux box lemon running MySQL, and a Windows XP
client orange. From
>orange I can connect using mysql command line client
(mysql -u root -p -h lemon
>mydatabase). I can also connect using ODBC (by creating
an ODBC connection in
>Control Panel and testing the connection).
You know that working on a DB as root is a bad idea? You
should create a
normal account for the daily work and login as root only for
maintenance
or configuration stuff.
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16575#userAccount
> When I try to connect to lemon/root/password in
Dreamweaver CS3 by creating a
>MySQL Connection it fails with...
>
> MySQL Error#: 1045
> Access denied for user root@lemon (using password:YES)
>
> (This is what a ton of posts complain about with lame
responses like - you got
>the password wrong).
>
> So what I discover is that in Dreamweaver I have to set
up the connection
>using localhost instead of lemon. (NOTE: Dreamweaver is
running on orange - not
>lemon, where the MySQL server is running!)
>
> So I wonder - what the!!! The database is not on
localhost.
Every machine is a localhost from its own point of view.
Since the DB
and probably your scripts both run on lemon, from their point
of view
that machine is the localhost and PHP has to open a
connection to
'localhost' in order to connect to the DB. This is the most
common setup
if PHP and MySQL run on the same machine.
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16575#dbconn
But one thing confuses me. You said you can connect from your
Windows
box, using the command line:
mysql -uroot -p -hlemon mydatabase
Does the same command also work if invoked directly on the
Linux box or
does it cause an "Access denied"?
> So I fiddle a bit and find that if I go into Manage
Sites and change the name
>of the FTP host under Testing Server that the connection
to localhost breaks -
>so somehow the MySQL connection is being made using the
FTP host.
>
> How is Dreamweaver making a MySQL connection using lemon
as the FTP server and
>localhost (orange) as the MySQL server, when it is lemon
that is the MySQL
>server???
FTP is used to transfer the scripts to the server.
Micha

Similar Messages

  • MySql Connection window-----says MySql Error#1045

    I have made a db on my server (hostgator) and I have connected to the db through phpmyadmin. I am trying to connect to MySql through dreamweaver so I can make the index.php file and create some forms and tables so I can link my php file to my db. I can make a connection with the host as I have already uploaded some files there. When I go to the databases section in the control panel and I go to add new connection I have tried everything to get it too connect. I get an error of MySql Error#1045 Acess denied for user 'XXX@localhost' (using password "YES") Please help hours have gone by:(

    Well I know this is probably NOT going to help but here is what I've learned so far:
    1. It happens with most all the sites using cPanel as control panel.
    2. Some thimes this is caused cause in the cPanel, right next to PhP MyAdmin there is a box called remote mysql, you need to be sure that your ip addy is there so you can connect remotely.
    3. if you can connect through the mysql gui, then you are free to connect trhough DW... However sometime (most of the times lately) that wont work...
    try what i said and i'll keep on checking why this is happening... btw i've asked suppont on four differente hositngs, and cpanel itself.
    Vampmaster.

  • Mysql error / install problems

    after following the wiki entry: LAMP
    I get error:
    $ mysql
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    I'm out of luck here, does anyone have suggestions for where to look?
    .murkus

    How do you try to connect? Seems root is not allowed to connect from host "localhost" without the passwd..
    This fails:
    mysql -u root
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    But this does well:
    mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or g.
    Your MySQL connection id is 2 to server version: 4.1.14
    Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
    mysql>

  • When connecting to a database, dreamweaver gives the error message [MySQL Error

    When I try to connect my MySQL database into dreamweaver, I insert all of the information (name, server, username, password), and when i click on select database, it reads:
    MySQL Error#:1045
    Access denied for user 'mresnik_mresnik'@'192.185.5.169' (using password: YES)
    I am 100% sure that The details entered including username and password are correct, as I have contacted hostgator.com and they have stated that they can connect, and they advised that it may be an issue with either my files or dreamweaver.
    Any help would be very much appreciated.

    Login.php code:
    <?php require_once('Connections/drama_database.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['UserName'])) {
      $loginUsername=$_POST['UserName'];
      $password=$_POST['Password'];
      $MM_fldUserAuthorization = "userlevel";
      $MM_redirectLoginSuccess = "home.php";
      $MM_redirectLoginFailed = "loginfail.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_drama_database, $drama_database);
      $LoginRS__query=sprintf("SELECT username, password, userlevel FROM users WHERE username=%s AND password=%s",
      GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $drama_database) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
        $loginStrGroup  = mysql_result($LoginRS,0,'userlevel');
        if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;         
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];   
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;  
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    <html>
    <title>Drama Database - Login</title>
    <head>
        <link href="images/favicon.ico" rel="icon" />
    </head>
    </html>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <form ACTION="<?php echo $loginFormAction; ?>" id="loginform" name="loginform" method="POST">
    <!--visual -->
    <br>
    <br>
    <br>
    <div align="center">
      <!--ACS Logo -->
      <img src="images/logo_acs_egham.gif" width="387" height="59" /><br>
    <!--Drama Logo -->
    <br>
    <img src="images/bglogin.jpg" alt="Acs-Egham International School" width="246" height="153">
    <br>
    <!--Title -->
    <h2>Drama Database Login</h2>
    </center>
      </div>
      <table width="154" border="0" align="center">
        <tr>
          <td width="148">Username:<br />
            <span id="sprytextfield1">
            <label for="UserName"></label>
            <input type="text" name="UserName" id="UserName" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr>
          <td> </td>
        </tr>
        <tr>
          <td>Password:<span id="sprytextfield2"><br />
            <label for="Password"></label>
            <input type="password" name="Password" id="Password" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr>
          <td> </td>
        </tr>
        <tr>
          <td align="center"><input type="submit" name="LoginButton" id="LoginButton" value="Login" /></td>
        </tr>
        <tr>
          <td> </td>
        </tr>
      </table>
    </form>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
    </script>

  • Error 1045 (DBK90 from IOtech)

    Hi
    The problem
    (DaqLab2001_Series) driver from ((ftp://ftp.mccdaq.com/downloads/iotech_software/) downloaded und installed.
    (DBK90 Thermocouple Input.vi) from the folder (C: \ Program Files \ LabView DaqIO Support \ Howto and Example VI's \ DBK Examples) was opened.
    (Main Channel Unit) was placed
    (Device name) was given.
    Run, then comes the error (code 1045) (Unknown System Error in DaqIO DBK90 Chan Config.vi-> DBK90 Channel Configuration.vi-> DBK90 Thermocouple Input.vi)
    DBK80 has in Labview2009 worked with out any Errors, (DBK80 Thermocouple Input.vi) from the folder (C: \ Program Files \ DaqIO LabView Support \ Howto and Example VI's \ DBK Examples)
    DBK90 in DASYLab V11 works also with any Problems.
    What should I do
    thanks

    drennan_uk wrote:
    Hi all,
    I'm having problems connecting to my remote database from dreamweaver. I contacted my hosting company and they said they cannot see any hits from my IP and to try another app. I downloaded sequel pro and it connects straight away, but I've been using DW for years (for static sites) and really wanna get this working. This is the first time i've used a database in DW so I might be missing something. DW throws up the error: MySQL Error#: 1045. Access denied for user 'xxxx'@'xxxx.net' (using password:YES). Does anyone know why one app would connect when DW won't? Does something need flushing or will deleting DW prefs do anything?
    I also sometimes get the message 'waiting for server', which times out, instead of the 1045 error. Does this indicate a DW problem since the errors are inconsistent?
    thanks guys
    First thing that jumps out at me is "[email protected]".  Are you trying to connect to your remote server or your testing server?  For purposes of development in DW you should make a local copy of your database and connect to the local database as opposed to a remote database.  Much more efficient and doesn't effect server load at all.
    If the testing server (WAMP, MAMP, XAMPP, IIS) is running locally and you are using localhost with the username and password it should work fine.  If you use the default installation for those packages it is possible that the applications are running on a different port in which case your host is: localhost:port .

  • Error 1045 mysql new installation on OSX 10.9.3

    after new mysql-5.7.4-m14-osx10.7-x86_64 installation,
    I typed "/usr/local/mysql/bin/mysql" I got "ERROR 1045 (28000): Access denied for user 'username'@'localhost' (using password: NO)"
    I type "ps auxww | grep mysql", I got"
    _mysql            224   0.0  6.6  3188416 552216   ??  S     7:58pm   0:01.50 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/Dongs-MacBook-Pro.local.err --pid-file=/usr/local/mysql/data/Dongs-MacBook-Pro.local.pid --socket=/var/mysql/mysql.sock --port=8888
    root               65   0.0  0.0  2461016   1064   ??  Ss    7:58pm   0:00.04 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
    dongzhong         594   0.0  0.0  2432784    604 s000  S+    8:56pm   0:00.00 grep mysql"
    I type "sudo nano /Library/LaunchDaemons/com.mysql.mysql.plist", I got
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-$
    <plist version="1.0">
      <dict>
        <key>KeepAlive</key>
        <true/>
        <key>Label</key>
        <string>com.mysql.mysqld</string>
        <key>ProgramArguments</key>
        <array>
        <string>/usr/local/mysql/bin/mysqld_safe</string>
        <string>--user=mysql</string>
        </array>
      </dict>
    </plist>
    I also have turned on my internet sharing but still access denial. Please help me

    Take a look at this article. 
    http://www.howtoforge.com/reset-forgotten-mysql-root-password
    I tried this with mysql 5.7.4 (Milestone 14) and OS X 10.10 (Yosemite) and it works.  It should work on 10.9 too (though I haven't tried it on Mavericks).
    5.7.4 installs with a randomly generated password for mysql root.  On Linux RPM installs, this initial password is stored in /etc/mysql/.mysqlsecret - which you are supposed to use for the initial login.  Couldn't find it's equivalent anywhere on OS X.  Will file a bug report with MySQL.

  • Xsl variable error not explained in earlier thread

    Steve,
    Thank you so much for your response to my earlier thread, it is difficult to focus on what I am supposed to be doing today, with all the sad news from the east coast.
    Re-visiting this variable issue one more time to try understand what is going wrong with this file.
    Below is a shortened version of the file plus the output from parsing it with xalan, saxon and oracle's two latest versions. As you see it parses fine with xalan and saxon but errors out with oracle's latest version. Should this be looked at again perhaps?
    xml file
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="UtilDataForm.xsl"?>
    <page>
    <dataform target="News.xsql" submit="SubmitButtonTitle">
    <item type="checkboxlist" name="nameOfCheckBoxList" label="CheckBoxList">
    <ROWSET>
    <ROW><VALUE>4</VALUE><DISPLAY>This</DISPLAY></ROW>
    <ROW><VALUE>5</VALUE><DISPLAY>That</DISPLAY></ROW>
    <ROW><VALUE>6</VALUE><DISPLAY>The Other</DISPLAY></ROW>
    </ROWSET>
    </item>
    </dataform>
    </page>
    xsl file
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!--
    | UtilDataForm.xsl: Transform <dataform> structural info
    | into a data-bound HTML Form
    +-->
    <xsl:template match="dataform">
    <xsl:variable name="form-target">
    <xsl:choose>
    <xsl:when test="@target">
    <xsl:value-of select="@target"/>
    </xsl:when>
    <xsl:when test="./target">
    <xsl:value-of select="./target"/>
    <xsl:if test="*">?</xsl:if>
    <xsl:for-each select="*">
    <xsl:value-of select="name(.)"/>
    <xsl:text>=</xsl:text>
    <xsl:value-of select="."/>
    <xsl:if test="position() != last()">
    <xsl:text>&;</xsl:text>
    </xsl:if>
    </xsl:for-each>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text> </xsl:text>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <center>
    <form method="POST" action="{$form-target}">
    <xsl:for-each select="item[@type='hidden']">
    <input type="hidden" name="{@name}" value="{normalize-space(.)}"/>
    </xsl:for-each>
    <table>
    <xsl:for-each select="item[@type != 'hidden']">
    <tr>
    <th align="right"><xsl:value-of select="@label"/></th>
    <td>
    <xsl:choose>
    <xsl:when test="@type='text'">
    <input type="text" name="{@name}"
    value="{normalize-space(.)}">
    <xsl:if test="@size">
    <xsl:attribute name="size">
    <xsl:value-of select="@size"/>
    </xsl:attribute>
    </xsl:if>
    </input>
    </xsl:when>
    <xsl:when test="@type='password'">
    <input type="password" name="{@name}"
    value="{normalize-space(.)}">
    <xsl:if test="@size">
    <xsl:attribute name="size">
    <xsl:value-of select="@size"/>
    </xsl:attribute>
    </xsl:if>
    </input>
    </xsl:when>
    <xsl:when test="@type='textarea'">
    <textarea class="code" rows="5" name="{@name}">
    <xsl:if test="@size">
    <xsl:attribute name="cols">
    <xsl:value-of select="@size"/>
    </xsl:attribute>
    </xsl:if>
    <xsl:value-of select="normalize-space(.)"/>
    </textarea>
    </xsl:when>
    <xsl:when test="@type='list'">
    <xsl:variable name="default" select="default"/>
    <select name="{@name}">
    <xsl:for-each select="ROWSET/ROW">
    <option value="{VALUE}">
    <xsl:if test="VALUE=$default">
    <xsl:attribute name="selected"/>
    </xsl:if>
    <xsl:value-of select="DISPLAY"/>
    </option>
    </xsl:for-each>
    </select>
    </xsl:when>
    <xsl:when test="@ty pe='checkboxlist'">
    <xsl:variable name="name" select="@name"/>
    <xsl:for-each select="ROWSET/ROW">
    <input type="checkbox" name="{$name}" value="{VALUE}">
    <xsl:if test="SELECTED='Y'">
    <xsl:attribute name="checked"/>
    </xsl:if>
    </input>
    <xsl:value-of select="DISPLAY"/>
    </xsl:for-each>
    </xsl:when>
    </xsl:choose>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    <input type="submit" value="{@submit}"/>
    </form>
    </center>
    </xsl:template>
    </xsl:stylesheet>
    xalan output
    <?xml version="1.0" encoding="UTF-8"?>
    <center><form action="News.xsql" method="POST"><table><tr><th align="right">CheckBoxList</th><td><input value="4"
    name="nameOfCheckBoxList" type="checkbox"/>This
    <input value="5" name="nameOfCheckBoxList"
    type="checkbox"/>That
    <input value="6" name="nameOfCheckBoxList" type="checkbox"/>The Other
    </td></tr></table><input
    value="SubmitButtonTitle" type="submit"/></form></center>
    saxon output
    <?xml version="1.0" encoding="utf-8"?>
    <center><form method="POST" action="News.xsql"><table><tr><th align="right">CheckBoxList</th><td><input type="checkbox"
    name="nameOfCheckBoxList" value="4"/>This
    <input type="checkbox" name="nameOfCheckBoxList" value="5"/>That
    <input
    type="checkbox" name="nameOfCheckBoxList" value="6"/>The Other
    </td></tr></table><input type="submit"
    value="SubmitButtonTitle"/></form></center>
    oraxsl with xmlparserv2.jar dated 06/19/01 10:09
    <?xml version = '1.0'?>
    <center><form method="POST" action="News.xsql"><table><tr><th align="right">CheckBoxList</th><td><input type="checkbox"
    name="nameOfCheckBoxList" value="4"/>This
    <input type="checkbox" name="nameOfCheckBoxList" value="5"/>That
    <input
    type="checkbox" name="nameOfCheckBoxList" value="6"/>The Other
    </td></tr></table><input type="submit"
    value="SubmitButtonTitle"/></form></center>
    oraxsl with xmlparserv2.jar dated 08/04/01 20:24
    file:/W:/workorders/util/UtilDataForm.xsl: XSL-1031: (Error) Variable not defined: 'name'.
    oracle.xml.parser.v2.XPathException: Variable not defined: 'name'.
    Error occurred while processing W:\workorders\util\FormTest.xsql: file:/W:/workorders/util/UtilDataForm.xsl: XSL-1031:
    (Error) Variable not defined: 'name'.
    Thank you again for your help!
    Ola Kvalvaag
    IS Administrator
    CT&E Environmental Services Inc.

    Yeah!!! It works. Turned out to be a combination of DrKlap's and Martisan's suggestions -- had to change var frame's declaration from JFrame to MyFrame:
        MyFrame frame;Next, created the external class -- but again changed JFrame references to MyFrame:
    public class ShowOnExit extends WindowAdapter {
    //   JFrame aFrame;
       MyFrame aFrame;
       public ShowOnExit(MyFrame f) {
          aFrame = f;
       public void windowClosing(WindowEvent e)
          System.out.println("Why me???" + aFrame.textArea.getText()); // aFrame here not frame !!!
    }This worked. So looks like even though the original code added a WindowListener to 'frame', the listener didn't couldn't access frame's methods unless it was explicitly passed in as a parameter. Let me know if that's wrong.
    Thanks again, all.

  • HT201210 Can anyone tell me exactly what Error 23 is?! WHY does Apple assign an error # but then NOT explain what that is?! I'm trying to restore an iPhone 3G. Please help! Thx.

    I CANNOT restore my iPhone, so now I'm stuck with a useless iPhone because I can't complete Restore - because Error 23 keeps coming up! Ugh...it bugs the heck out of me, that Apple assigns an error number without explaining (a) what that IS, (b) taking or redirecting to a SPECIFIC troubleshoot page for THAT error. I've wasted lots of time doing all the stuff already suggested but Error 23 persists! Please help or I've just lost my lovely old-design 3G, which I really am loathe to give up for one of those ugly new boxy too-long slim things... (Which cost $200, 2 boot!)

    Thx BUT =as-said, I've tried ALL the suggestions - including reading through the link you just suggested/posted (but just for good measure, i've just re-read thru it again!). I noticed from this list the first time i read thru it, that Error 23 didn't appear anywhere on this list of various (numerous!) error numbers. So/ergo, i still don't know (a) what exactly this error IS, (b) how to fix/get past/resolve it.
    I don't have an Apple store anywhere near me. Even if I did, I wonder whether they would (a) be willing to (b) able to fix it @ the so-called Genius bar? Any thoughts on this? (Obviously, if there were an Apple store nearby, I'd go there & try; as-is, it would entail an extra trip & an expense costing as much as buying a new iPhone!)

  • "Error: Document not found (WWC-46000)" with a form based on a table with blob item

    Hi all,
    I have to manage a table-based form. One of the fields of the table is BLOB and the corrisponding field of the form is HIDDEN.
    When I push the INSERT button all works well but when I try to UPDATE I get "Error: Document not found. (WWC-46000)".
    Have you some suggestions ?
    Thanks,
    Antonino
    p.s. Oracle Portal 3.0.7.6.2 / NT
    null

    Sorry, I think I did not explain well my problem.
    Imagine this simple table:
    key number;
    description varchar2(50);
    image blob;
    I need to make a form that contains the corresponding "key" field and the "description" field but not the "image" one. I don't want to allow the end user to upload images!
    When I insert a row the form works well and in the "image" field of the table an empty blob or null (now I don't remember) is stored: that's ok.
    Now imagine I want to change the value of the "description" field. I submit a query for the right key, I type a new value for the description and finally I push UPDATE button but....an error occours.
    I think this error is related with the Blob item of the table but I'm not sure.
    Thanks again,
    Antonino
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Dmitry Nonkin([email protected]):
    Antonino,
    If I understood the problem correctly:
    The form's item type for BLOB column used to upload content cannot be hidden, that's why we have a special item type FileUpload(binary).
    Thanks,
    Dmitry<HR></BLOCKQUOTE>
    null

  • Error: Could not continue scan with nolock due to data movement, DBCC proccache will clear the probelm

    SQL Server: 2008 R2 SP2
    Before describing my problem, I have gone via the forum, there is no view or functions inside my stored procedure
    When running a particular stored procedure inside crystal report, the error " Could not continue scan with nolock due to data movement" comes once every few weeks. After I clear the query cache plan, it works again for few weeks and the problem
    comes again. During these few weeks, there is no restart or query plan clearing.
    If I run the stored procedure inside SSMS, where the SQL statement is copied and pasted from SQL profiler during crystal report run, there is no error.
    I discovered running in SSMS and crystal report generate 2 different query plans even I copied the SQL from SQL profiler, I have actually saved the query plans. Unfortunately, this forum does not accept attachments, or otherwise I will post my query plans
    here.
    There is one thing I notice about the query plan is during nested loop operation, there is a warning "no join predicate". I don't use any views or UDF in the statement, nor did I use pre-1992 ANSI join syntax. However, I did use table variables.
    My guess is whether this will cause " Could not continue scan with nolock due to data movement", after I clear the cache, I run crystal report again, and I look at the plan again, the "nested loop no join predicate" warning is gone.
    Running this stored procedure took 1 second maximum, even when this error is popping up, it pop up within 1 second.
    DBCC checkdb has been run
    The same stored procedure running by crystal report in a SQL 2008 (non r2) live environment has no problems, so I am thinking this is R2 specific problems.
    The "nested loop no join predicate" error SQL statment is below, no views, no udf, but table variables
    INSERT @ChequeAccount
    SELECT        PS.PaySummaryID, PS.EmployeeID, PS.CostCentreID,
                (PS.GrossPay    + PS.LumpSumA + PS.LumpSumB    + PS.LumpSumD+ PS.LumpSumE+ PS.ETP+ PS.PaymentsAfterTax    - PS.DeductionsAfterTax  
     - PS.Tax- PS.ETPTax    + PS.TaxRebate) * -1 AS Amount,
                CGLM.GLAccountID
    FROM Pay_Summary PS JOIN Input_Sheet ISH ON PS.InputSheetID = ISH.InputSheetID  AND  ISH.PayrollID = @binPayrollID   
    AND PS.PaySummaryID NOT IN (SELECT PaySummaryID FROM @ChequeAccount)
    JOIN Payroll P ON P.PayrollID = ISH.PayrollID AND P.EmployerID = @binEmployerID
    JOIN CustomGLFixMapping CGLM ON CGLM.EmployerID = P.EmployerID AND CustomGLFixMappingNameID = 1 AND CGLM.CostCentreID IS NULL

    The error Could not continue scan with nolock due to data movement can occur when you use the NOLOCK table hint, or use the command SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED. That is, so-called dirty reads. The error is not related to the
    query plan per se, but when scanning a table, the storage engine will use an IAM scan rather than following the clustered index. If there is simultaneous activity, the storage engine may detect this and abort the operation to avoid returning incorrect data.
    Or it may not detect it, and return uncommitted data or fail to return committed data.
    All of these effects are transitory and they will not show up when you are alone on the system, only when there is concurrent activity in one or more of the tables in the query.
    Using dirty reads is a risky business for the reasons explained above, and it takes careful analysis to understand whether you can live with the errors you can get from a particular query. The error about data movement can be handled: trap the error and
    resubmit the query. But what about spurious incorrect results?
    If you believe locking to be a problem, you should consider setting the database to READ_COMMITTED_SNAPSHOT
    and take out all use of READ UNCOMMITTED/NOLOCK. When the database is in READ_COMMITTED_SNAPSHOT, readers read from the snapshot and only see committed data without blocking writers. This has some other effects like requiring a bigger tempdb,
    and there is a risk for other types of concurrency errors, but they tend to be smaller risks.
    I discovered running in SSMS and crystal report generate 2 different query plans even I copied the SQL from SQL profiler,
    This is because SSMS by default runs with SET ARITHABORT ON. I discuss this in more detail in this article on my web site:
    http://www.sommarskog.se/query-plan-mysteries.html
    However, as I said, this problem is not related to the query plan as such, although some query plans are more susceptible to this error than others. (All plans are suscpeitble to produce incorrect results).
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Pricing errors are not cleared after fixing the master data

    Hi All,
    Kindly go through the issue explained below.
    Pricing is determined properly in transaction level(Oppt) when the master data is correct. cool.  
    System shows pricing error (Mandatory condition 0PR0 is missing, Pricing could not be determined) when price(condition record) is not maintained in product. This is also fine.  Now the issue is, Pricing errors are not going away from Opportunity even after the master data(product) fixed with maintaining pricing.
    Scenario     :  Opportunity is saved with pricing errors. 
    Analysis     :  Price or/and Sales area are not maintained in Product that is maintained in Oppt.  That is why this error occurs.  So, we have maintained the Sales area/Price(condition record) in product. Now master data is corrected.
    Expected result: After maintaining the price/sales area in product, the errors should go off from the created Opportunities and pricing should be determined properly.
    Actual result: When we create a new opportunity with the same product, pricing is determined.  But the errors are not going away from the already created opportunity transactions.
    Please let me know if this scenario is not clear to understand. 
    Please help with your inputs.  Thank you for your time.
    Regards,
    Maddy

    Hi Luis,
    Thank you very much for your reply.  Could you please help me where is the button 'Redermine Pricing' available?  I have checked in Opportunity transaction but failed.
    Regards,
    Maddy

  • Internal error: data not found message

    Every time I try to upload pics I get this message:
    internal error: data not found
    How can I fix this problem? Thank you so much, Stacey

    Please explain in detail about the process you are trying to perform...Do tell if any settings or any change in preferences you have made. How many files you rae trying to upload. Your account is not expired and you are admin etc.
    -Garry

  • Dreamweaver CS5 mysql error

    Hi Im using the new Dreamweaver CS5, apache and php that the in the mac and mysql and I find a problem trying to make a connection in dreamweaver to the database the error is:
    MySQL Error: # 2002
    no such file or directory
    does anyone knows what could happening?

    Thanks for your time Ken and I have uninstalled and reinstalled but its still the same.  The only thing I can think of is I installed zone alarm and since then its not work.

  • Error : URL not called due to an error

    Hi All,
             I developed a Web Dynpro ABAp application and tested it through a user with SAP_ALL Profile, and am getting the following error message:
    The URL http://sileccdev053.simondelhi.com:8000/sap/bc/webdynpro/sap/zadobe was not called due to an error.
    Note
    The following error text was processed in the system DEV : WebDynpro Exception:
    The error occurred on the application server SILECCDEV053_DEV_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: CONSTRUCTOR of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CADOBE==================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CADOBE==================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program CL_WDR_VIEW_ADAPTER===========CP
    Method: IF_WDR_NW7_DELTA_RENDERER~CALCULATE_DELTA_BLOCKS of program CL_WDR_VIEW_ADAPTER===========CP
    Method: IF_WDR_NW7_DELTA_RENDERER~CALCULATE_DELTA_BLOCKS of program CL_WDR_WINDOW_CONTENT_ADAPTER=CP
    Method: SET_CONTENT of program CL_WDR_NW7_INT_WIN_ADAPTER====CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DEV in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server SILECCDEV053_DEV_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server SILECCDEV053_DEV_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 300 -u: PWCABAP -l: E -s: DEV -i: SILECCDEV053_DEV_00 -w: 0 -d: 20110215 -t: 111729 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    In ST22 we get the following:
    WHAT HAPPENED:
    The exception 'CX_WD_GENERAL' was raised, but it was not caught anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
      'CL_WD_ADOBE_SERVICES==========CP' has to be
    terminated.
    ERROR ANALYSIS:
    Error analysis
        An exception occurred which is explained in detail below.
        The exception, which is assigned to class 'CX_WD_GENERAL', was not caught and
        therefore caused a runtime error.
        The reason for the exception is:
        WebDynpro Exception:
        The occurrence of the exception is closely related to the occurrence of
        a previous exception "CX_FP_API_REPOSITORY", which was raised in the program
         "CL_FP_WB_HELPER===============CP",
        specifically in line 7 of the (include) program
         "CL_FP_WB_HELPER===============CM00V".
        The cause of the exception was:
        Object ZADOBE does not exist
    Please Suggest something.
    Cheers!!!
    Umang

    Hi Umnag,
    I think this application is using any Adobe Form and there is any issue wth the form interface.
    Please check syntax of the Adobe form as well as Form Interface. The Interface methods are throwing some exception which is not handled in the CL_WD_ADOBE_SERVICES.
    You can put a break-point in the costructor of above class and pin-point the issue yourself.
    Hope this helps!
    Reagrds
    Vineet

  • Error target not found base-level failed to install the packages

    Im trying to install arch on my Virtualbox VM and its just returning:
    error target not found base-level failed to install the packages to new root
    What do I do? I have selected the right mirrors, pinging google, my own VPS's and a few other servers and they all pinged fine. Any ideas on whats up? Think my VPN's IP has been blocked and thats why I cant download anything? I have tried pacman -Ssy and it worked fine but still no.

    Please read the following and follow the advice included:
    https://bbs.archlinux.org/viewtopic.php?id=57855
    With that, be sure to clarify whether the typo was just here on the forum, or whether it was also in your original command.  If it was in your original command, that would explain your results.

Maybe you are looking for

  • Adobe Reader security update to 9.3.1 not working.

    I have updated adobe reader to 9.3.1 but in Secunia PSI it's still being reported as insecure. I uninstalled adobe reader completely, cleared all traces from the registry, and reinstalled 9.3.0, and let it check for updates. it said there weren't any

  • What Preset Should I Use

    I am using a Panasonic SDR-H80 camcorder. And i was wonder what would be the best preset to use for editing my vid. With my camcorder i am recording with 16:9 so i would like to have a 16:9 preset. ~~Premiere Details~~ Premiere Pro CS4 - purchased La

  • How to determine if a version of a SPD workflow is already running?

    I have many workflows that start on change which are currently running fine. The issue is when I modify the workflow, I end up with multiple copies of the workflow (previous & current versions) running. Is there a built in value that I can use as a c

  • Gathering SQL Server info

    Hi All I am auditing SQL Server instances and I need a query to retrieve the following information: Computer Name SQL Server Instance Name SQL Server Product Name (Example: Microsoft SQL Server 2005) SQL Server Version SQL Server Service Pack Number

  • Locations in calendar events

    Why is it when I enter a calendar event in my exchange calendar locations aren't recognized but when I use any other non-exchange calendar when I enter an event and enter an address under location it shows the locations on a map?