CSV  file data load error

Hi,
Data load from Flat File.
The master data is loaded using CSV file.
Emp ID;  in source file it is replesented as 1,2,3..10...1009
But when i load the data it is being converted to 0000000001,0000000002....etc
The info object Data Type is Char and Length is 10 and Conversion Routine is none
I want it to be loaded as 1,2,3... as it is as it is in source file
Thanks

Hi,
Right click on that cell -> Format cells - > Number (tab) -> select Text and click OK.
Hope this helps.
PB

Similar Messages

  • CSV file data load

    Hi All,
    I have a CSV file having data in cell. I have to load the csv file data in supporting table.
    In code, I will pass parameters as - csv file name, path and supporting table name that required inserting the file data. (This is just a sample code; I required handling many things)
    My Sample CSV file data: (Data are comma separated) ,In file in third,have null value ,Plese help to handle null values in below code while inserting.
    1,AB,1/1/2013
    2,CD,1/1/2012
    3,<null>,1/1/2013Sample Code:
    DECLARE
        v_csvfile       VARCHAR2(30) := 'temp.csv';--<<This is the csv file name>>
        v_csvpath       VARCHAR2(30) := --<<This is the path>>
        v_csvtab        VARCHAR2(30) := 'TEMP';
        v_csvdata       VARCHAR2(32767);
        v_csveof        BOOLEAN := FALSE;
        v_csvfilehandle utl_file.file_type;
        v_str           VARCHAR2(32767);
    BEGIN
        v_csvfilehandle := utl_file.fopen(v_csvpath, v_csvfile, 'r', 32767);
        WHILE NOT v_csveof
        LOOP
            BEGIN
                utl_file.get_line(v_csvfilehandle, v_csvdata);
                FOR i IN (SELECT s.data_type, s.internal_column_id
                            FROM user_tab_cols s
                           WHERE s.table_name = UPPER(v_csvtab)
                           ORDER BY internal_column_id)
                LOOP
                    IF i.data_type = 'DATE'
                    THEN
                        v_str := v_str || 'TO_DATE (' || ' REGEXP_SUBSTR( ' || '''' ||
                                 v_csvdata ||
                                 '''' || ' ,' || '''' || '[^,]+' || '''' ||
                                 ' ,1,' || i.internal_column_id || ' ),' || '''' ||
                                 'MM/DD/YYYY' || '''' || ' )';
                    ELSE
                        v_str := v_str || ' REGEXP_SUBSTR( ' || '''' ||
                                 v_csvdata ||
                                 '''' || ' ,' || '''' || '[^,]+' || '''' ||
                                 ' ,1,' || i.internal_column_id || ' ),';
                    END IF;
                END LOOP;
                        --DBMS_OUTPUT.put_line('INSERT INTO  ' || v_csvtab || ' VALUES ( ' || v_str || ' )');
                EXECUTE IMMEDIATE 'INSERT INTO  ' || v_csvtab || ' VALUES ( ' || v_str || ' )';
                                  v_str := NULL;
            EXCEPTION
                WHEN no_data_found THEN
                    v_csveof := TRUE;
            END;
        END LOOP;
        utl_file.fclose(v_csvfilehandle);
    EXCEPTION
        WHEN OTHERS THEN
            dbms_output.put_line(dbms_utility.format_error_backtrace ||
                                 ' Err ' || SQLERRM);
            RAISE;
    END;Script to create sample supporting table:
    CREATE TABLE TEMP
    (col1 VARCHAR2(100),
    col2 VARCHAR2(100),
    col3 DATE );Thanks,

    Don't re-invent the wheel.
    If your CSV is on the database server (it must be if you are using UTL_FILE), use an external table
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/et_concepts.htm#SUTIL011
    If your CSV is on a client PC, use Sql*Loader
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_concepts.htm#SUTIL003

  • Flat file data load error: Exception with type CX_SY_CONVERSION_NO_NUM

    Hi Guys,
    I am trying to create a datasource from a flat file (excel data in csv format) and when I create infopackage on the datasource and trying to load, I am getting the error,
    Error 'An exception with the type CX_SY_CONVERSION_NO_NUM' at conversion exit RSDS_CONVERT_NUMBER (field FAB record 480, value 8)
    Can somebody help me with this.
    I am working in BI 7. In the excel sheet I have all cell with general format.
    I tried using PSA Typed and not Typed. Didnt work
    Thanks in advance

    I selected Data Format as "Separated with Separated (for Example CSV),
    Data Separator ,
    Escape Sign ; (this i didnt understand where it comes in csv file) also I left the  Hex check boxes unchecked.
    PSA not Typed is also unchecked.
    Am I missing something? Data types in excel spreadsheet (csv file)?
    Thank you

  • Flat file data loading error using process chain

    Hi SAP Experts,
    I am having a problem loading the flat file data to the cube using process chain. The issue is that when i run the process chain it fails giving the message " Date format error, please enter the date in the format  _.yyyy" . I am using " 0calmonth in the datasource" . Strange is that when i manually execute the infopackage, i dont get any errors and am able to load the same file successfully to the dso and the cube. Is there any special setting for the process chain that i am missing?
    The date format in the flat file is mm/yyyy. I have tried all the options i could including recreating the datasource and invain dont see any success so far. please help me solving this problem as we r in the middle of testing cycle.
    Thanking you all for your quick response and support all the time.
    Kind Regards,
    Sanjeev

    Hi Sanjeev,
    I believe you are opening the .csv file again after saving it. In this case the initial 0 in single digit month (say 02/2010) is getting changed to 2/2010 and the resulting file is not readable to the system. Just do not open the file after you have entered data in the .csv file and saved and closed it. If required, open the file in notepad, but not in excel in case you want to re-check the data.
    Hope this helps.
    regards,
    biplab

  • Flat File Data Load Error

    I have a text file (with fields comma separated) coming from the legacy system which is to be loaded into BW.
    Values in the fields sometimes have comma in them due to which it disturbs the file structure and hence the data load fails. Ex:
    ColA     ColB     ColC
    10     A     $100
    10     B, Inc     $50
    In the above case record 2 comes as
    ColA     ColB     ColC     ColD
    10     B     Inc     $50
    I am having this problem for 3 fields. Any suggestions on how fix this issue other then cleaning the file manually.
    Thank you,
    sam

    Option1: Try to use a different separator like ;
    Option2: For these three records note down where the , is...delete the comma from the records, load the data into PSA only, re-insert the comma into these records now and finally update into the data targets from the PSA.
    Hope this helps.

  • Flat file data loading error

    Hi All,
    I am loading data from flat file. It is given error .File is avilable in selected directory and not opend but it showing return code 01.
    That error message is like this.
    Diagnosis
    An error occurred in the source system.
    System Response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Extractor .
    Refer to the error message.
    Procedure
    How you remove the error depends on the error message.
    Note
    If the source system is a Client Workstation, then it is possible that the file that you wanted to load was being edited at the time of the data request. Make sure that the file is in the specified directory, that it is not being processed at the moment, and restart the request.

    Hi,
    While loading data from a flatfile, it is always better to first check the 'Preview' which is basically simulating the dataload from the file to check if the format is correct. You can do this by clicking on the 'Preview' button in the External Data tab within the infopackage. When you click on the 'Preview' button, it asks you for the number of header rows to be ignored and the number of records you want check from the file. If there is an issue with a particular field or the file, it will give an error message. You can correct the same and them do the actual dataload.
    Commom errors during dataload from a file are:
    1. You keep the file open and try to load the data. Please close the file before you start the dataload.
    2. Data seperator and the number of header rows not specified correctly. Kindly double check.
    3. Sequence of fields in the file and the infosource do not match .
    Check the above points and see if it is useful.
    Regards,
    Shilpa

  • Load .csv file data with OWb Process flow using Web

    Hi,
    I Have a file in my local machine( Machines on multiple user's), need to load data through Web user interface.
    Let's say have a web page with multiple radio buttons respective to different sources, by clicking on each button will pass the path of .csv file to through Application, (API or Java programming interface) execute owb Process flow as a accepting file path as a input parameter to execute for loading purpose.
    Should facilitate view data, Update data through web based on user requests.
    Need your guidence how can i implement this with OWb 11g R2.
    Assuming with Web browser functionality. Please confirm it and if yes, please throw some light how could be the steps to implement.
    Thanks

    Hi David,
    Thanks for your reply.
    Undersatnd your proposed solution.But my requirement should be as follows.
    1. Currently under consideration using web page likely to be implement with Java, allowing users to load .csv file data into staging area.(Loading flat file into Data abse table)
    Case 1, Assuming OWB software is not installed on user machine. I think no.
    Is it possible through web page (this case Java page) to trigger java procedure/Pl/SQl procedure or integration of both to laod data into staging area.If yes, how it could effect performance of data load with 1 GB file.
    Case 2, OWb client software installed on User machine, while runtime passing parameters means passing manually?
    In case it is automated, how should i pass machine name & Path to owb runtime web browser.
    Could you please show me guidence how should I acheive this functionality with APEX customization part?
    Thanks agin for your support.
    Anil

  • Upload Csv files with infopackages - Error 1

    Hello again,
    i'm trying to upload csv file into a infopackage with master data text but the sistem sends a error message "Error 1 uploading external data".
    Infopackage settings:
    source system: PC
    file type: data file
    csv file
    data separator ;
    ESC signal "
    a created a txt file with data separated with ; and later converted txt file into a csv file.
    can anybody help me pls?
    Thanks
    Silvia Marques

    Hi Silvia,
    If the fields are correct in the transfer structure (only 2 fields). Then check whether the field length and type has been defined correctly for both the fields.
    If thats not a problem then try to load only upto PSA.
    If you are using IDOC as your transfer method then go to the "details" tab of the monitor of the error request and see the details. It will give you the correct picture of the error.
    Bye
    Dinesh.

  • Related to CSV file data upload

    Hi all,
    I am new to the oracle technology.
    While uploading the data from csv file i got this error
    "SQL*Loader-350: Syntax error at line 4.
    Expecting keyword TABLE, found "xxgfs_gen_text_lookups".
    APPEND INTO xxgfs_gen_text_lookups"
    my csv file data is
    Invoice Match Options,,,Invoice,,
    Invoice Match Options,,,Receipt,,
    Invoice Match Options,,,Purchase Order,,X
    Invoice Type,A 00,Advance,Standard,Standard invoice,
    Invoice Type,B 00,Expense,Standard,Standard invoice,
    Invoice Type,2 00,Debit Memo,Credit Memo,Credit Memo,
    Invoice Type,2 20,EDI Debit Memo,Credit Memo,Credit Memo,
    Invoice Type,1 00,Invoice,Standard,Standard invoice,
    Invoice Type,1 01,Arrow Credit,Standard,Standard invoice,,
    Invoice Type,1 10,Recurring Payments,Standard,Standard invoice,,
    Invoice Type,1 20,EDI Invoices,Standard,Standard invoice,,
    Invoice Type,1 21,Imaged Invoice,Standard,Standard invoice,X,Default when entering from form
    Invoice Tax Code,XMT,DO NOT USE,,,,
    Invoice Tax Code,STE,DO NOT USE,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code
    If i am removing the blank row then also it is giving the same problem.
    If anybody face the same problem then please help me out.
    thanks in advance to u all for ur help.
    -Rajnish

    This is the Oracle Application Express (formerly known as HTML DB) forum. SQL*Loader related questions should be asked in the Database SQL forum (PL/SQL or Database General Forum (General Database Discussions but being a nice guy familiar with SQL*Loader I will "give it a go".
    The error message you are getting indicates that you have a syntax error in your control file. The syntax for the APPEND keyword is APPEND INTO TABLE table_name. So change "APPEND INTO xxgfs_gen_text_lookups" to "APPEND INTO TABLE xxgfs_gen_text_lookups".
    Mike

  • CSV file data upload problem

    Hi all,
    I am new to the oracle technology.
    While uploading the data from csv file i got this error
    "SQL*Loader-350: Syntax error at line 4.
    Expecting keyword TABLE, found "xxgfs_gen_text_lookups".
    APPEND INTO xxgfs_gen_text_lookups"
    my csv file data is
    Invoice Match Options,,,Invoice,,
    Invoice Match Options,,,Receipt,,
    Invoice Match Options,,,Purchase Order,,X
    Invoice Type,A 00,Advance,Standard,Standard invoice,
    Invoice Type,B 00,Expense,Standard,Standard invoice,
    Invoice Type,2 00,Debit Memo,Credit Memo,Credit Memo,
    Invoice Type,2 20,EDI Debit Memo,Credit Memo,Credit Memo,
    Invoice Type,1 00,Invoice,Standard,Standard invoice,
    Invoice Type,1 01,Arrow Credit,Standard,Standard invoice,,
    Invoice Type,1 10,Recurring Payments,Standard,Standard invoice,,
    Invoice Type,1 20,EDI Invoices,Standard,Standard invoice,,
    Invoice Type,1 21,Imaged Invoice,Standard,Standard invoice,X,Default when entering from form
    Invoice Tax Code,XMT,DO NOT USE,,,,
    Invoice Tax Code,STE,DO NOT USE,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code,,,,,,
    Invoice Tax Code
    If i am removing the blank row then also it is giving the same problem.
    If anybody face the same problem then please help me out.
    thanks in advance to u all for ur help.
    -Rajnish

    Running SQL*Loader as:
      sqlload userid=... control=... data=... log=...
    HOSTSTR logical has been set to same value as your connection string but
    without domain name.
    When you have specified connect string (ie. SCOTT/TIGER@DATABASE) but no
    domain you receive these errors:
      SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
      ORA-12154: TNS:could not resolve service name
    When you have not specified connect string (ie. SCOTT/TIGER) you receive
    these errors:
      SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
      ORA-12162: TNS:service name is incorrectly specified
    Your sqlnet.ora has:
      names.default_domain entry = world
    The syntax in your tnsnames.ora entry is correct.
    Your entry in tnsnames.ora does not include the .WORLD extension (default
    domain from sqlnet.ora).
    Solution Description
    Specify the .WORLD in your tnsnames.ora and also in your connect string.
    This will remove the error.
    Also, ensure you are not hitting Bug 893290.  Can you connect to the database from that server using sqlplus?

  • Flat File Data Loads to BI 7.0

    Hi Experts,
    Please update me what is the best approach i have to follow for the below scenario of Flat File Data Loads
    I will get data in Excel ....with Two worksheets....from the user
    My requirment is to place the file in Central location avaliable to the user and BW to update if any changes necessary  and want to load data(full0  to bw from file if there are any changes
    Please update me how to deal with this scenarion of Two work sheets,In a central location...
    Thanks

    Easiest thing would be to use a DSO with change log to handle the changes to pass onto to any cubes and load a full every night
    Then let the change log worry about any changes to the workbook
    You have to be careful about the DSO keys though for this to work properly
    Now to automate the loads - just how are you planning to create the infopackage as it will only read a csv and not the binary xls
    Well it will read the binary xls if you maybe use a dbconnect with a jdbc driver to read the xls (that's on my next thing to do - but if you are as your user id suggests a "bw learner" then that may be a bit complicated)
    The only other thign to do is to write a macro that automatically creates the csv file on the app server when the user quits the xls
    Or off course you can just dump the csv each night - but then that is a manual task and in systems I design I hate manual tasks as staff go on holiday and peopel change jobs and it's not really very SoX compliant

  • Data Loading Error : ToomanyError records.

    Hi All,
    I got Data Loading error when I am loading from Flat File.
    Following is the error message :
    Too many error records - update terminated
    Error                             18 in the update
    No SID Found for value '00111805' of Characterstic ZUNIQUEID (Message No 70)
    can anybody help in resolving the issue.
    Regards,
    Chakravarthy

    hi
    Check the format of your charecteristics and key figures .
    Check you put data separators in you flat files approriately
    In the particular charecteristics ZUNIQUEID  ,ensure data is consistent...check the related tables
    Assign points if useful
    Regards
    N Ganesh

  • Data Load error Please respond ASAP

    Hi ,
    When i am trying to load data for year 07 using rule files its showing an error and aborting the data load
    Error Msg " Data Value [2007] Encountered before all dimensions Selected,[5] Records Completed"
    Any help greatly appreciated.
    Thanks

    Key here is that 5 records were loaded before failing on the 6th, indicating it's not a header issue on the load rule.
    Check the first 5 records and see how the column containing 2007 differs between them and the failing 6th record. Perhaps the 6th record has a null (as indicated eariler) or prehaps 2007 is not the name of the member in the outline.
    I have had both issues give similar error results.
    J

  • Most common BW data load errors in production and how to solve them ..

    Hi All,
    Most common BW data load errors in production and how to solve them ..
    Any doc on it ,if so plz send it across to this id [email protected]
    Thanks in advance.
    Rgrds
    shoba

    hi
    1) RFC connection lost.
    2) Invalid characters while loading.
    3) ALEREMOTE user is locked.
    4) Lower case letters not allowed.
    5) While loading the data i am getting messeage that 'Record
    the field mentioned in the errror message is not mapped to any infoboject in the transfer rule.
    6) object locked.
    7) "Non-updated Idocs found in Source System".
    8) While loading master data, one of the datapackage has a red light error message:
    Master data/text of characteristic 'so and so' already deleted .
    9) extraction job aborted in r3
    10) request couldnt be activated because theres another request in the psa with a smaller sid
    11) repeat of last delta not possible
    12) datasource not replicated
    13) datasource/transfer structure not active ´
    14) Idoc Or Trfc Error
    15. ODS Activation Error

  • What are the frequent data load errors in production support?

    what are the frequent data load errors in production support?

    It is a long list. Here is some of them.
    1. Idoc not arriving from source system.
    2. previous processes failed.
    3. change run unsucessful or did not run properly and data in master data is messed up.
    4. invalid characteristics in the data.
    5. Duplicate records found.
    and on  and on.
    Ravi Thotahdri

Maybe you are looking for

  • How to solve this "amnesia" protect problem

    Hi All I have a two nodes one quorum cluster environment. I just see this problem: I shutdown nodeA and all all othe resource groups switch to nodeB, it works fine and I believe quorum device vote belongs to nodeB. Then I shutdown nodeB and power on

  • Activation fee for trading in faulty phones?

    I was going to try and trade in my EVO LTE for the Galaxy but my 30 days will probably be up before Best Buy has stock for trade in. I realize if I switched phones I would have to pay an additional activation fee. But is there an additional fee if yo

  • N97 Home Screen Problems

    Can somebody please help me here, I've just got an N97 as upgrade from N95 and I'm tearing my hair out already. The widgets on the main home screen, ie the box you can amend via 'Add Content' with the contacts/calender/mail/camera or whatever ppl wan

  • Diferences with assets amounts after migration

    Hi Gurus!! We need your knowledge!! We found some diferences between asset balances (transaction S_ALR_87011964) and Financial Statement (transaction S_PL0_86000028) amounts after migrate to ECC6. We have read many notes and we havent found any solut

  • Att: NLSurfMan

    Still remember u code a file called "Explorer.jsp"(<-- file manager)?????? i follwed ur codes but there are errors which i cannot solved.Can u help me to solve? <html> <head> </head> <body> <style> P,BODY,TD font-family: courier new; </style> <pre> <