Error in laoding data from a text file

Hello Experts,

I have some difficulty to well to be honest a lot of problems with the next file.

I have this text file that I need to import into my oracle table.

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
 0200116 Aman Snack                     Aman Snack                     111111111  62030100129481             7,334.00            0.00        7,334.00
 0200117 Best For Less Company Ltd      Best For Less Company Ltd      111111111  111111111                  3,325.00            0.00        3,325.00
 0200118 Central Way                    Central Way                    111111111  111111111                 25,137.00            0.00       25,137.00
 0200119 Amba Veerapen                  Amba Veerapen                  111111111  62030100129436            34,656.00            0.00       34,656.00
 0200121 Tang Way                       Tang Way                       111111111  111111111                 79,002.00            0.00       79,002.00
 0200122 Football Pools Collector       Football Pools Collector       111111111  111111111                 17,024.00            0.00       17,024.00
 0200123 Kim Lee                        Kim Lee                        111111111  62030100129422            18,544.00            0.00       18,544.00
 0200126 Chez Andrex                    Chez Andrex                    111111111  111111111                113,734.00            0.00      113,734.00
 0200127 Sungkoora Pools & Lottery Hous Sungkoora Pools & Lottery Hous 111111111  111111111                 77,368.00            0.00       77,368.00
 0200128 Sun Boutik                     Sun Boutik                     111111111  62030100131324            21,033.00            0.00       21,033.00
 0200129 Guranna Pools House            Guranna Pools House            111111111  111111111                 51,661.00            0.00       51,661.00
 0200130 AH King                        AH King                        111111111  111111111                 19,475.00            0.00       19,475.00
 0200131 S. D. S Pools House            S. D. S Pools House            111111111  62030100129409            25,346.00            0.00       25,346.00
Code for import
CREATE TABLE weekly_eft_temp
(
  Bill_to_Retailer       NUMBER(7),
  Retailer_Name          VARCHAR2(80 BYTE),
  Name_on_Bank_Account   VARCHAR2(80 BYTE),
  Bank_ABA               NUMBER(9),
  Bank_Acct              VARCHAR2(20 BYTE),
  On_line_Amount         NUMBER(10,2),
  Instant_Amount         NUMBER(10,2),
  Total_Amount           NUMBER(10,2)
)
ORGANIZATION EXTERNAL
  (  TYPE ORACLE_LOADER
     DEFAULT DIRECTORY GTECHFILES
     ACCESS PARAMETERS 
       ( RECORDS FIXED 150 FIELDS --includes new line character
      LRTRIM 
      MISSING FIELD VALUES ARE NULL 
       (Bill_to_Retailer      (1:8)     CHAR(9), 
        Retailer_Name         (10:39)   CHAR(30), 
        Name_on_Bank_Account  (41:70)   CHAR(30), 
        Bank_ABA              (72:81)   CHAR(10),
        Bank_Acct             (83:102)  CHAR(20)
        On_line_Amount        (104:118) CHAR(15), 
        Instant_Amount        (120:134)  CHAR(15), 
        Total_Amount          (136:150)   CHAR(15) 
       ) 
       )
     LOCATION ('weekly_eft_report_c00381.rep')
  )
REJECT LIMIT UNLIMITED
NOPARALLEL
NOMONITORING;
but I have the following error

Error
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "minussign": expecting one of: "column, enclosed, exit, (, ltrim, lrtrim, ldrtrim, missing, notrim, optionally, rtrim, reject, terminated"
KUP-01007: at line 1 column 26
ORA-06512: at "SYS.ORACLE_LOADER", line 19
Can someone help me please. Thank you

Published by: Kevin CK on February 25, 2010 03:33

Kevin CK wrote:
OK, now, I have only this error

You must ignore the header - 7 first lines:

SQL> CREATE TABLE weekly_eft_temp
  2  (
  3    Bill_to_Retailer       VARCHAR2(9),
  4    Retailer_Name          VARCHAR2(80 BYTE),
  5    Name_on_Bank_Account   VARCHAR2(80 BYTE),
  6    Bank_ABA               NUMBER(9),
  7    Bank_Acct              VARCHAR2(20 BYTE),
  8    On_line_Amount         VARCHAR2(15),
  9    Instant_Amount         VARCHAR2(15),
 10    Total_Amount           VARCHAR2(15)
 11  )
 12  ORGANIZATION EXTERNAL
 13    (  TYPE ORACLE_LOADER
 14       DEFAULT DIRECTORY GTECHFILES
 15       ACCESS PARAMETERS
 16         ( records delimited by newline
 17        LOGFILE 'weekly_eft_report_c00381.log'
 18        SKIP 7
 19        FIELDS LDRTRIM
 20        MISSING FIELD VALUES ARE NULL
 21         (Bill_to_Retailer      (1:8)     CHAR(9),
 22          Retailer_Name         (10:39)   CHAR(30),
 23          Name_on_Bank_Account  (41:70)   CHAR(30),
 24          Bank_ABA              (72:81)   CHAR(10),
 25          Bank_Acct             (83:102)  CHAR(20),
 26          On_line_Amount        (104:118) CHAR(15),
 27          Instant_Amount        (120:134)  CHAR(15),
 28          Total_Amount          (136:150)   CHAR(15)
 29         )
 30     )
 31       LOCATION ('weekly_eft_report_c00381.rep')
 32  )
 33  REJECT LIMIT UNLIMITED
 34  NOPARALLEL
 35  NOMONITORING
 36  /

Table created.

SQL> SELECT  BILL_TO_RETAILER,
  2          RETAILER_NAME,
  3          NAME_ON_BANK_ACCOUNT,
  4          BANK_ABA,
  5          BANK_ACCT,
  6          TO_NUMBER(ON_LINE_AMOUNT,'999,999,999.00') ON_LINE_AMOUNT,
  7          TO_NUMBER(INSTANT_AMOUNT,'999,999,999.00') INSTANT_AMOUNT,
  8          TO_NUMBER(TOTAL_AMOUNT,'999,999,999.00') TOTAL_AMOUNT
  9    FROM  weekly_eft_temp
 10  /

BILL_TO_R 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                10868              0        10868
 0200103  Le Cacharel Snack                                  Le Cacharel Snack               111111111 62030100130813                 9728              0         9728
 0200104  Advanced Co-operative Self Ser                     Advanced Co-operative Self Ser  111111111 111111111                      7334              0         7334
 0200105  Chez Popo Supermarket                              Chez Popo Supermarket           111111111 61030100044898                30932              0        30932
 0200106  Vana Supermarket                                   Vana Supermarket                111111111 111111111                     17775              0        17775
 0200107  Mont Choisy Store                                  Mont Choisy Store               111111111 62030100130804                 8840              0         8840
 0200108  Vijay Store                                        Vijay Store                     111111111 62030100131229                16416              0        16416
 0200109  Neptune Confection                                 Neptune Confection              111111111 62030100130931                11077              0        11077
 0200110  Antoine Store                                      Antoine Store                   111111111 111111111                      2470              0         2470
 0200111  P.S.C Cold Storage                                 P.S.C Cold Storage              111111111 111111111                     10431              0        10431
 0200113  Mini Prix Boutique                                 Mini Prix Boutique              111111111 62030100131501                26315              0        26315

BILL_TO_R RETAILER_NAME                                      NAME_ON_BANK_ACCOUNT             BANK_ABA BANK_ACCT            ON_LINE_AMOUNT INSTANT_AMOUNT TOTAL_AMOUNT
--------- -------------------------------------------------- ------------------------------ ---------- -------------------- -------------- -------------- ------------
 0200114  Hotel Cassim                                       Hotel Cassim                    111111111 111111111                    135147              0       135147
 0200116  Aman Snack                                         Aman Snack                      111111111 62030100129481                 7334              0         7334
 0200117  Best For Less Company Ltd                          Best For Less Company Ltd       111111111 111111111                      3325              0         3325
 0200118  Central Way                                        Central Way                     111111111 111111111                     25137              0        25137
 0200119  Amba Veerapen                                      Amba Veerapen                   111111111 62030100129436                34656              0        34656
 0200121  Tang Way                                           Tang Way                        111111111 111111111                     79002              0        79002
 0200122  Football Pools Collector                           Football Pools Collector        111111111 111111111                     17024              0        17024
 0200123  Kim Lee                                            Kim Lee                         111111111 62030100129422                18544              0        18544
 0200126  Chez Andrex                                        Chez Andrex                     111111111 111111111                    113734              0       113734
 0200127  Sungkoora Pools & Lottery Hous                     Sungkoora Pools & Lottery Hous  111111111 111111111                     77368              0        77368
 0200128  Sun Boutik                                         Sun Boutik                      111111111 62030100131324                21033              0        21033

BILL_TO_R RETAILER_NAME                                      NAME_ON_BANK_ACCOUNT             BANK_ABA BANK_ACCT            ON_LINE_AMOUNT INSTANT_AMOUNT TOTAL_AMOUNT
--------- -------------------------------------------------- ------------------------------ ---------- -------------------- -------------- -------------- ------------
 0200129  Guranna Pools House                                Guranna Pools House             111111111 111111111                     51661              0        51661
 0200130  AH King                                            AH King                         111111111 111111111                     19475              0        19475
 0200131  S. D. S Pools House                                S. D. S Pools House             111111111 62030100129409                25346              0        25346

25 rows selected.

SQL> 

SY.

Tags: Database

Similar Questions

  • Load the data from a text file into a table using pl/sql

    Hi Experts,

    I want to load the data from a text file (sample1.txt) to a table using pl/sql

    I used the pl/sql code below

    ***********************************
    declare
    f utl_file.file_type;
    s varchar2 (200);
    c number: = 0;
    Start
    f: = utl_file.fopen('TRY','sample1.txt','R');
    loop
    UTL_FILE.get_line (f, s);
    insert into sampletable (a, b, c) values (s, s, s);
    c: = c + 1;
    end loop;
    exception
    When NO_DATA_FOUND then
    UTL_FILE.fclose (f);
    dbms_output.put_line('No. deles de lignes insérées: ' || c);
    end;

    ***************************************

    and my sample1.txt file looks like

    ***************************************
    1
    2
    3
    ***************************************

    Gets the data inserted, with way below

    Select * from sampletable;

    A, B AND C

    1-1-1
    2-2-2
    3 3 3

    I want that data to get inserted as

    A, B AND C

    1 2 3

    The text file I have is to have three lines, and the first value of each line should go to each column

    Help, please...

    Thank you
    declare
    f utl_file.file_type;
    s1 varchar2(200);
    s2 varchar2(200);
    s3 varchar2(200);
    c number := 0;
    begin
    f := utl_file.fopen('TRY','sample1.txt','R');
    utl_file.get_line(f,s1);
    utl_file.get_line(f,s2);
    utl_file.get_line(f,s3);
    insert into sampletable (a,b,c) values (s1,s2,s3);
    c := c + 1;
    utl_file.fclose(f);
    exception
    when NO_DATA_FOUND then
    if utl_file.is_open(f) then utl_file.fclose(f); ens if;
    dbms_output.put_line('No. of rows inserted : ' || c);
    end;
    

    SY.

  • Average data from multiple text files

    I am new to labVIEW so any help is appreciated:

    I have a 100 txt files with two columns (separate tab) for a value of X and Y.

    I need the average of the values of Y to generate a single file and generate X against Y graph.

    So, how to read the data of these text files? (without having to select each one individually) and the average data and create a chart XY him?

    Thanks in advance

    There is a function to list folder in the palette of the file i/o that will return an array of file names.  Feed this table in a loop to open and read each file in turn.  Put in a new file, build a table with her, process the data or do whatever you want.

  • How to extract specific data from a text file

    Hello world

    For my project, it is necessary that a parameter file is read at the beginning, so that variables be initialized with specific values that change with the user.

    For now, the mode of action is as follows: the values in a sequence specified in a text file are read and saved in a table and the elements of the array are extracted according to their index.

    The problem with this implementation is, that if for any reason any changes file format, for example we want to use a settings file from a previous version of the program, which has the values for the variables of same but in a different order, the only way to have good values for the parameters is to change everything accordingly which is really time wasting.

    Could someone suggest another implementation that make reading the different values independently of their order in the file, for example by analysing the file for specific strings and by reading the value after the string?

    Thank you very much.

    P.S. I've attached a screenshot of the routine, which I use now.

    Hi panagiov,

    Find attached files.

    Method 1: in this you can search for each variable separately. You can use "Live Config file" to get all the keys (variable) at a time, and then you can use for loop to get their values. Or you can access values as indicated in the present code.

    Method 2: Here you will have all the data at once. You will get variables and data (table 2D), you should look for the variables as needed.

    I hope you understand these methods.

    Good luck

  • Received the error when transferring data from the database file

    Hello...

    I have my using SOA 10.1.3.1.0. I am trying to transfer the data from the CSV of the oracle database.

    The settings of connection in file xml oc4j DBA adapter file in the path C:\product\10.1.3.1\OracleAS_1\j2ee\oc4j_soa\application-deployments\default\DbAdapter is shown below.

    < location connector-factory = name of the connector "ist/DB/DBConnection1" = "Adapter database" >
    < config-property name = "xADataSourceName" value = "jdbc/DBConnection1DataSource" / >
    < config-property name = "dataSourceName" value = "loc/DBConnection1DataSource" / >
    < config-property name = "platformClassName" value="oracle.toplink.platform.database.Oracle9Platform"/ >
    < config-property name = "usesNativeSequencing" value = "true" / >
    < config-property name = "sequencePreallocationSize" value = "50" / >
    < config-property name = "defaultNChar" value = "false" / >
    < config-property name = "usesBatchWriting" value = "true" / >
    < connection pooling using 'none' = >
    < / connection pooling >
    < use security-config 'none' = >
    < / security-config >
    < / connector-factory >


    I get the following error:

    < name of part = "summary" >
    < Summary >
    file:/C:/product/10.1.3.1/OracleAS_1/BPEL/domains/default/tmp/.bpel_FileToDb_v1.0_188277739ed1e0b720c1fefd0275d1c0.tmp/FileToAdapterService.WSDL [FileToAdapterService_ptt::insert (FiletodbCollection)] - SISM JCA Execute of operation "insert" has no reason to: could not create/access the TopLink Session.
    This session is used to connect to the data store. Caused by: loc/DBConnection1DataSource not found
    ; nested exception is:
    ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the data store. [Caused by: loc/DBConnection1DataSource not found]
    See the first exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml), and then restart the server. Caused by the Exception TOPLINK-7060 (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.ValidationException

    Description of the exception: could not acquire data source loc/DBConnection1DataSource

    Inner exception: javax.naming.NameNotFoundException: loc/DBConnection1DataSource not found.
    < / Summary >
    < / part >


    What is the error in the loc/DBConnection1DataSource line? Guys thank you in advance...


    Thank you...

    Published by: userus007 on January 2, 2010 17:16

    Published by: userus007 on January 2, 2010 17:18

    Visit similar thread oc4j - RA.xml and data - sources.xml

  • Read data from a text file

    Hi, using Cp 8.01.

    I would like to read the textual data to a text or XML file into a variable in order to display a message (using a form) on my project of Cp can I do this without using Javascript?

    Thank you.

    You need JS.

  • Import data from the text file to open the Document

    This should seem simple, but I can't find a way to import a text file delimited to tab automatically on opening the document.  I can open my form fill pdf document, select Forms > more form Options > data management > Import Data > change the bottom right "Text (*.txt) files" file type, select the file, then import with no problems.  I can't find a way to do this automatically when the document opens.  I know a *.fdf file will do, but my data are in a tab delimited text file.  If this is not possible, is there a program or a script that will convert *.txt to import *.fdf?  Thanks for your time.  Steve

    Have you looked at using custom JavaScript?

    importTextData

    You will need to work on how the data file select the line form.

  • Importing data from a text file in a table

    Hi Experts,

    I have the following flat file
    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
     0200116 Aman Snack                     Aman Snack                     111111111  62030100129481             7,334.00            0.00        7,334.00
     0200117 Best For Less Company Ltd      Best For Less Company Ltd      111111111  111111111                  3,325.00            0.00        3,325.00
     0200118 Central Way                    Central Way                    111111111  111111111                 25,137.00            0.00       25,137.00
    I need to insert the data that it contains in the following table
    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 
    What is the easiest and best to proceed on this?

    Thank you
    Kevin

    If that's what you're looking for, then you can do

    with t
    as
    (
    select 'BILL_TO_RETAILER' col1 from dual union all
    select 'Some unwanted info' from dual union all
    select 'Some unwanted info' from dual union all
    select '==============' from dual union all
    select 'Actual Data' from dual union all
    select 'Actual Data' from dual union all
    select 'BILL_TO_RETAILER' from dual union all
    select 'Some unwanted info' from dual union all
    select 'Some unwanted info' from dual union all
    select '==============' from dual union all
    select 'Actual Data' from dual union all
    select 'Actual Data' from dual
    )
    select col1
      from (
             select col1, last_value(val ignore nulls) over(order by rno) val1
               from (
                     select t.*,
                            case when col1 = 'BILL_TO_RETAILER' then 1 when regexp_like(col1,'=+') then 0 else null end val,
                            rownum rno
                       from t
                    )
           )
     where val1 = 0
       and not regexp_like(col1,'=+')
    
  • Error generating of data from full text search HHC5008

    I created a small RoboHelp HTMLHelp project with 1 book with 2 topics; created using the keywords index via assistants smart index but him compiled CHM gives me the legs of the table of contents/Index/Search, but the search tabs is completely empty (the Index tab is filled and works perfectly)

    When compiling, I see the following error message:

    Generation of full text search data...
    HHC5008: error:
    An unknown error occurred when creating the index.

    PS: I initially had the problem about the itcc.dll who was not registered, but using the regsrv32 command is successful now

    the web search gives me nothing...

    Everything looks good. Other HTML Help Compiler projects without error on your machine? This can help to show if a project is at fault or if there is a problem with the components of the compiler on the machine.

    If you feel capable of doing, please send me the broken .chm file so that I can take a closer look. You can contact me by clicking on my username on the left.

    Pete

  • Using the data from the text file to the plot on a histogram

    Hi professionals of the NC.

    I have a data file text attached with 3 columns of data and I would draw it with a histogram.

    Unfortunately, the histogram data to create will not let me extract the values I want to draw it...

    I've seen some of the older ones on how to do that, unfortunately, it was a very long thread and the screw, images have been corrupted.

    Someone has a great solutions for this...? Really appreciate it!

    Hi Lexen,

    no need to use ExpressVIs:

    I used the simple histogram function, there is a step where you can provide more parameters. And I used LV2011, so the ReadSpreadsheetFile function looks different than in the latest versions of LabVIEW.

    in the desire to tell graphic C Red, G will be blue and D in green...

    I don't know what means DMC, but change properties parcel should be pretty easy!

  • Loading data from a text file

    I have a text in a file archive data that contains various information (numeric and string) I need to load into various controls in a VI that was to open the file and look for some characters of beginning and end of loading?  The information was listed by the VI of control so can I just load a previous series of data using its path and file name of data control?

    I guess that the following numbers the "data OH are listed below:" is supposed to go in a 2D array?

    There are several ways to do so. A simple way is to simply read the file and cut each of the sections of interest and convert the string in a table 2D, like this:

    Another is to read the file using read the spreadsheet file, and then the index on the first column and use it to search for the clues where areas of interest. You can then use subset of the table to get the 2D data table.

  • Cannot find the file error when loading data from text file to Oracle

    Hello

    I have an interface where I am loading a data from the text file to Oracle.
    But when I try to do that I am getting following error.

    ODI-1227: SrcSet0 (load) task fails on the source FILES SAPMM connections.
    Caused by: java.sql.SQLException: file not found: d:/mdb/#General.get_filename
    to com.sunopsis.jdbc.driver.file.FileResultSet. < init > (FileResultSet.java:160)
    at com.sunopsis.jdbc.driver.file.impl.commands.CommandSelect.execute(CommandSelect.java:57)
    at com.sunopsis.jdbc.driver.file.CommandExecutor.executeCommand(CommandExecutor.java:33)

    SAPMM is the name of the connection.
    I use get_filename to get the name of the file and it is fetching a correct value as long as this variable is updated in the previous stage of this interface.
    KM, used for loading is SQL file

    What would be the cause of this error?

    Thank you
    Mahesh

    Also a single query would be ok if I'm moving only generated package (according to your scenario3) scenario and not UI? It running properly?

    Yes... It runs successfully

  • Reading data from a text (JS CS3) file tabs-delimited

    Hi - I'm working on a script to read data from a text file and use in a dialog box. But I hit a wall.

    I used a script from a previous post that defines a variable text document when the user script he chooses from a drop-down list.

    var myDialog = app.dialogs.add({name:"Map",canCancel:true});)
    {with (MyDialog)}

    {with (dialogColumns.Add ())}
    {with (borderPanels.Add ())}
    staticTexts.add ({staticLabel: "choose the location :"});})
    {with (dialogColumns.Add ())}

    var file = File("~/Desktop/myPlacesfile.txt");

    leader. Open ("r");
    var str = file.read ();
    leader. Close();
    var myPlaceList = str.split (/ [\r\n] + /);
    var myPlaceMenu = dropdowns.add ({stringList:myPlaceList, selectedIndex:0});})
    }
    }}}
    Ditto var = myDialog.show ();
    if(myResult == true) {}
    If (myPlaceMenu.selectedIndex == 0) {}
    myPlace var = ' - undefined ";
    } else {}
    myPlace var = myPlaceList [myPlaceMenu.selectedIndex];
    Alert (myPlace);
    }

    myDialog.destroy ();
    }

    That's what I do now:

    The text file is in this format:

    Value1 value2 [TAB]

    Value1 value2 [TAB]

    Value1 value2 [TAB]

    I need to have the drop down dialog box show only the value 1, and after that the user selects, the script returns only the value 2. (The alert is just there to test - I'm doing something else with the variable).

    Is there a way to view the first part of a tab-delimited line in the menu drop down and return the second half as a variable?

    Any help would be greatly appreciated.

    Thank you

    One of the possibilities is that it. Create a table to the left of the values of the tab of the dialog box. Then create an object that you use it as a table of correspondence. Roughly as follows:

    same thing as what you have

    leader. Open ("r");
    var str = file.read ();
    leader. Close();
    var array = str.split (/ [\r\n] + /);

    'pairs' are the table of correspondence

    pair of var = {};

    as before, 'myPlaceList' will be used for the menu drop-down
    var myPlaceList = [];

    var v;
    for (var i = 0; i)< array.length;="">
    {
    v = table [i] .split ('\t');
    pairs [v [0]] = v [1];
    myPlaceList.push (v [0]);
    }

    Add the drop-down list as before:

    var myPlaceMenu = dropdowns.add ({stringList:myPlaceList, selectedIndex:0});})

    the table of 'pairs' correspondence is used as follows: pairs ['value1'] returns 'value2 '.

    so in your script that would be:

    myPlace var pairs = [myPlaceList [myPlaceMenu.selectedIndex]];

    Peter

  • Problem with loading Variables from a text file

    Hello

    I'm quite a novice when it comes to scripts and I am struggling to achieve something quite simple. I want to have an external text file that will allow me to control the number of timeout that I reference in my code below. I need to be able to change this variable by editing a simple text file.

    var myTimer:Timer = new Timer(60000,1);
    

    I want to change the 60000 and 1.

    I followed what looks like a nice clean approach to this tutorial: http://www.designscripting.com/2012/01/as3-flash-loading-variables-from-a-text-file/

    However, when I'm stuck is how to reference my variable imported into the code. I tried 'name1' but it does not work. I get ' 1067: Implicit coercion of a value of a numeric type to a type unrelated string.' error '

    I'm an output:

    HTTP status = 0

    Data loaded

    Name1: undefined

    {name2: 1}

    http://screencast.com/t/gwD09jovIrb4

    I use CS5 and AS3.

    Thank you

    Dan

    I see nothing wrong with what you show, and when I try I get the following output...

    HTTP status = 0

    Data loaded

    Name1: 6000

    name2: 1

    The only thing I suspect for the moment is the data file itself.  I can reproduce the problem if I insert white space before this string, then make sure that the text string is not preceded by anything whatsoever.

  • I'm doing a script that takes a list of e-mail from a text file and then allow me to select a save as a string. I found some ways to get the path of the file, but I'm in check by pulling the list

    I found some ways to get the path of the file, but I am defeated by pulling the list from that. the function of the path get gives me the path as "Macintosh Users:: Documents: extractedb.txt (myUsername).

    What I can't understand is how to get a dialog box to display a list that represents the content in the text file, I need to change the contents of the text file, I need the box to show me what I chose and I want to save my selection as a single string.
    e '.

    example of extractedb.txt information:

    [email protected]

    [email protected]

    [email protected]

    * has a random number of emails as well *.

    I want this is to pull those emails from the text file and turn them into a list so I can get to be a selection in my dialog box.

    Any help would be great = D

    Assuming you have a text file with your example e-mail addresses, the following AppleScript will read this file in a list (mf_List) and then use this list as input to choose among the list. Because multiple selection is allowed (control button), the output is sent to a list (sel_addr). We check if the Cancel button was pressed by testing for false and if this condition is met, we the script error.  Based on a single or multiple list item content of the list, display accordingly.

    game of mf to ((path to the folder as text) & "mail_list.txt")

    the value mf_List to {}

    the value sel_addr to {}

    the value mf_List to paragraphs of (read file mf)

    the value sel_addr to (choose from the list mf_List with title ¬

    ('Mail list' with multiple selections allowed without empty selection allowed)

    If sel_addr is equal to false then

    Error number-128

    return

    end if

    If length of sel_addr is equal to 1 then

    sel_addr display dialog box as text

    on the other

    the value Point to the text of TID to AppleScript delimiters

    the value Point text in AppleScript return delimiters

    display the dialog box elements of sel_addr in the text

    the value Text of point AppleScript delimiters to TID

    end if

    return

Maybe you are looking for