Error in Loading a text file

Hi Experts,
I am having a little problem in uploading a file in a table
File format is as follows
weekly_eft_repo  1.0                                                                                                                           Page: 1
CDC:00304 / Sat Oct-31-2009     Weekly EFT Sweep for 25/10/09 - 31/10/09  Effective Date 03/11/09         Sat Oct-31-2009 22:06:14
Bill to
Retailer Retailer Name                  Name on Bank Account           Bank ABA   Bank Acct            On-line Amount  Instant Amount  Total Amount
======== ============================== ============================== ========== ==================== =============== =============== ===============
0200101 Triolet Popular Store          Triolet Popular Store          111111111  62030100130659            10,868.00            0.00       10,868.00
0200103 Le Cacharel Snack              Le Cacharel Snack              111111111  62030100130813             9,728.00            0.00        9,728.00
0200104 Advanced Co-operative Self Ser Advanced Co-operative Self Ser 111111111  111111111                  7,334.00            0.00        7,334.00
0200105 Chez Popo Supermarket          Chez Popo Supermarket          111111111  61030100044898            30,932.00            0.00       30,932.00
0200106 Vana Supermarket               Vana Supermarket               111111111  111111111                 17,775.00            0.00       17,775.00
0200107 Mont Choisy Store              Mont Choisy Store              111111111  62030100130804             8,840.00            0.00        8,840.00
0200108 Vijay Store                    Vijay Store                    111111111  62030100131229            16,416.00            0.00       16,416.00
0200109 Neptune Confection             Neptune Confection             111111111  62030100130931            11,077.00            0.00       11,077.00
0200110 Antoine Store                  Antoine Store                  111111111  111111111                  2,470.00            0.00        2,470.00
0200111 P.S.C Cold Storage             P.S.C Cold Storage             111111111  111111111                 10,431.00            0.00       10,431.00
0200113 Mini Prix Boutique             Mini Prix Boutique             111111111  62030100131501            26,315.00            0.00       26,315.00
0200114 Hotel Cassim                   Hotel Cassim                   111111111  111111111                135,147.00            0.00      135,147.00My code is as follows:
create table weekly_eft_temp              
            (line varchar2(4000))                    
            ORGANIZATION EXTERNAL (                
             TYPE oracle_loader                    
             DEFAULT DIRECTORY GTECHFILES         
             ACCESS PARAMETERS (                  
               RECORDS DELIMITED BY NEWLINE       
               CHARACTERSET WE8MSWIN1252       
               BADFILE 'weekly_eft.bad'         
               DISCARDFILE 'weekly_eft.dis'     
               LOGFILE 'weekly_eft.log'         
               FIELDS TERMINATED BY X'0D' RTRIM 
                  REJECT ROWS WITH ALL NULL FIELDS   
                    line char(4000)                  
                  LOCATION ('weekly_eft_report_c00381.rep')   
               PARALLEL                              
               REJECT LIMIT UNLIMITED ;
               drop table weekly_eft_temp;
--        dbms_output.put_line('Val iS :'||l_Sql);        
INSERT INTO weekly_eft_report_temp 
         (Bill_to_Retailer     ,
          Retailer_Name        ,
          Name_on_Bank_Account ,
          Bank_ABA             ,
          Bank_Acct            ,
          On_line_Amount       ,
          Instant_Amount       ,
          Total_Amount         ,
          CDC                  ,
          SOURCE               ,
          INSERTED_DATE        ,
          UPLOADED                      
       select                            
          Bill_to_Retailer     ,
          Retailer_Name        ,
          Name_on_Bank_Account ,
          Bank_ABA             ,
          Bank_Acct            ,
          On_line_Amount       ,
          Instant_Amount       ,      
          Total_Amount         ,         
          '00381'                                     ,
          'weekly_eft_report_c00381.rep'              ,                              
           sysdate                                    ,
           'N'                            
          from (                                
                 select regexp_substr(line, '[^ ]+', 1, 1) as Bill_to_Retailer,
                        regexp_substr(line, '[^ ]+', 1, 2) as Retailer_Name,
                        regexp_substr(line, '[^ ]+', 1, 3) as Name_on_Bank_Account,
                        regexp_substr(line, '[^ ]+', 1, 4) as Bank_ABA,
                        regexp_substr(line, '[^ ]+', 1, 5) as Bank_Acct,
                        regexp_substr(line, '[^ ]+', 1, 6) as On_line_Amount,
                        regexp_substr(line, '[^ ]+', 1, 7) as Instant_Amount,
                        regexp_substr(line, '[^ ]+', 1, 8) as Total_Amount
                 from weekly_eft_temp
                )Any help will be mostly appreciated
Edited by: Kevin CK on 17-Feb-2010 21:48
Edited by: Kevin CK on 17-Feb-2010 21:49

Yes ok.
This is my database table for which i have the following columns
TABLE weekly_eft_report_temp
Name                                      Null?    Type                       
BILL_TO_RETAILER                          NOT NULL VARCHAR2(15)               
RETAILER_NAME                                      VARCHAR2(100)              
NAME_ON_BANK_ACCOUNT                               VARCHAR2(100)              
BANK_ABA                                           VARCHAR2(1)                
BANK_ACCT                                          VARCHAR2(1)                
ON_LINE_AMOUNT                                     NUMBER                     
INSTANT_AMOUNT                                     NUMBER                     
TOTAL_AMOUNT                                       NUMBER                     
SOURCE                                             VARCHAR2(100)              
INSERTED_DATE                                      DATE                       
CDC                                       NOT NULL VARCHAR2(6)                
UPLOADED_DATE                                      DATE                       
UPLOADED                                           CHAR(1)               
         )                       Now i a flat file that is as follows:
weekly_eft_repo  1.0                                                                                                       Page: 1
CDC:00304 / Sat Oct-31-2009     Weekly EFT Sweep for 25/10/09 - 31/10/09  Effective Date 03/11/09         Sat Oct-31-2009 22:06:14
Bill to
Retailer Retailer Name                  Name on Bank Account           Bank ABA   Bank Acct            On-line Amount  Instant Amount  Total Amount
======== ============================== ============================== ========== ==================== =============== =============== ===============
0200101 Triolet Popular Store          Triolet Popular Store          111111111  62030100130659            10,868.00            0.00       10,868.00
0200103 Le Cacharel Snack              Le Cacharel Snack              111111111  62030100130813             9,728.00            0.00        9,728.00
0200104 Advanced Co-operative Self Ser Advanced Co-operative Self Ser 111111111  111111111                  7,334.00            0.00        7,334.00
0200105 Chez Popo Supermarket          Chez Popo Supermarket          111111111  61030100044898            30,932.00            0.00       30,932.00
0200106 Vana Supermarket               Vana Supermarket               111111111  111111111                 17,775.00            0.00       17,775.00
0200107 Mont Choisy Store              Mont Choisy Store              111111111  62030100130804             8,840.00            0.00        8,840.00
0200108 Vijay Store                    Vijay Store                    111111111  62030100131229            16,416.00            0.00       16,416.00
0200109 Neptune Confection             Neptune Confection             111111111  62030100130931            11,077.00            0.00       11,077.00
0200110 Antoine Store                  Antoine Store                  111111111  111111111                  2,470.00            0.00        2,470.00
0200111 P.S.C Cold Storage             P.S.C Cold Storage             111111111  111111111                 10,431.00            0.00       10,431.00
0200113 Mini Prix Boutique             Mini Prix Boutique             111111111  62030100131501            26,315.00            0.00       26,315.00
0200114 Hotel Cassim                   Hotel Cassim                   111111111  111111111                135,147.00            0.00      135,147.00
The columns in the flat file will need to match the column in my table and it should take the data below for eg in my database table i should have the corresponding columns having the data.
Now i have created an external table weekly_eft_temp which will load the content of the flat file and that has been done.
Now i have queried that external table so that i can seperate the data( i.e ignore the first 6 lines) and then seperate the data from the columns and insert it into my table columns
Right now what i am getting is as follows in my external table ( I have downloaded it in an excel sheet so that you can see the results)
Basically its taking data which i dont need in my file. I need to select on the data below the columns as you can notice in my sample of flat file
BILL_TO_RETAILER     RETAILER_NAME     NAME_ON_BANK_ACCOUNT     BANK_ABA     BANK_ACCT     ON_LINE_AMOUNT     INSTANT_AMOUNT     TOTAL_AMOUNT     '00381'     'WEEKLY_EFT_REPORT_C00381.REP'     SYSDATE     'N'
weekly_eft_repo     1.0     t     o     t     t     o     t     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
Totals     17,478,337.00     27,700,427.00     10,222,090.00     27,700,427.00                    00381     weekly_eft_report_c00381.rep     18-FEB-10     N
Total     Records     511     /     Blocks     /     Hash     :     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
Retailer     Name     Bank     Name     on     Bank     Account     Bank     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
End                                        00381     weekly_eft_report_c00381.rep     18-FEB-10     N
Debits     18,122,383.00     28,592,120.00     10,469,737.00     28,592,120.00                    00381     weekly_eft_report_c00381.rep     18-FEB-10     N
Credits     -644,046.00     -891,693.00     -247,647.00     -891,693.00                    00381     weekly_eft_report_c00381.rep     18-FEB-10     N
Count     On-line     Instant     Instant     Amount     Total     Amount          00381     weekly_eft_report_c00381.rep     18-FEB-10     N
Copyright     (c)     2010     GTECH     Corporation.     All     rights     reserved.     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
Copyright     (c)     2010     GTECH     Corporation.     All     rights     reserved.     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
CDC:00381     /     Sweep     Jan-16-2010     Weekly     EFT     Sweep     for     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
Bill                                        00381     weekly_eft_report_c00381.rep     18-FEB-10     N
==============     ======================     ======================     ======================                         00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201020     Store     111111111     Wolmar     Store     111111111     111111111     684.00     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201019     Boutique     111111111     Rohan     Boutique     111111111     62030100133550     44,091.00     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201017     Gourmande     111111111     La     Gourmande     111111111     111111111     9,809.00     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201015     News     Kiosks     Kiosks     Global     News     Kiosks     111111111     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201014     Store     111111111     Jeewan     Store     111111111     62030100134484     14,748.00     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201013     Plus     HQ     HQ     Kaddy     Plus     HQ     111111111     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201012     HQ     111111111     Winners     HQ     111111111     111111111     968,333.00     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201011     Ltee     HQ     HQ     Somags     Ltee     HQ     111111111     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201009     Headquarters     Headquarters     Coronation     Headquarters     111111111     111111111     322,268.00     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201008     Snack     111111111     Baramia     Snack     111111111     111111111     7,986.00     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201005     Store     111111111     Mamou     Store     111111111     62030100134011     18,977.00     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201004     Concorde     Boutik     Boutik     La     Concorde     Boutik     111111111     00381     weekly_eft_report_c00381.rep     18-FEB-10     N
0201003     2000     111111111     Store     2000     111111111     111111111     75,295.00     00381     weekly_eft_report_c00381.rep     18-FEB-10     NEdited by: Kevin CK on 18-Feb-2010 02:02

Similar Messages

  • Error loading a text file during creation of data load rule

    Hi,
    I am trying to load this text file but whenever I open File -> Open Data File and then click on the file, it says "Invalid Blank Character in name". I tried changing the name of the file and everything but I do not understand what it really means. Can anyone help me out please? This seems like a simple error but I am unable to figure it out. Thanks.
    -- Adi

    As Glenn said, there should not be any space in the path that causes the error.For instance if you have ur file in the desktop(C:\Documents and Settings\Desktop), there would be space in between Documents and Settings. To avoid this, you could directly save in your local disk drive(C:\, D:, E:\).
    Regards
    Cnee

  • How to load a text file?

    I'm trying to load a text file and I've run into a wall. So
    far, I've loaded swf files, image files and XML files without
    problems. But the text files just don't seem to load.
    It's not a tough situation. The files are in the same
    directory as the application. When I run it, I see no sign that the
    file has loaded, but haven't found the error trapping to tell me
    what is (not) going on.
    The code below was culled from examples on the web, they seem
    fairly consistent, and they are copied pretty much exactly. and I
    put them both into a single action to test them.
    Any clues as to what is not happening? I need to read an old
    txt data file that was used with AS2, with pairs of names and
    variables. The first example just reads a couple of variables. The
    second just reads some random text. I'm just trying to see what
    works here, so I can incorporate working code into the real
    program.
    Thanks for your help.

    Thanks Joergen,
    I put in the changes you suggested and still no sign that the
    files are even being opened., but it's very good to have the
    feedback. Just the fact that someone is getting them to run gives
    me confidence in the basic code. I'll hack on it more and let you
    know what the answer turns out to be for me.
    Thanks.

  • Loading a text file to a buffer

    Hi,
    I have a very simple question,
    I have a text file which I want to read and load it in a string buffer, but I don't want to user BufferedReader and append line by line,
    is it possible to load the text file into StringBuffer without any loops / appends?
    Thanks,
    S.

    File file = new File("fileName.fileExtension");
    byte[] c = new char[file.length()];
    FileReader reader = new FileReader(file);
    try{
        reader.read(c);
    }catch(IOException e) { System.out.println("An error has ocurred");}
    String makeMeString = new String(c);
    Stringbuffer buff = new StringBuffer(makeMeString);

  • "how to load a text file to oracle table"

    hi to all
    can anybody help me "how to load a text file to oracle table", this is first time i am doing, plz give me steps.
    Regards
    MKhaleel

    Usage: SQLLOAD keyword=value [,keyword=value,...]
    Valid Keywords:
    userid -- ORACLE username/password
    control -- Control file name
    log -- Log file name
    bad -- Bad file name
    data -- Data file name
    discard -- Discard file name
    discardmax -- Number of discards to allow (Default all)
    skip -- Number of logical records to skip (Default 0)
    load -- Number of logical records to load (Default all)
    errors -- Number of errors to allow (Default 50)
    rows -- Number of rows in conventional path bind array or between direct path data saves (Default: Conventional path 64, Direct path all)
    bindsize -- Size of conventional path bind array in bytes (Default 256000)
    silent -- Suppress messages during run (header, feedback, errors, discards, partitions)
    direct -- use direct path (Default FALSE)
    parfile -- parameter file: name of file that contains parameter specifications
    parallel -- do parallel load (Default FALSE)
    file -- File to allocate extents from
    skip_unusable_indexes -- disallow/allow unusable indexes or index partitions (Default FALSE)
    skip_index_maintenance -- do not maintain indexes, mark affected indexes as unusable (Default FALSE)
    commit_discontinued -- commit loaded rows when load is discontinued (Default FALSE)
    readsize -- Size of Read buffer (Default 1048576)
    external_table -- use external table for load; NOT_USED, GENERATE_ONLY, EXECUTE
    (Default NOT_USED)
    columnarrayrows -- Number of rows for direct path column array (Default 5000)
    streamsize -- Size of direct path stream buffer in bytes (Default 256000)
    multithreading -- use multithreading in direct path
    resumable -- enable or disable resumable for current session (Default FALSE)
    resumable_name -- text string to help identify resumable statement
    resumable_timeout -- wait time (in seconds) for RESUMABLE (Default 7200)
    PLEASE NOTE: Command-line parameters may be specified either by position or by keywords. An example of the former case is 'sqlldr scott/tiger foo'; an example of the latter is 'sqlldr control=foo userid=scott/tiger'. One may specify parameters by position before but not after parameters specified by keywords. For example, 'sqlldr scott/tiger control=foo logfile=log' is allowed, but 'sqlldr scott/tiger control=foo log' is not, even though the position of the parameter 'log' is correct.
    SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\PFS2004.CTL LOG=D:\PFS2004.LOG BAD=D:\PFS2004.BAD DATA=D:\PFS2004.CSV
    SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\CLAB2004.CTL LOG=D:\CLAB2004.LOG BAD=D:\CLAB2004.BAD DATA=D:\CLAB2004.CSV
    SQLLDR USERID=GROWSTAR/[email protected] CONTROL=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.CTL LOG=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.LOG BAD=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.BAD DATA=D:\GROW\DEACTIVATESTAFF\DEACTIVATESTAFF.CSV

  • How can I use sql loader to load a text file into a table

    Hi, I need to load a text file that has records on lines tab delimited into a table. How would I be able to use the sql loader to do this? I am using korn shell to do this. I am very new at this...so any kind of helpful examples or documentation would be very appreciated. I would love to see some examples to help me understand if possible. I need help! Thanks alot!

    You should check out the documentation on SQL*Loader in the online Oracle document titled Utilities. Here's a link to the 9iR2 version of it: http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96652/part2.htm#436160
    Hope this helps.

  • How to load a text file int JEditorPane and highlight some words (Urgent !)

    I want to load a text file into a JEditorPane and then highlights some keywords such as while,if and else.I am using an EditorKit in order to style the JEditorPane. I have no difficulty while giving the input through the keyboard but lots of exceptions are thrown if i try to load the string from a file.

    Hi,
    I think the setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace) will solve the problem.
    You can create your own Styled Document and set it to the Editor Pane.

  • Error in loading the WSDL file. Check the error log for more details

    Hello,
    I am trying to create a Import Adaptive Webservice Model. I am using the WSDL:
    http://www.abysal.com/soap/AbysalEmail.wsdl
    I am getting the below error when I choose WSDL source as UDDI or file (I am not using any logical destination)
    "Error in loading the WSDL file. Check the error log for more details."
    Where can i see the error log? And what is the solution to fix this?
    I am able to create the model if i save the wsdl locally on my machine and choose Local File System or File as the WSDL source. But at runtime this fails as the application tries to read the WSDL for metadata info and it looks into the application server for this file.
    I also tried creating the old webservice model. And it is able to create the model. But I feel I need to use the new model as this one is deprecated.
    Thanks,
    Sachin

    Hi
    For the logs you can search in this directory
    Goto Window->Show view->Other->PDE Runtim->Error Log
    please try this may it would help you out, try to create a model for you Web Service using Web Service Model (DEPRECATED)
    See this link:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/ep/integration%2bof%2bweb%2bservices%2b-%2bdifferent%2bscenarios

  • Error in loading the WSDL file

    hi
    when i am creating a Adaptive Webservice model with the sneak preview 2004s
    while Choosing the published service from UDDI
    i am getting and error called
    "Error in loading the WSDL file"
    i have gone through the log files it basically saying that
    Caused by: java.io.IOException: Cannot connect to http://192.168.1.69:50100/QuickCarRentalService/Config1?wsdl, passing via http proxy: :80: Connection refused: connect
    but i am not using any proxy server
    what all changes i need to do in proxy server settings
    Regards
    JM

    Hi John,
    For changing the Proxy Settings in NWDS.
    Navigate to Window --> Preferences.
    Under Work Bench, Select Proxy Settings.
    There is a Check box saying "Use Proxy Sever", uncheck this one;
    and try imprting you WSDL file again.
    Hope it helps.
    Regards,
    Alka.

  • Loading a text file on startup into a hashtable

    I am trying to load to seperate textfiles into the same hashtable.
    The textfiles are something like an employee and employee number everything goes in at the same time. How do i load these text files into the hashtable. Also any good tutorials or code samples on hashtables would be greatly appreciated.
    Thanks In Advance

    You read the text files, one line at a time, and break up each line in whatever way you need to. Then you choose the bits to put in the hashtable (key and value) for each line and put those bits into the hashtable.
    http://java.sun.com/docs/books/tutorial/essential/index.html
    http://java.sun.com/docs/books/tutorial/collections/index.html

  • Loading a text file from a relative location in shockwave

    Hi all
    I'm REALLY sorry I have to post about such an inane problem.
    I've googled this and looked in forums and found several
    suggestions but none of them are working for me. I want to load a
    text file from the same directory as my movie. I can get this
    working in authoring mode, in a projector, and in a shockwave movie
    on the local machine (using getNetText("/text.txt")).
    But when i put the shockwave movie on a server, it does NOT
    work. The macromedia documentation says that getNetText works with
    relative URLs. But when I put in the full URL, it does work, so
    obviously the shockwave movie is having a problem finding the text
    file which IS in the same directory as it.
    Any suggestions / ideas? All i want to do is access a text
    file :)
    Sorry again for such a lame problem
    Mike

    thanks - this worked. I also had to not use a repeat loop to
    wait for netDone() to return true.
    Thanks again
    MIke

  • Loading a text file in a gzip or zip archive using an applet to a String

    How do I load a text file in a gzip or zip archive using an applet to a String, not a byte array? Give me both gzip and zip examples.

    This doesn't work:
              try
                   java.net.URL url = new java.net.URL(getCodeBase() + filename);
                   inputStream = new java.io.BufferedInputStream(url.openStream());
                   if (filename.toLowerCase().endsWith(".txt.gz"))
                        inputStream = (java.io.InputStream)(new java.util.zip.GZIPInputStream(inputStream));
                   else if (filename.toLowerCase().endsWith(".zip"))
                        java.util.zip.ZipInputStream zipInputStream = new java.util.zip.ZipInputStream(inputStream);
                        java.util.zip.ZipEntry zipEntry = zipInputStream.getNextEntry();
                        while (zipEntry != null && (zipEntry.isDirectory() || !zipEntry.getName().toLowerCase().endsWith(".txt")))
                             zipEntry = zipInputStream.getNextEntry();
                        if (zipEntry == null)
                             zipInputStream.close();
                             inputStream.close();
                             return "";
                        inputStream = zipInputStream;
                   else
                   byte bytes[] = new byte[10000000];
                   byte s;
                   int i = 0;
                   while (((s = inputStream.read())) != null)
                        bytes[i++] = s;
                   inputStream.close();
            catch (Exception e)
              }

  • Error while loading the WSLD file

    Hi all
    I am trying to consume a Webservice. When i try to create the Model out of the WSDL file, it says "Error while loading the WSDL file".
    Its an XI webservice, so i cannot view it from Webservice navigator.
    How could i find out that, the problem is with the Webservice or i am missing any thing
    Kindly help
    regards
    Deepu

    Hi
    I checked the log and i am getting the following exceptions
    1.DynamicProxy.TempDir=C:\DOCUME1\DEEPUM1\LOCALS~1\Temp\, DynamicProxy.INetProxy.Host=}'
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:413)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model.
    2. Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Invalid Response Code: (401) Unauthorized. The requested URL was:"http://Pinnacle:50000/XISOAPAdapter/MessageServlet?channel=:PowerEP_BusService:Out_SOAP_DocViewDownload" -> com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL
    3. java.lang.NullPointerException
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.initParameters_DocumentStyle(DOperationImpl.java:59)
    Is this any authorization problem
    regards
    Deepu

  • Error while loading CSV Flat file

    Hi,
    I am getting the following errors while loading a flat file into the DataSource:
    1. Error 'Unit CS is not created in language EN...' at conversion exit CONVERSION_EXIT_CUNIT_INPUT (field UNIT record 1, value CS)
    2. Error 'The argument '9,018.00' cannot be interpreted as anumber' on assignment field /BIC/ZTVSA record 1 value 9,018.00
    What can I do to correct this?
    Thanks

    I am taking the following (Headers) fields in this order in a CSV file :
    0LOGSYS     ,0MATERIAL,0UNIT,0BASE_UOM,0COMP_CODE,0PLANT,0FISCPER,0FISCVARNT,
    0CURRENCY,0PRICE_TYPE,ZTVSAKF,ZVOTVSKF,0PRICE_CTRL,ZPRICE_STKF,0PRICE_BASE,
    0VAL_CLASS,0CURTYPE,0VALUATION
    I have added all these fields in the DataSource as well. T-Code CUNIT has CS as a Unit. 
    I deleted and recreated the DataSource and am getting this error now:
    Error 'Unit CS is not created in language EN...' at conversion exit CONVERSION_EXIT_CUNIT_INPUT (field UNIT record 1, value CS)
    Error 'The argument '1,398.00' cannot be interpreted asa number' on assignment field /BIC/ZTVSAKF record 1 value 1,398.00
    Error 'The argument '8,10.00' cannot be interpreted as anumber' on assignment field /BIC/ZTVSKF record 1 value 8,10.00
    Error 'Unit 0 is not created in language EN...' at conversion exit CONVERSION_EXIT_CUNIT_INPUT (field BASE_UOM record 1, value )
    Error 'Unit CS is not created in language EN...' at conversion exit CONVERSION_EXIT_CUNIT_INPUT (field UNIT record 1, value CS)
    Error 'The argument '5,50.00' cannot be interpreted as anumber' on assignment field /BIC/ZTVSAKF record 1 value 5,50.00
    Does it matter what order the columns are in?

  • Log Error Messages in the Text File using Flex

    Hi,
    I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
    I do not know how to achive such funcionality.
    looking forward for your help in this regard. Please have a look on the code as pasted below:
    private function onItemRollOver(evt : ListEvent) : void
                    try
                             var s:String= evt.target.Participation;
                               var partRange:Number = evt.rowIndex;
                            if (partRange == 2)
                                    dgCohorts.setStyle( "rollOverColor", "red" );
                            if (partRange == 7)
                                dgCohorts.setStyle( "rollOverColor", "green" );
                            dgCohorts.validateNow();
                       catch(e:Error)
                                var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");                        
                                callLaterErrorEvent.error = e;
                                systemManager.dispatchEvent(callLaterErrorEvent);
    Thanks,
    Vivek Jain

    Hi,
    I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
    I do not know how to achive such funcionality.
    looking forward for your help in this regard. Please have a look on the code as pasted below:
    private function onItemRollOver(evt : ListEvent) : void
                    try
                             var s:String= evt.target.Participation;
                               var partRange:Number = evt.rowIndex;
                            if (partRange == 2)
                                    dgCohorts.setStyle( "rollOverColor", "red" );
                            if (partRange == 7)
                                dgCohorts.setStyle( "rollOverColor", "green" );
                            dgCohorts.validateNow();
                       catch(e:Error)
                                var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");                        
                                callLaterErrorEvent.error = e;
                                systemManager.dispatchEvent(callLaterErrorEvent);
    Thanks,
    Vivek Jain

Maybe you are looking for

  • HELP!! How can I find and delete duplicate mp3 files.

    I have a zillion copies of songs and I want to find and delete duplicate mp3 files. I have used MediaRage to find the duplicate files (16 thousand or so) but it can't delete them. It will take a million yrs to delete them manually. Does anyone know a

  • Update 10.8.3

    I have a problem with this update on my Mac Air. I have already started a few times the same "UPDATE". And despite restarting the Mac, I always come back to the same page wit this update still awaiting to be installed (so with the UPDATE button activ

  • Creating an air app as a native library

    Is there a way to build a swf with adobe air that will create a native library(.a,.so,dll, etc) so that I can load it from inside another application?

  • Fresh install onto new Hard Drive

    Hey people, I have recently upgraded my iBook G3 300Mhz with a 60Gb hard drive and 512 Mb RAM. The Hard drive I put in was brand new - nothing on it whatsoever. I have been trying to install an OS on the hard drive and started with a Panther disc I h

  • Unable to download music as I get an error - Timed Out Try later

    Every time I log into Itunes and attempt to download a tune, I get a message saying 'Timed - Out' try later.