Database error. The database error is: (CS) WIS 10901

Hi guys
i am using SAP BusinessObjects Edge BI 3.1 and created one report using webi, saved and exported to CMS when i opened it in Infoview it works fine but when i refresh it then i am getting below mentioned error:-
Refreshing a document in Web Intelligence Rich Client generates the following error message:
the database error text is (CS) " unexpected behaviour". (WIS 10901)
i am able to see the sql which is getting generated....
another problem i am getting if i am creating report using new web intelligence document and using efashion universe then report is showing blank with different colours....
Please help me to solve this problem..
thanks & Regards
Edited by: sap_@2011 on Aug 26, 2010 5:34 PM

Hello,
Have you checked your Universe connection to the database?
Did you create the report in Rich client on your machine and then export it? ODBC connections may be different. They need to be the same.
I am not sure what you mean regarding blank with different colors. Can you explain this a little better?
Thanks

Similar Messages

  • Error: the database could not be exclusively locked to perform the operation in sql server 2008 ?

    I am trying to rename the database but i am getting below exception while doing it-->
    Error: the database could not be exclusively locked to perform the operation.(Microsoft Sql Server,Error 5030)
    Thanks.

    as mentioned earlier by both these users just wait for all the connections to go and then try- it will succed
    or else if it is dev\Uat environment & you can kill the conenctions - make the changes (use this as last option)
    i was just wondering if you are connected to the same DB? If yes change your context to master(means connect to master DB ) and then issue this command.
    Sarabpreet Singh Anand
    Blog ,
    Personal website
    This posting is provided , "AS IS" with no warranties, and confers no rights.
    Please remember to click "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Exception Message=Unable to connect to the VMM database because the database is in an inconsistent state.

    Hello,
    I have a problem with SCVMM 2012 R2, it always gives error when tries to "Run the dynamic optimizer" process. The process starts automatically every 30mins. When I analyzed report.txt file I found error message:Exception Message=Unable
    to connect to the VMM database because the database is in an inconsistent state.Contact an experienced SQL administrator whenever this error occurs. In some cases, it may be necessary to restore the VMM database. If the problem persists, contact
    Microsoft Help and Support.
    NOTE: If I start the process manually, it completes without any errors.
    Any help would be appreciated

    I'm led to believe this is a bug in UR5 and I think it was a bug in VMM 2012 SP1 RTM.
    Our TAM says this will be fixed in UR6. We had to turn off Dynamic optimizer or we could have rolled back to UR4 but there were other bugs in UR4 which hurt us more.

  • New book! Physical Database Design: The Database Professional's Guide

    Morgan Kaufmann publishers have just released a new book on physical database design covering how to design indexes, range and hash partitioning, materialized views, storage layout, RAID, warehouse design and other physical design areas. The book covers Oracle and several other major databases. Lots of diagrams and examples. It's actually a really good book. An excellent book for people who design and administer databases.
    Available on Amazon and most other book sellers.
    Physical Database Design: The Database Professional's Guide to Exploiting Indexes, Views, Storage, and More
    by Sam S. Lightstone, Toby J. Teorey, Tom Nadeau
    Paperback, 448 pages, publication date: MAR-2007
    ISBN-13: 978-0-12-369389-1
    ISBN-10: 0-12-369389-6
    Series: The Morgan Kaufmann Series in Data Management Systems
    Link on Amazon:
    http://www.amazon.com/Physical-Database-Design-professionals-exploiting/dp/0123693896
    Link on the publisher's web site:
    http://www.elsevier.com/wps/find/bookdescription.cws_home/710637/description#description
    Comments on the book can be sent to: [email protected]

    how could we get the report of previous five years sale of the products.
    SELECT trunc(sale_date, 'YYYY'), sum(sale_qty)
    FROM   sales
    WHERE  sale_date >= add_months(sysdate-60)
    GROUP  BY trunc(sale_date, 'YYYY')
    suggest whether dropped Product name from the sale table as I already have a column prodid in it?Yes. Duplicated data is a Bad Thing. This is Rule #1 of the late Dr. Codd's 12 rules. These are the foundationstones of good relation design. Wikipedia has a good introduction to them.
    Cheers, APC

  • UNABLE TO FIX: "There was an error opening the database for the library"

    Like many others I have received the "There was an error opening the database for the library" error message today after a mid-Aperture processing session crash. However, unlike others I have been unable to fix the database...
    I have trashed all prefs, tried merging with a new library, tried repairing permissions, repairing the database, AND rebuilding the database, and have tried disk utility. Nothing works. Repair permissions did it's job, but didn't fix it. Repair Database doesn't even start to work and the Aperture utility quits immediately. Rebuild Database crunches away for about a minute then stops, and eventually quits itself with no error message.
    Aperture works fine with other databases, just not my main one. I'm worried that maybe it won't rebuild because the library is 500 gigs and I only have 200 gigs of free space, but that's pure speculation.
    Anybody out there experienced this same issue and come up with a solution? I know I can pull my masters out of the Aperture package, but I have 500 gigs of edits too... anyway to force rebuild the database by tossing the database files in the package or something?
    Thanks!

    Sorry, maybe I wasn't clear. Even with the 420 gig library on the drive I had 520 gigs free (1TB drive). In any case since I had made a duplicate of the library I began to pull files from the Aperture Library > Database directory and I seemed to have fixed it enough to allow Aperture to Rebuild the Database.
    I ended up tossing all the .plist files and the Library.apdb file in the Database directory within the Aperture Library. After doing so I was able to properly rebuild and all is right with the world.

  • Unable to activate DTP - The database returned a value containing an error

    Hi Experts,
    I want to upload a flat file from local PC to Infocube. I have created everything as expected.
    I have created the data source and it is displaying file contents when I do Preview.
    But when I try to Activate DTP it gives me following error:  -
    The database returned a value containing an error
    Message no. RS_EXCEPTION000
    Can somebody tell me if this is a basis error ? If yes then what corrective action have to be taken to resolve this.
    Thanks a lot.
    Best Regards,
    Chandan

    Hi PT,
    I did not have any routine in the transformation but on double clicking time characteristics (0CALMONTH and 0CALWEEK ) I saw that check box "Perform" was checked so I unchecked that and reactivated the Transformation once again.
    I deleted the DTP and recreated but the problem still persists.
    Any more inputs on this ??
    Best Regards,
    Chandan

  • Memory error after C042 errors on users database

    Hi,
    We recently have memory error messages on the POA and on the Client.
    The error seemed to follow several C042 errors:
    The database function 53 reported error [C042] on user4mn.db
    Error: Memory error. Memory function failure [8101] User:
    I cannot find any process that is accessing the user database at that time (GWcheck, Backup)
    The user also gets a memory error and has to restart the client.
    any ideas?

    On 9/7/2011 2:16 AM, pdjongh wrote:
    >
    > Hi,
    >
    > We recently have memory error messages on the POA and on the Client.
    > The error seemed to follow several C042 errors:
    > -The database function 53 reported error [C042] on user4mn.db
    > Error: Memory error. Memory function failure [8101] User:-
    >
    > I cannot find any process that is accessing the user database at that
    > time (GWcheck, Backup)
    > The user also gets a memory error and has to restart the client.
    >
    > any ideas?
    >
    >
    Have you run a full contents and structure check on the user?

  • Failed to mount database "General Users". Error: An Active Manager operation failed

    Failed to mount database "General Users". Error: An Active Manager operation failed. Error: The database action failed. Error: Database 'General Users' on server 'EX02' cannot be mounted due to a previous error: At '12/3/2014
    3:52:17 PM' the Exchange store database 'General Users' copy on this server appears to be inconsistent with the active database copy or is corrupted. For more details about the failure, consult the Event log on the server for other storage and "ExchangeStoreDb"
    events. A successful failover restored service. If you have addressed the underlying problem, or if you have decided to attempt to mount the database despite this error, the mount operation may be attempted by using the '-Force' parameter of the Mount-Database
    cmdlet. [Database: General Users, Server: EX02.domain.com]
    Md. Ramin Hossain

    Hi,
    From your description, it is recommended to suspend the failed database copy at first using the cmdlet below.
    Suspend-MailboxDatabaseCopy -Identity "xxx"
    And then reseed the database with a new copy using Update-MailboxDatabaseCopy -Identity "xxx" -DeleteExistingFiles cmdlet.
    What's more, here is a helpful thread for your reference.
    Update-MailboxDatabaseCopy
    http://technet.microsoft.com/en-us/library/dd335201(v=exchg.150).aspx
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • SQL error or database missing

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"bookdb.sql"];
    // Open the database. The database was prepared outside the application.
    //int retcode =sqlite3_open([path UTF8String], &database);
    if (sqlite3_open([path UTF8String], &database) == SQLITE_OK)
    // Get the primary key for all arrContacts.
    const char *chRecordIdQuery ="SELECT pk FROM book";
    sqlite3_stmt *sqlStatement;
    // Preparing a statement compiles the SQL query into a byte-code program in the SQLite library.
    // The third parameter is either the length of the SQL string or -1 to read up to the first null terminator.
    int retcode = sqlite3preparev2(database, chRecordIdQuery, -1, &sqlStatement, NULL);
    if (sqlite3preparev2(database, chRecordIdQuery, -1, &sqlStatement, NULL) == SQLITE_OK)
    // We "step" through the results - once for each row.
    while (sqlite3_step(sqlStatement) == SQLITE_ROW)
    // The second parameter indicates the column index into the result set.
    int primaryKey = sqlite3columnint(sqlStatement, 0);
    // We avoid the alloc-init-autorelease pattern here because we are in a tight loop and
    // autorelease is slightly more expensive than release. This design choice has nothing to do with
    // actual memory management - at the end of this block of code, all the book objects allocated
    // here will be in memory regardless of whether we use autorelease or release, because they are
    // retained by the arrContacts array.
    [self fetchContacts:primaryKey];
    [arrContacts addObject:ContactName];
    // "Finalize" the statement - releases the resources associated with the statement.
    sqlite3_finalize(sqlStatement);
    else
    // Even though the open failed, call close to properly clean up resources.
    sqlite3_close(database);
    NSAssert1(0, @"Failed to open database with message '%s'.", sqlite3_errmsg(database));
    // Additional error handling, as appropriate...
    When I execute this code den the sqlite_open commands works properly , it means it can find the database and opens it but it returns error om this line
    "if (sqlite3preparev2(database, chRecordIdQuery, -1, &sqlStatement, NULL) == SQLITE_OK)"
    the value of int retcode = sqlite3preparev2(database, chRecordIdQuery, -1, &sqlStatement, NULL); is returned as 1 which says - SQL error or database missing .
    Also , previously I used the same code in other project and there it ran succesfully.
    I could not find out what is happening.
    can anyone help me out ?

    Try wrapping code that you submit to the forum in a pair (no slashes). It makes it much easier to read.
    It is hard to say what the problem is without knowing what your db file actually looks like. Given that you've had success with this code before you might double check the db file that is in the simulator's sandbox for your application. You can go to your <username>/Library/ApplicationSupport/iPhone Simulator/User/Applications/<appropriate directory for your app>/Documents and your should see the db file that you are trying to select from.
    You can check to see that it actually contains the schema and data that you expect with the command line tool: sqlite3. Run sqlite3 on you db file and then enter .dump. That will print the contents of your tables in the db.
    In my experience, a problem with the "prepare" call is generally related to a mismatch between your SQL statement and the actual db's schema.
    It may not help, but it is worth looking if you haven't yet.
    Cheers,
    Greg

  • The server principal "XYuser" is not able to access the database "Ydb" under the current security context

    SQL2005 on winserver 2003. I have a view in Xdb that accesses tables in 2 different databases (Xdb and Ydb) on the same server. I have mixed mode security. I have a SQL user (XYuser) that has read access to all tables and views on both databases, yet when I try to access the view using a C# windows application I get the following error:
    The server principal "XYuser" is not able to access the database "Ydb" under the current security context
    This same scenario works under SQL 2000. I looked through the postings and tried to set TRUSTWORTHY ON on both databases but that didn't help. I can access any other views or tables on the SQL 2005 server, just not the one that joins the tables cross databases. Any help is much appreciated... john

    This appears to be a Login/Database Mapping issue.  I was having this problem, but was able to resolve it as follows:
    Using the SQL Server management Studio:
    In the Object explorer, under the SERVER security folder (not the database security folder), expand Logins. 
    That is: ServerName -> Security -> Logins
    NOT: ServerName -> Databases -> DatabaseName -> Security -> Users
    Select the Login that is having the troubles.  Right click on the Login and select ‘Properties.’
    The ‘User Mapping’ page should list all databases on the server with a check mark on the databases that the Login has been mapped to.  When I was getting the error, the database in question was not checked (even though the Login was assigned as a User on the database itself).  Map the Login by checking the box next to the database name.  Set the default schema.  Then select the roles for the Login in the Database role membership list box.  I selected db_datareader and public.  After clicking OK to save the changes, the problem was resolved.
    In order to ‘Map’ the Login, the Login must not already be as User on the database, so you may have to go to the database security (ServerName -> Databases -> DatabaseName -> Security -> Users) and delete the Login from the list of database Users before mapping the Login to the database.

  • Installing Exchange 2013 CU1 on a production server fails: Couldn't mount the database that you specified.

    Error:
    The following error was generated when "$error.Clear();
              $name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxUniqueName;
              $dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxDisplayName;
              $dismbx = get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1;
              if( $dismbx -ne $null)
              $srvname = $dismbx.ServerName;
              if( $dismbx.Database -ne $null -and $RoleFqdnOrName -like "$srvname.*" )
              Write-ExchangeSetupLog -info "Setup DiscoverySearchMailbox Permission.";
              $mountedMdb = get-mailboxdatabase $dismbx.Database -status | where { $_.Mounted -eq $true };
              if( $mountedMdb -eq $null )
              Write-ExchangeSetupLog -info "Mounting database before stamp DiscoverySearchMailbox Permission...";
              mount-database $dismbx.Database;
              $mountedMdb = get-mailboxdatabase $dismbx.Database -status | where { $_.Mounted -eq $true };
              if( $mountedMdb -ne $null )
              $dmRoleGroupGuid = [Microsoft.Exchange.Data.Directory.Management.RoleGroup]::DiscoveryManagement_InitInfo.WellKnownGuid;
              $dmRoleGroup = Get-RoleGroup -Identity $dmRoleGroupGuid -DomainController $RoleDomainController -ErrorAction:SilentlyContinue;
              if( $dmRoleGroup -ne $null )
                trap [Exception]
                  Add-MailboxPermission $dismbx -User $dmRoleGroup.Name -AccessRights FullAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue;
                  continue;
                Add-MailboxPermission $dismbx -User $dmRoleGroup.Identity -AccessRights FullAccess -DomainController $RoleDomainController -WarningAction SilentlyContinue;
        " was run: "Couldn't mount the database that you specified. Specified database: DB01; Error code: An Active Manager operation failed with a transient error. Please retry the operation. Error: Database action failed with transient
    error. Error: A transient error occurred during a database operation. Error: An error occurred while preparing to mount database 'DB01'. Error: An I/O error occurred while attempting to enumerate log files in directory 'D:\Logs\DB01'. Error 0x3
    I have dismount DB01 off the my Exchange 2013 and my database DB01 is also corrupt not able to repair so I created a new database called DB1.  I'm having issue running cumulative
    Vien H. Lim

    Hi Vien,
    Have you checked Martina's suggestion?
    If the issue persists, I would like to clarify the following things for further research:
    1. Please check if there exists DAG in your Exchange 2013.
    2. Please check if the directory 'D:\Logs\DB01' exists.
    What's more, I recommend you to use the ESEUTIL/mh cmdlet to check the database status when you create a database.
    Hope it helps. If there are any problems, please feel free to let me know.
    Best regards,
    Amy

  • MDSYS Schema in the Database for spatial data

    Hi
    As MDSYS Schema is required in the oracle database to hold the spatial data, The client database server has no MDSYS schema installed.
    So, when i import the mvdemo.dmp file in the database it is erroring out since there is no spatial data, Please let me know how to get the MDSYS schema in the database.
    Thank You

    Hi thanks for your response, i found this out in the oracle site, DBA ran this script for creation of MDSYS..but there was no data in some of the tables which are needed for development.
    --- COMPATIBLE init.ora parameter is set to 9.0.0.0.0 or higher
    show parameter compat
    NAME TYPE VALUE
    compatible string 10.2.0.3.0
    If you create an Oracle database using the Database Configuration Assistant (DBCA), Spatial is installed by default and you do not need to perform the installation steps described in this section.
    Steps to create the MDSYS schema and objects
    1) Connect to the database instance specifying AS SYSDBA.
    2) Create the MDSYS user with a command in the following format:
    SQL> CREATE USER MDSYS IDENTIFIED BY <password>;
    3) Grant the required privileges to the MDSYS user by running the following procedure:
    SQL> @ORACLE_HOME/md/admin/mdprivs.sql
    4) Connect as MDSYS.
    5) Install Spatial by running the following procedure:
    SQL> @ORACLE_HOME/md/admin/catmd.sql
    SQL> ALTER USER MDSYS ACCOUNT LOCK;
    So this solution dint work out.......

  • The database DLL 'crdb_oracle' could not be loaded.

    I have built a .net 2.0 website that is using Crystal Report Viewer with an Oracle 10g Database. All works well on my local machine but when deployed to the web server I get the following error:
    Failed to load database information. Details: The database DLL 'crdb_oracle.dll' could not be loaded. Error in File C:\DOCUME1\DMTEST\ASPNET\LOCALS1\Temp\test {BB80E9A1-92CE-402D-A52A-47ECE4330794}.rpt: Failed to load database information.
    I have run the Crystal Reports for .Net Framework 2.0 setup and have located the 'crdb_oracle.dll' file in the C:\Program Files\Common Files\Business Objects\2.7\Bin directory. Am I missing a step in this process.
    The Web Server is a Windows 2000 box.
    Thank,
    John

    I am having a similar problem.  However, I do not have CR installed, but want to use only CR from within VS 2008 and deploy a ASP.NET reporting app to IIS.  If I create a simple report with no parameters it will run fine in both VS and IIS.  However, if I add a parameter to the report such as UserId={?Parameter1} then on execution, the report will prompt for the parameter and then throw this error, "The database DLL 'crdb_oracle' could not be loaded."
    I have added full privileges to the ASP.NET, IUSR, and IWAM for the Oracle folder.  I also search the hard drive and find only one OSI.dll and no crdb_oracle.dll.
    Can you tell me if my scenario is supported with VS 2008 only?
    I am connecting to the DB like this:
                ConnectionInfo connectionInfo = new ConnectionInfo();
                connectionInfo.ServerName = "Driver={Microsoft ODBC for ORACLE};Server=localhost;Port=1521;";
                connectionInfo.DatabaseName = "dev";
                connectionInfo.UserID = "...";
                connectionInfo.Password = "...";
                TableLogOnInfos tableLogOnInfos = CrystalReportViewer1.LogOnInfo;
                foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
                    tableLogOnInfo.ConnectionInfo = connectionInfo;
    Thank you,
    Travis

  • Database Home page display : The database target is currently unavailable

    Hello,
    I Installed OEM Gird 11g on an Windows 2008 R2
    version Installed :
    - Oracle Enterprise Manager Grid Console 11.1.0.1.0
    - WebLogic Platform 10.3.2.0
    - Oracle WebTier and Utilities CD 11.1.1.2.0
    To make it running I have to disable IPV6 !
    One the database server (Windows 2003 64 bit - Oracle 10.2.0.1.0) I have upgraded the agent to the version Oracle Management Agent 11.1.0.1.0.
    I am able to configure a database (dbsnmp/password) no connection issue
    But after that the home display the message (The database target is currently unavailable), like the agent is not able to connect to the database.
    The database is accessible through the link "Last Known State".
    I have try stop and restart the agent in the database.
    I also test to make a clearstate (emctl clearstate agent), without success.
    I go deeper in the log of the agent (emagent.trc) :
    LOGIN = dbsnmp/<PW>@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ora-secondary1.lgbow.com)(PORT=1521))(CONNECT_DATA=(SID=LGBPHTE2)))
    +2011-08-30 11:28:10,341 Thread-2284 ERROR vpxoci: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor+
    +2011-08-30 11:28:10,341 Thread-2284 WARN recvlets.aq: [oracle_database LGBPHTE2] login failed: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor+
    +2011-08-30 11:32:50,917 Thread-2236 WARN vpxoci: OCI Error -- ErrorCode(1219): ORA-01219: database not open: queries allowed on fixed tables/views only+
    I have tested the LGBPHTE2 tnsname with SQLPLUS it is working.
    It is like OEM Grid 11g is not able to give the right password to the agent.
    Anyone knows about this issue.
    Thanks in advance
    Gaspard

    LOGIN = dbsnmp/<PW>@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ora-secondary1.lgbow.com)(PORT=1521))(CONNECT_DATA=(SID=LGBPHTE2)))
    +2011-08-30 11:28:10,341 Thread-2284 ERROR vpxoci: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor+
    +2011-08-30 11:28:10,341 Thread-2284 WARN recvlets.aq: [oracle_database LGBPHTE2] login failed: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor+ is the database accessible through this address?
    sqlplus user/[email protected]/LGBPHTE2
    +2011-08-30 11:32:50,917 Thread-2236 WARN vpxoci: OCI Error -- ErrorCode(1219): ORA-01219: database not open: queries allowed on fixed tables/views only+ is the database open?

  • Error after unarchive process - Error: The MDM respository is invalid

    Hi Experts:
    We are on the process to unarchive a repository, but we are getting this error when trying to logon to load it.
    Repository connect failed
    Error: The MDM repository is invalid
    p.s. We are trying to copy our Production environment to our Test Environment.
    Thanks,
    Claudia Hardeman

    Hi Claudia,
    I have been across this scene many times the easiest and fastest way to get rid of this problem is -
    1) Delete the repository from Database
    Step 1 u2013 Connect to the Database using the Database Management tool
    Step 2 u2013 Delete the databases - RepositoryName_z000 and RepositoryName_m000
    Step 3 u2013 Delete repository specific entry from the table A2i_Catalogs in A2i_xCat_DBs database
    2) Unarchive the repository from old archive
    3) Load the repository
    This will solve the issue.
    Regards.

  • Form is not submitting to the databases

    Hello,
    I'm having an issue right now. Everything i click the complete registration page on this site.
    https://www.encourageexcellence.org/registration.php
    The values entered won't submit nor return any error messages. Could you show me what I'm doing wrong? Here is the code
    [CODE]
    <?php
    if (isset($_POST['submitted'])){
        require_once('Connections/encourage.php');
    $fields = array(
        'email',
        'state',
        'district',
        'gender',
        'age',
        'profession',
    if (safe($_POST['survey']=="Yes")){
        $survey = "Yes";
    else{
        $survey = "No";
    foreach($fields as $fieldName) {
        if(isset($_POST[$fieldName]) and safe(trim(stripslashes($_POST[$fieldName]))) !==''){
            $$fieldName = safe(trim(stripslashes($_POST[$fieldName])));
        }else {
                    $errors[] = "Please enter your". $fieldName .""; //code to validate fields
        if(filter_var($email, FILTER_VALIDATE_EMAIL) == true){
        } else {
            $errors[] = 'Please enter a valid email address';
    if(!isset($errors)){
        $query = "SELECT user_id FROM participants WHERE email='$email'";
        $result = mysql_query($query);
        if(mysql_num_rows($result) == 0) {
    $query = "INSERT INTO participants (email, state, district, gender, age, profession, survey, registration_date) 
    VALUES ('$email', '$state', '$district', '$gender', '$age', '$profession','$survey', NOW())"; //databasse connection
        $result = mysql_query ($query);     
    if ($result){
        $url = 'http://'. $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);
        if ((substr($url, -1) == '/') || (substr($url, -1) == '\\')) {
            $url = substr ($url, 0, -1);
        $url .= '/thanks.php';
        header("Location: $url"); //This is the line of error that is reporting after submitting to the database
        exit();
        } else {
            $errors[] = 'You could not be registered due to a system error. We apologize for any inconvenience.';
            $errors[] = mysql_error() . '<br /><br />Query: ' . $query;
        } else {
            $errors[] = 'The email address has already been registered.';
        mysql_close();
        } else { 
            $errors = NULL;
    if (!empty($errors)){
                echo '<h1 id="mainhead">Error!</h1>
            <p class="error">The following error(s) occurred:<br />';
            foreach($errors as $msg) {
                echo " - $msg<br/>\n";
            echo '</p><p>Please try again.</p><p><br/></p>';
    function safe($string) 
            $pattern = "/\r|\n|\%0a|\%0d|Content\-Type:|bcc:|to:|cc:/i"; 
            return preg_replace($pattern, '', $string); 
    ?>
    <!----html code-->
    <form id="form1" name="form1" method="post" action"registration.php">
      <fieldset class="first">
      <label class="email" for="email">Email:* </label>
      <input name="email" value="<?php if(isset($_POST['email'])) echo $_POST['email'];?>"/>
      <label for="state"/>State:* </label>
      <input name="state" value="<?php if(isset($_POST['state'])) echo $_POST['state'];?>"/>
      <label for="schooldistrict"/>School District:* </label>
      <input name="district" value="<?php if(isset($_POST['district'])) echo $_POST['district'];?>" />
      <label for="gender">Gender:* </label>
    <select name="gender">
       <option>Choose Your Gender</option>
       <option value="male" <?php echo ($form['gender'] == 'male' ? ' selected' : ''); ?>>Male</option>
       <option value="female"<?php echo ($form['gender'] == 'female' ? ' selected' : ''); ?>>Female</option>
    </select>
        <label for="age"/>Your Age:* </label>
      <input name="age" type="text" class="age" maxlength="2" value="<?php if(isset($_POST['age'])) echo $_POST['age'];?>"  />
      <label for="profession"/>Profession:* </label>
      <input name="profession" value="<?php if(isset($_POST['profession'])) echo $_POST['profession'];?>" />
      <label for="survey"/>Willingness to participate in future surveys:</label>
      <input name="survey" type="checkbox" value="Yes" />
      </fieldset>
    <fieldset>
      <input name="submit" type="submit" class="btn1" value="Complete your Registration" />
    <input class="btn" name="reset" type="reset" value="Clear Form" />
    <input type="hidden" name="submitted" value="TRUE" />
    </fieldset>
      </form>
    [/CODE]
    Thanks in advanced!

    The form HTML is incorrect.
      <form id="form1" name="form1" method="post" action"registration.php">
    you're missing a  = after action

Maybe you are looking for

  • Validation error

    I am finalizing a site upgrade. Many of my pages use tables to keep the data 'organized'... Whenever I use a % for TD width I get an error stating: "x%" is not valid value for the 'width' attribute in any of the currently active versions. See the abo

  • Highlight File Format and PDF Documents with Chinese and English characters

    I'm a developer working on an application that makes use of the Highlight File Format / external highlight server capabilities of Adobe Reader. The highlighting worked correctly until we started to introduce pdf documents that were scanned to recogni

  • Oracle BPEL: Query with IN statement

    Hi, I would like to know how does BPEL pass in multiple values in a query statement. For eg, select * from table1 where column1 in ('A','B','C') I've tried creating a variable with 'A','B','C' and pass to the query statement but the DB takes it as a

  • Problem in JScrollpane

    Hi My GUI comprises of the following : JAPplet => Bean =>( JScrollPane => JTable and some buttons) I'm loading the table with some data . It has 4 columns and n rows with the rows increasing by the data loaded. I made the last 2 columns hidden. Now,

  • Working with xml data collections (sequences)

    Dear all, a database adapter in my BPEL process returns the following xml data structure: Schema: <xs:element name="MGroupsCollection" type="MGroupsCollection"/> <xs:complexType name="MGroupsCollection"> <xs:sequence> <xs:element name="MGroups" type=