Flat File as Source in OWB Mapping.

Hi All,
Configuration Details is as follows:
Oracle 9i Warehouse Builder Client: 9.2.0.2.8
Oracle 9i Warehouse Builder Repository: 9.2.0.2.0
Windows XP Professional
I developed a mapping which involves a flat file as source & Oracle Table as target steps followed were as follows.
1. Created Flat File module, selected Connector & Location Details.
2. Done mapping for source file & target table.
3. Validated & Generated the mappings.
4. Deployed the mapping in Deployment Manager.
5. Following was Error Message after execution of the mapping.
Completion Status: Completed with errors.
Meesage Log: Starting Execution of VHM_MAP2. Starting Task VHM_MAP2. RPE-01013:SQL Loader reported error condition,number 4. Completing Task VHM_MAP2.
Following was Control File generated by the above mapping.
OPTIONS ( ERRORS=50, BINDSIZE=50000, ROWS=200, READSIZE=65536)
LOAD DATA
CHARACTERSET WE8MSWIN1252
INFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.txt'
BADFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.bad'
DISCARDFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.discard'
INTO TABLE "{{TARGET_LOCATION.Schema}}"."DEPT"
APPEND
REENABLE DISABLED_CONSTRAINTS
FIELDS
TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
"DEPTNO" POSITION (1) INTEGER EXTERNAL ,
"DNAME" CHAR ,
"LOC" CHAR
Please note that no message is displayed in Row Activity & output parameters in Deployment Manager.
I worked on lower version of the OWB & in that version there was no concept of Location, Connector, Deployment Manager.
Not sure why the above mapping is failing?
Also I would like to know where can I get more information about the mapping errors which are different from oracle error messages.
e.g. In above case error message is RPE-01013: SQL Loader reported error condition, number 4 .
Thanks in Advance.
Regards,
Vidyanand

Hi
I'm using single host implementation OWB10g/Oracle on same host.
My flat file location is
c:\source\dept.txt
Pl tell me if I have to save the same file on any particular location for OWB to read.
Implementation in OWB10g
1. Created Flat File module, selected Connector & Location Details.
2. Done mapping for source file & target table.
3. Validated & Generated the mappings.
4. Deployed the mapping in Deployment Manager.
5. Following was Error Message after execution of the mapping.
Can not read data from file
c:\souredept.txt
OPTIONS ( ERRORS=50, BINDSIZE=50000, ROWS=200, READSIZE=65536)
LOAD DATA
CHARACTERSET WE8MSWIN1252
INFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.txt'
BADFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.bad'
DISCARDFILE '{{TEXT_DATA_LOCATION.RootPath}}dept.discard'
INTO TABLE "{{TARGET_LOCATION.Schema}}"."DEPT"
APPEND
REENABLE DISABLED_CONSTRAINTS
FIELDS
TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
"DEPTNO" POSITION (1) INTEGER EXTERNAL ,
"DNAME" CHAR ,
"LOC" CHAR
Thx in advance

Similar Messages

  • Working with flat file as source in owb 10.2

    Hi,
    I am working with flat file as source . While validating the mapping i am getting the following error like
    " to specify a data file configure the mapping , add a node under ' Source data file', type in the file name
    and select the file location."
    Please give me the suggestion . It is very urgent.

    Hi Venkat,
    I tried the following stepts.
    1. in Design Center select your mapping and right click and select configure
    2. select sql loader data files and select create
    3. On right hand side data file Name : enter your source file name (ex : source.csv)
    4. click ok button.
    5. open mapping and validate.
    The mapping is validating. After validating I deployed the mapping. Up to this the mapping is working fine.
    But when I start the mapping, It has completed with errors.
    The error message is:
    Status
    Error Log
    RPE-01013: SQL Loader reported error condition, number 1.
    LRM-00112: multiple values not allowed for parameter 'control'
    Job Summary
    Updated : 2009-02-24 15:32:43.0 Job Final Status : Completed with errors Job Processed Count : 1 Job Error Count : 1 Job Warning Count : 0
    Please give me the suggestions.
    Thanks,
    Venkat

  • VLD-6328 error : Use a flat file as Source in a mapping in OWB 10.2

    Dear all,
    I have created a simple mapping using a flat file in a remote server as a source and a simple table as a target.
    When I try to validate the mapping I get the following warning:
    "VLD-2398: No data file specified. Generated code will use the sampled file name and the file location xxx"
    I use the version 10.2 and I cannot find "Sources" or "Targets" when I use the "Configure" options.
    Any help will be appreciated

    Hi all,
    If you want to validate correctly this mapping you must to :
    1. Right click on the mapping, then Configure
    2. Right click on Sql Loader Data Files, then Create
    3. Verify that the location name is correct and complete the Data File Name
    4. OK
    The validation is now OK.
    I hope it will be help you
    Best Regards
    Samy

  • How to Use Flat File As source in operation mapping?

    Hi dont want to use an FCC. I have written an JAVA Mapping to convert a flat file to XML.
    But in Interface Mapping How i can test this?

    /*This java mapping will give same output as input payload */
    package com.mapping;
    import java.io.InputStream;
    import java.io.OutputStream;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    public class Java_Mapping extends AbstractTransformation {
         public void transform(TransformationInput transformationInput,
                   TransformationOutput transformationOutput)
                   throws StreamTransformationException {
              try {
                   InputStream inputstream = transformationInput.getInputPayload()
                             .getInputStream();
                   OutputStream outputstream = transformationOutput.getOutputPayload()
                             .getOutputStream();
                   byte[] b = new byte[inputstream.available()];
                   inputstream.read(b);
                   String strContent = new String(b);
                   outputstream.write(strContent.getBytes());
              } catch (Exception exception) {
                   exception.printStackTrace();
    Edited by: Raghu Vamsee on Jan 5, 2011 3:46 PM

  • Flat file as targets in a mapping.

    Hi All,
    While reading on-line documentation in topic Define Mappings of oracle9i warehouse builder i came across following statement.
    "A mapping can contain up to 50 flat files as targets, and it can also contain mix of flat files, relational objects and transformations."
    Does this mean a flat file can be used as target in a mapping? I am in impression that only flat file can be used as source in a mapping.
    Thanks in Advance.
    Regards,
    Vidyanand

    Hi Igor,
    Some update on this, I managed to find steps to include flat file as target in a mapping.
    Steps followed were as follows.
    1> Created a File Module.
    2> Imported a Text File with headings and no records.
    3> Created a Warehouse Module.
    4> Imported scott.dept table into the module.
    5> Created a mapping, mapped scott.dept table to the text file.
    6> Selected Configure option in the mapping. Set parameters Thefilename = the above file name and Access Specification).
    7> Validated & Generated map, it looks fine with no errors.
    8> Deployed & run the package.Deployment didn't show any errors however while running displays error ORA-01403: no data found.
    Please note that the utl_file_dir parameter is set on oracle server and the utl_file_dir is mapped in windows NT explorer from machine.
    Does anyone knows more about this error?
    Thanks in Advance.
    Regards,
    Vidyanand

  • Urgent: Transport of Flat File Data Source

    While transporting flat file data source is it required to transport first in a separate request or everything can go in 1 request.
    Thank you,
    sam

    Hi,
    In this case it can go in one request as no replication is needed. But for other datasources, you need to send the datasources first in a separate request and then replicate the datasource in BW before you send the BW changes.
    Cheers,
    Kedar

  • Flat file data Source creation in BI7

    Hi ,
    I am trying to create flat file data source in BI7 to load master data.
    Aftre i enter all the details,while activating its giving me error like this
    Runtime Errors         DATA_LENGTH_NEGATIVE
    Except.                CX_SY_RANGE_OUT_OF_BOUNDS
    Can anyone suggest me abt this.
    Thanks
    Thiru

    Hi,
    In the datasource def go to the fields tab. Here check the values for the length og the field.
    Check whether all the values are within 60
    Regds,
    Shashank

  • I want to import flat files by ftp in owb

    I want to import flat files by ftp in owb.
    When I config the ftp host ip, username, password and path, then I import the flat files, but
    this didn't succeed. And I find the owb didn't check the ftp host's directory,
    and it check the localhost of owb, so it reported there isn't the directory.
    So how to solve the problem.
    Thank you!

    Hi,
    you must first transfer the files via ftp to the dbserver and then process. Create a workflow with a ftp activity and transfer the files. After this you can call the mappings in this workflow.
    If you want to sample the flat files you have two choices:
    1.) Using the owb client on the dbserver and sample the files on the dbserver. Then you need only one location with the path on the db-server.
    2.) Using the owb client on a client machine and sample the files on the client. Then you need two locations: one local which points to the file directory on your client, one remote which points to the path on the dbserver. Use the first to sample the files, and change to the second before deploying the mappings.
    Regards,
    Detlef

  • Flat file as source and target in owb-error

    hi,
    I want to run an interface with source as flat file and target as rdbms table.
    The mapping got deployed with warnings.
    And when i run the mapping i get the below error.
    ORA-04063: package body "Schema.project_name" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "schema.project_name"
    ORA-06512: at line 1

    Hi
    There's nothing wrong with your theory, however you might get a DB lock depending on the locking strategy of your RDBMS and it's current configuration.
    Now, assuming that DB locking is your issue (get a DBA to check when the dataflow stalls), there are 2 solutions. 
    1, change the DB lock settings
    2, take a copy of the target table in a new dataflow and use that as the source in the orginal dataflow.
    Michael

  • How to move flat file after loading in owb to other directory with othernam

    Hi All,
    I wast struck in problem . after loading the flat file in owb that file should be move or rename or zip with Date everyday .
    I dont know how to achieve this issue in owb via proceudre or any other way ... .
    how to zip files from pl/sql procedure ...... with sysdate.zip.
    any one please help me in this problem to come out soon.
    thanks ,
    murari

    One way is to use a Java stored procedure, this can then be called from a map or a process flow. The Java stored procedure will use the Zip capabilities in Java to do what you need. For example you will need the following procedure and you will have to grant privileges for your file to ZIP and the entire directory for zipping into (since the file name will be dynamic):
    For example grant YOURSCHEMA (change to your tgt schema) read on your extract directory where your file to zip is and write on your zips directory (where the zips will go);
    exec dbms_java.grant_permission('YOURSCHEMA', 'SYS:java.io.FilePermission', 'c:\staging\extracts\*','read');
    exec dbms_java.grant_permission('YOURSCHEMA', 'SYS:java.io.FilePermission', 'c:\staging\zips\*', 'write' )
    You can then create your procedure which you can invoke
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "otnZipFile"
    AS
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    public class otnZipFile
    public static void zipFile(String zip, String filename)
    byte[] buf = new byte[1024];
    try {
    String outFilename = zip;
    ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outFilename));
    FileInputStream in = new FileInputStream(filename);
    out.putNextEntry(new ZipEntry(filename));
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    out.closeEntry();
    in.close();
    out.close();
    } catch (IOException e) {
    create or replace PROCEDURE zip_file(
    dir IN VARCHAR2,
    file_name IN VARCHAR2) IS
    LANGUAGE JAVA NAME 'otnZipFile.zipFile(java.lang.String, java.lang.String)';
    For example here I zip a file MYCSV.csv into the zip file MYZIP.zip
    exec zip_file('c:\staging\zips\MYZIP.zip', 'c:\staging\extracts\MYCSV.csv');
    Cheers
    David

  • Flat file data sources info pack executing for long time with yellow

    I can see flat file all records 140 in above screen but i could not see data in PSA . when i am trying to see the PSA it show not data .
    I have tries to make status to green but still request not process to Data target .

    HI,
    When you see message like there is no psa mean data source was not in active.
    so activate your data source Thru by using SE38 - RSDS_DATASOURCE_ACTIVATE_ALL(bw 7.x).
    After the activation you can try to load data.before that make your yellow request to red status and delete it.
    later reload the same flat file.
    Thanks

  • SSIS 2012 - Double quote charcter in data does not allow to load flat file to source component

    Hello everyone,
    I've created a source component for flat file data.
    This file contains data the column data in double quotes. Like,
    First Name Last Name
    "Ankit"       "Shah"
    The text qualifier is double quote for source file connection. 
    When I do have data like below, it does not able to load the source file. And throws an error "The column delimiter for column was not found"
    First Name Last Name
    "Ank"it"       "Shah"
    Can anybody please advise how to resolve this problem?
    Any help would be much appreciated.
    Thanks,
    Ankit
    Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com

    Please refer:
    http://visakhm.blogspot.com/2014/06/ssis-tips-handling-embedded-text.html
    http://www.ideaexcursion.com/2008/11/12/handling-embedded-text-qualifiers/
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • Cube like aggregation behavior from a flat file data source

    Is the following workflow possible in Xcelsius and if so how would your organize you logic to be able to acheive this?  Any examples would greatly be appreciated
    My data source is XML, therefore a flat file.
    The flat file contains multiple dimensions for which the customer wants to aggregate by based on the selection and also include and "ALL" option for every dimension/selector.
    Essentially, the file is structured like this:
    ie: Dim1  Dim 2  Dim3   Dim 4   Dim5  Metric1    Metric2
           a        c         e          j          l          5             5
           a        c         e          j          m        3             2
           a        c         e          j          n         4             8
           a        c         e         k          o         3             4
           a        c         e         k          n         8             2
            ...etc         
    We need drop down selectors for Dim1-Dim4 with the "ALL" option.  I would have my tables and charts etc use the Dim5, Metric1 and Metric2. 
    I've used the "Lookup" function to create 1 level of aggregation in a flat file structure with 1 dimension, such as the "Lookup" would call all the Dim1entries and insert into a group of referenced cells and then i would use the "Sum" function from Excel.
    But is this possible with multiple dimensions and include the "ALL" option.  If so, how?  The workflow defined is ideal for a CUBE architecture but for many different political reasons we need to be able to address this with Xcelsius being sourced from a flat file ie XML.  Any insight would be greatly appreciated..

    hi there.
    if you backend is SAP BW connected via OLAP Universe you could use L0 Dimensions for all aggregation in WebI Layer. (Check the Blog's of Ingo Hilgefort for details)
    Best Regards
    Ulrich
    http://www.xcelsius-insight.com

  • Problem Experts OWB 10gR2 - Mapping with OMB - Give a name to the flat file

    I'm trying to create a mapping in OWB by using the Experts (OMB),
    where the data source is a database table and the target is a flat file (to transform a table to a flat file).
    The tasks of my Experts :
    This task create a mapping, and add a existing table on it.
         OMBCC '$thepath'
         catch {OMBDROP MAPPING 'M1'}
         OMBCREATE MAPPING 'M1'
         OMBALTER MAPPING 'M1' \
         ADD $INITIAL_LAUNCH_CONTEXT_TYPE OPERATOR '$thetable' \
         BOUND TO $INITIAL_LAUNCH_CONTEXT_TYPE \ '$INITIAL_LAUNCH_CONTEXT' \
    This task change the context and create a flat file
         OMBCC '/PRJ_LABO_PHARMA/SRC_FILE'
         catch {OMBDROP FLAT_FILE 'NEW_FILE'}
         OMBCREATE FLAT_FILE 'NEW_FILE' \
         SET PROPERTIES (DATA_FILE_NAME) VALUES('fichier_genere.txt')
    This task add the flat file to the mapping, and create a connection between the source (table) and the target (flat file)
         OMBCC '/PRJ_LABO_PHARMA/MOD_SRC_LABO'
         OMBALTER MAPPING 'M1' \
         ADD FLAT_FILE OPERATOR 'NEW_FILE'\
         BOUND TO FLAT_FILE '/PRJ_LABO_PHARMA/SRC_FILE/NEW_FILE' \
         OMBALTER MAPPING 'M1' \
         ADD CONNECTION FROM GROUP 'INOUTGRP1' OF OPERATOR '$thetable' \
         TO GROUP 'NEW_FILE' OF OPERATOR 'NEW_FILE' COPY ALL
    This task update the flat file structure
         OMBRECONCILE MAPPING 'M1' OPERATOR 'NEW_FILE' \
         TO FLAT_FILE '/PRJ_LABO_PHARMA/SRC_FILE/NEW_FILE' \
         USE (RECONCILE_STRATEGY 'REPLACE', MATCHING_STRATEGY 'MATCH_BY_OBJECT_ID')
    Then I have a task which execute this mapping.
    Everything is good, but during the execution I have a error VLD-2357 : The target file's name is not indicated for the file NEW_FILE.
    I don't know how to give a name to the flat file in OMB.
    Help me please.
    Best regards
    Samy

    Just like if you built this in the UI where you would have to configure the flat file operator and define a target data file name and possibly the location these properties should be set in scripting.
    Set the property TARGET_DATA_FILE_NAME to the name of the data file.
    Something like....
    OMBALTER MAPPING 'M1' \
    MODIFY FLAT_FILE OPERATOR 'NEW_FILE' SET PROPERTIES (TARGET_DATA_FILE_NAME) VALUES ('my_datafile.csv')
    Cheers
    David

  • Mapping flat files in OWB

    Hello,
    I am trying to start a job which has flat file as source and table as target.
    When I deploy mapping everything is fine but when I try to execute it this error occurs:
    RPE-01013: SQL Loader reported error condition, number 1.
    SQL*Loader: Release 10.2.0.1.0 - Production on Tue Apr 1 16:42:48 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL*Loader-500: Unable to open file (/home/oracle/u00/oracle/product/owb10.2/owb/bin/unix/C:Documents and SettingsvmuzaDesktopDWHSifarniciForETLM_LOAD_SIFARNIK_PORTFELJA.ctl)
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    I assume I have to put the flat file somewhere on the server, not on my local machine. Is that the only way? Or is it possible to define path on local machine?
    If I have to upload flat file on the server where do i put it?
    Thankful for any hint.

    Are you sure that the file has to be on the server? I'm just trying and experiencing the same behavior on 10g, but it makes no sense. 80% of the time I'd run SQL*Loader from the client machine, referencing a csv file somewhere in the network drive, certainly not on the DB server machine.
    Then what's the point of using OWB if I need to copy the files onto the server?

Maybe you are looking for

  • WLC, ISE certificate authentication issue

    Hi Folks, This is the setup: Redundant pair of WLC 5508 (version 7.5.102.0) Redundant Pair of ISE (Version 1.2.0.899)      The ISE servers are connected to the corporate Active Directory (the AD servers are configured as external identity sources)   

  • Where can I get an example of how to call Labview.exe (Active X Server) from Visual C++

    I would like to Call Labview application (as Active X Server) from Visual C++. I need any type of exemple on how to do this, any input will be greatly apriciated.

  • User exit for tcode ME21N and ME22N

    Hi everyone Can anybody tell me the user exits found in the tcodes ME21N nad ME22N, when saving a PO? Regards Anjali

  • Session bean "Exception in method create()"

    Hello, I have a session bean which is consuming entity bean and session bean is published as webService now when I call create method of entity bean from session bean it says "Exception in method com.syntel.exam_tool.entityBeans.tabExamTable.TabExamL

  • Display sound data value from ByteArrayOutputStream

    hi People, Can advise what is the function that i can use to retrieve or display the data that i stored in ByteArrayoutputStream buffer? So far i can only store the data in... but how can i retrieve and display them on output panel? Many Thanks