Writing data to MS - AccessDB from XI 3.0

Hi
   We have an Microsoft Access 2000 database to which we want to use XI 3.0 to write data to -
Do we have supported JDBC drivers for AccessDB 2000 that we can load onto XI - If so, where do we get these ?
Anybody faced this scenario before - please help .

Hi,
Check in SAP Market place  - www.service.sap.com/swld
Chk this thread..
HOw to connect and extract the data from MS ACCESS SOURCE(Database) system
Regards,
Srinivas

Similar Messages

  • Error writing data in a flat file using UTL_FILE feature

    Hi All,
    I have written a package which fetches data from four different cursors and inserts into a temporary table.
    Now this temporary table is used to write data in a file using the UTL_FILE feature.
    fhandler :=
    UTL_FILE.fopen (l_path,'Demand_Transactions_'
    || TO_CHAR (SYSDATE, 'YYYYMMDDHH24MI')
    || '.txt',
    'w',
    max_linesize => 32767
    This table has 62593 records and when it starts writing data into the file from the table it errors out after writing 30045 records with the error - ORA-01722: invalid number.
    Can anyome please advise me is it because of the max_linesize => 32767. If not then what can be the possible reason.
    Any help in this would be highly appreciated.
    Regards,
    Shruti

    891330 wrote:
    Hi All,
    I have written a package which fetches data from four different cursors and inserts into a temporary table.
    Now this temporary table is used to write data in a file using the UTL_FILE feature.
    fhandler :=
    UTL_FILE.fopen (l_path,'Demand_Transactions_'
    || TO_CHAR (SYSDATE, 'YYYYMMDDHH24MI')
    || '.txt',
    'w',
    max_linesize => 32767
    This table has 62593 records and when it starts writing data into the file from the table it errors out after writing 30045 records with the error - ORA-01722: invalid number.
    Can anyome please advise me is it because of the max_linesize => 32767. If not then what can be the possible reason.Max linesize is the number of characters in a line before a newline has to be issued, not the number of rows written.
    The error would indicate that you have a character to number conversion going on somewhere but the characters are not numeric so it's failing that conversion.
    This doesn't sound like a UTL_FILE issue, but more to do with how you are building up your strings to output to the file.
    You would need to show us your code that builds up the lines you are writing out, with details of the datatypes of any of the columns/variables included in that.

  • I am writing datas into a FIFO ,i am reading datas from fifo .but when i am writing datas like a a(0),a(1),a(2 like that.when i am reading dating datas a(0)comes to a(3 ) rd place .what is the reason ?

    I am writing datas into a FIFO in FPGA Target side  ,i am reading datas from fifo in windows host side  .but when i am writing datas like a a(0),a(1),a(2 like that.when i am reading dating datas a(0)comes to a(3 ) rd place, a(1) comes to a a(0) .what is the reason ?

    Please use a shorter title in your subject line and not post the entire question in therre.  (See the subject line I created.)   There is also no such word as "datas".  Data is already plural.
    Please read http://stackoverflow.com/help/how-to-ask.  Your question is hard to read because you aren't using proper punctuation and capitalization of your sentences.  It looks like one run-on sentence.
    Beyond that, it is impossible to help you solve our problem with just your question.  Please provide some more information.  Perhaps even attach code we can look at.  Show us what the data you are sending is supposed to look like, and what it actually looks like.

  • There was an error while writing data back to the server: Failed to commit objects to server : Duplicate object name in the same folder.

    Post Author: dmface15
    CA Forum: Administration
    I am working in a new enviorment and i am trying to save a report to the Crystal Server via the CMC. I am uploading the report from the objects tab and attempting to save to a folder. The report has 1 static defined parameter and that's it. When i click submit to save the report i receive the following error message: "There was an error while writing data back to the server: Failed to commit objects to server : Duplicate object name in the same folder." There is not a anothe report within the folder with that name. What could be causing this error message and equally important, what is the solution.

    hte message you received about duplicate user probably means something hadn't fully updated yet. Once it did then it worked...
    Regards,
    Tim

  • Reading and writing data to a list in Sharepoint 2010.

    I'm having difficulty writing data to a list in sharepoint 2010, the reading the information is going fine, but I just tried writing data, and it's not working well.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using ListQuery.StudentsList;
    using System.Xml.Linq;
    using System.Net;
    namespace ListQuery
    class Program
    static void Main(string[] args)
    XNamespace ns = "#RowsetSchema";
    ListsSoapClient soap = new ListsSoapClient();
    XElement query = new XElement("Query");
    XElement options = new XElement("QueryOptions");
    XElement view = new XElement("ViewFields");
    soap.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
    XElement list = soap.GetListItems("Students", null, query, view, "900001", options, null);
    foreach (XElement descendent in list.Descendants())
    descendent.SetAttributeValue("ows_fullName", "I am sparticus");
    soap.UpdateListItems("Students", list); // ERROR LINE
    var asdf = from x in list.Descendants()
    where x.Name == ns + "row"
    select x.Attribute("ows_fullName").Value;
    foreach (string blah in asdf)
    Console.WriteLine(blah);
    Console.WriteLine("\n\t--Process Completed--");
    Console.ReadKey(true);
    I wrote a comment showing the line where the code had a break in execution. The error I'm receiving is this,
    "Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown."
    Any help is appreciated, thanks!

    Puil, I decided to go with your idea, but when trying to connect to the data source at listdata.svc using the add data connection wizard, at the very end upon clicking finish I get an error "System.Exception", this is what shows up in my error list.
    Error 1 Custom tool error: Schema specified is not valid. Errors:
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Relationship' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_CreatedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'FromRole' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Relationship' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_ModifiedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'FromRole' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Relationship' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_CheckedOutTo' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'FromRole' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_CreatedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Type' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0019: Each type name in a schema must be unique. Type name 'Microsoft.SharePoint.DataService.' was already defined.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_ModifiedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Type' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0019: Each type name in a schema must be unique. Type name 'Microsoft.SharePoint.DataService.' was already defined.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_CheckedOutTo' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Type' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0019: Each type name in a schema must be unique. Type name 'Microsoft.SharePoint.DataService.' was already defined.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '_10' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'EntityType' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_CreatedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Association' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_CreatedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'EntitySet' attribute is invalid - The value '_10' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_ModifiedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Association' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_ModifiedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'EntitySet' attribute is invalid - The value '_10' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_CheckedOutTo' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Association' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_CheckedOutTo' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'EntitySet' attribute is invalid - The value '_10' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed. c:\users\wileym\documents\visual studio 2010\Projects\ecomms\ecomms\Service
    References\studentList\Reference.datasvcmap 1 1 ecomms
    It seems the schema is all wrong... Any help would be appreciated.

  • Writing to serial port 1 from a PDA

    ok this program is driving me NUTS! i have this microchip which uses a certain protocol... now this protocol requires that you send it some characters in hexadecimal so it'll reset... afterwhich it'll send you a data packet containing the version of the microchip etc etc (it's an aduc812... which you can find on www.analog.com)... anyway, that's not important... i am having trouble actually WRITING to serial port 1... i noticed that doing it through an actual PC requires some sort of "open serial port.vi" which is not available in the pda version... all i have is init.vi which is apparently not enough from what i am told... i thas to be opened first... initialized next... then written to then read from... does anyone know how i can acc
    omplish this open procedure with the pda module? is that some sort of software i'm missing? why isn't it included with the pda module add on... etc etc... thank you in advance... i really need help with this so as much information as possible would be appreciated... let me know if you need further info...
    christina

    Hey Christina,
    Here is a link to a knowledge base one simply writing to the serial port from a PDA.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=E011F478861443EFE034080020E74861&p_node=%20DZ52363&p_source=External
    Hope this helps.
    Brett

  • Problem in writing data to excel spread sheet using jdbc

    Hi Friend,
    I have written a jdbc application ,that retrives data from oracle8i database and writes to excel spread sheet.
    Here I am facing a problem while writing date vales to the spread sheet.
    It is just writing 00.00.0 , instead of a date like 21/10/2005, where I am going wrong , can any one guide me.
    Thanks in advance.

    Don't cross-post!
    http://forum.java.sun.com/thread.jspa?threadID=643815&tstart=0
    Especially when you already got your answer in the other post jackass. If you don't understand the answer then say so there.

  • Facing problem in writing data to excel sheet using ActiveX

    Hi.
    I want to write data from a one dimesional array to a particular excel sheet in a particular row.Please see the attached vi for explantion.
    It is giving error.But If I give a new file name when the appliation is getting closed it is writing data to the new excel file.
    Please help.
    Thanks in advance
    Attachments:
    Excel sheetWrite.vi ‏90 KB

    Thanks Jhoskin and Rudi .......
    I am able to write data to excel sheet now. I am attaching one"test.zip" file that contains a VI named "Squence.vi "that contains another subVI named "Write U94006 Table To XL.vi"which does the functionality of counting the number of rows in the excel sheet and writing data in the next blank row. I am using the same subVI in the VI named "Sequence.vi"two times so it is taking a lot of time in opening and closing the excel sheet. Will you please suggest some way of calling the subVI only one time.
    Rikki
    Attachments:
    Test.zip ‏105 KB

  • Writing Data to Multiple Files

    Hi,
    I got a problem while writing the data to multiple files.
    Actually my requirement is,
    I want to read the data from multiple files and retrieve the required data from those and save that data into separate files.
    Meaning if i read the data from "D:\kiran\kk\123\kiran.txt" the retrieved data should be saved in "D:\kiran\kk\kiran.txt" the file name should be created with the input file name.
    here is my code,
    //here i am taking the files into loop
    for(int i=0;i<files.length;i++){
    try{                   
    //reading the files
    BufferedReader br=new BufferedReader(new FileReader(files));
    //creating a new file for writing the retrieved data
    pw=new PrintWriter("D:\\Kiran\\kk"+File.separator.concat(str[i]));
    String line=br.readLine();
    while(line!=null){
    line=br.readLine();
    //here i am matching the required data
    Matcher m = Pattern.compile("name(\\s*\\W*\\w*\\W*.\\w*.)|invoice (\\W*(\\d+))|amount(\\W*(\\d+),\\d*)|site(\\s*Rs\\.[\\d]*,[\\d]*/-)", Pattern.CASE_INSENSITIVE).matcher(line);
    while(m.find()){                           
    System.out.println(m.group());
    //here printing the retrieved data to a file
    pw.println(m.group());
    br.close();
    but i am ending up with some issues.
    Data is reading properly from all the files, but when i write that data into individual files the data which is retrieved from last file is only printing into the file which is created last.
    Please help me regarding this,
    Thanks,
    Kiran

    D:\kiran\kk\123\
    In this folder some files are there say,
    kk.txt,kiran.txt,praveen.txt and so on, i can read the entire data from those files and also retrieving the required data like name,data etc. from all the files. Now the retrieved data should be stored in individual files means, if the data is retrieved from kk.txt then that particular data should be stored in the file with the same file name but in different location likewise it should happen for all the files those are in that folder.
    Thanks,
    Kiran

  • Input needed for writing data back into BW/ECC data

    Hello Everyone,
    Can anyone please let me know an example or process you have used for writing data back into BW (DSO/Cubes) or ECC systems.
    We do not have integrated planning in our current system configuration currently.
    So, any sample code for using any of the BAPI/RFC for writing data would be appreciated.
    Also, I am trying to find out if there is any way to schedule the models developed in VC 7.1 in background to automate certain type of data processing which goes across multiple systems.
    Any help would be appreciated.
    Thanks.

    Hello,
    Can anyone please help me out on this one....
    I am aware of few BAPI's such as RSDRI_ODSO_INSERT_RFC but I am not aware of what action has to be used to transfer the data from the table within VC to this BAPI and how to define the parameters as the one's available for the BAPI I mentioned do not fit into the data I have in the table within VC.
    The following are the columns I have in the table within VC,
    1. GL Account
    2. Credit Amount
    3. Debit Amount
    4. Sales Amount
    I have defined the DSO with the same where G/L Account is the keyfield and the rest being data fields.
    Any help would be really appreciated.
    Thanks.

  • Uploading data in the table from mysql db, any help is welcome

    Hi, I have made a table with two columns, "Name" and "ID". Those are binded to contexts NameCtx and IDCtx. There are ten rows in table. What I need to do is upload Names and IDs from mysql database and fill those rows from 1 to 10 and I dont have much idea how to do this. Any tutorial, blog or your piece of code or tips will be most welcome. Regards, Balmer

    Hi,
    To access the My SQL db pl refer this thread
    writing data form Webdyn Pro inputfield into MySQL db
    Once the connection is done
    Create a statement
    Exeecute the sql statement
    Iterate the resultset
    populate the context
    try{
                  Connection conn;
                  Class.forName("com.sap.dbtech.jdbc.DriverSapDB");
                   String urlConn = "jdbc:sapdb://localhost/maxdb1"; //replace localhost and the maxdb1 with your server name and database.
                   String username = "userID";
                   String password = "password";
                   conn = DriverManager.getConnection(urlConn, username, password);
                   System.out.println("connected to DB...");
                   //Change the select statement to that of yours
                   Statement stmt = conn.createStatement();
                   stmt.execute("select name,id from table1");
                   //Result set
                   ResultSet resultSet = stmt.getResultSet();
                   //Iterate to populate the context that is bound to the table.
                   while (resultSet.next())
                        //Change the element and node name to that of yours
                        IOrdersElement ordersElement = wdContext.nodeOrders().createAndAddOrdersElement();
                        ordersElement.setNameCtx(resultSet.getString(1));
                        ordersElement.setIDCtx(resultSet.getString(2));
                }catch(Exception e)
                     //handle the exception
    Regards
    Ayyapparaj

  • Error writing data to client-side row cache.  URGENT!!!

    Hi everyone
    I had had this error for 3 weeks and I don't know what am I doing wrong?
    I have an Oracle Database. and when I Run my project from JSC I get this error:.
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: javax.faces.FacesException
    java.sql.SQLException: [sunm][Oracle JDBC Driver]Error writing data to client-side row cache.
    Possible Source of Error:
    Class Name: com.sun.jsfcl.data.RowSetDataModel
    File Name: RowSetDataModel.java
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    I uninstalled and installed the JSC and the first time that I run my project worked fine, but just that time, because then the error appeared again.
    What can I do????
    Thanks!!!
    Wendy,
    Costa Rica

    Duplicate thread of
    http://swforum.sun.com/jive/thread.jspa?threadID=53424&tstart=0

  • JDBC Thin driver doesn't support writing data into remote database via database link

    Dear Oracle Guru:
    Please confirm: Oracle JDBC thin driver does not support writing data to remote database via database link.
    The following errors occur when trying to write data into a remote database via database link through jdbc thin driver:
    ORA-03106: fatal two-task communication protocol error
    ORA-02063: preceding line from FDBE.PAPDSRAS1
    ORA-02063: preceding 2 lines from PA
    SQL statement is a prepared statement using a SQL like: insert into mytable@pa (col1,col2) values (?,?).
    Thanks.
    null

    Thanks, Dan.
    I still think it is a driver problem, because I can do similar things in a stored procedure or in PL/SQL Developer to copy records from a local database table to a remote database table via database link (insert into mytable@pa select * from mytable). The value for distributed_transactions of our database is 10.

  • Problem while writing data on xls file using jxl API

    Hi,
    I am getting problem while writing data on excel file using jxl api.
    When i write data on file and all handles associated to the file are closed, file size increases but when i open the file nothing is written in it and when file is closed manually from excel window, file size decreased to its original that was before writing data.
    here is code:
              FileOutputStream os = new FileOutputStream(this.dirPath + this.fileName, true);
              WritableWorkbook this.workbook = Workbook.createWorkbook(os);
    after writing data following handler are closed:
    this.os.flush();
                        this.workbook.write();
                        this.workbook.close();
                        this.os.close();
                        this.os = null;
    can any body help me.
    Thanks in advance

    Err, I did help you. I did understand your problem; and I solved it for you. What was missing was that you apparently made no effort to understand what you were being told. Or even consider it. You just argued about it, as though you were the one with the solution, instead of the one whose code didn't work.
    And the other thing that was missing was the part where you said 'thank you' to me for solving your problem. Somewhat more appropriate than biting the hand that fed you, frankly. I do this for nothing, on my own gas, and it's extremely irritating when people keep asking about problems I have already solved for them. I am entitled to discourage that. It's part of making them more efficient actually.
    But it happens often enough that it also makes me think I'm just wasting my time. Probably I am.

  • Problem in writing data to flat file

    Hi,
    I have created an interface with table as source and file as target. My interface is running from long time but its not writing data into file. Any clue?
    -Chikk

    Hi,
    Please, take a look if the target file is locked.
    Try to delete it and put the "Truncate" option from IKM to yes.
    Cezar

Maybe you are looking for

  • Very Urgent!! Stored Procedure Problem!!!

    Hi Friends, I am in a great trouble!! I hv a procedure which has a print statement in it. Is it possible to capture or redirect the output of my print message??? Say, my procedure is like create procedure MyProc as select * from table1 print "Hello W

  • Spare power adapter -or- A sad state of affairs...

    FedEx just delivered my spare power adapter... So here I stand with an extra 85W brick, but no MacBook Pro as yet. This is a sad state of affairs...

  • Parallel approval question of the workflow process.

    Hello Expert, I have the following business process scenario which will be realized by new BPMN. My qusestion is how to do with it on BPMN? I have one human activity in one step. The condition to pass this step is that all the potential owners of thi

  • What hide command will do

    what hide command will do

  • When trying to restore old backup onto a new phone a error appears

    so i connect the new phone into itunes and when i go to press restore backup and loading box pops up saying "estimating time remaining" after a few seconds an error pops up saying "itunes could not restore the iPhone because an error occurred" and th