Concatenation FDM Import Table script

Hi all

First post here, so let me know if I'm making mistakes or leaving out critical information.  I'm trying to use FDM for importing a pipe delimited text file, use the mapping feature, and then export the new data to a .txt file.  The problem is that the entity on the finished side dimension must be a concatenation of the fields of the entity and the division.  What I tried to do is to write a script for the field of the entity on the tables import screen.

Function Div_Ent_Comb (lngCatKey, dblPerKey, strLoc, strWorkTableName)

'------------------------------------------------------------------

"Integration oracle Hyperion FDM IMPORT script:

'

"Created by: cwinslow"

"Creation date: 2014-10-09 15:34:39.

'

' Object:

'

'------------------------------------------------------------------

'Set variables '.

Dim strCombination As String

Dim strDivision As String

Dim strEntity As String

' set where the combo will go

strCombination = Trim (DW. Utilities.fParseString(strRecord, 29, 8, "|"))

"Store column 7 of 11 of a delimited file

strDivision = Trim (DW. Utilities.fParseString(strRecord, 29, 5, "|"))

"To store the column 8 of the 11 of a delimited file

strEntity = Trim (DW. Utilities.fParseString(strRecord, 29, 8, "|"))

strCombination = strDivision & strEntity

End If

End Function

Error when importing is as follows:

Error: An error occurred importing the file.

Detail: Object Variable or With block variable not set

What I want to happen is when I import the file, is for the entity column show the result of the concatenation before going through the validation part.

If you're just trying to concatenate two fields to use as a source for a mapping for the entity dimension, there is a much easier way to do this without script. In your import format to create two entries for the target dimension i.e. entity. The first line contains a reference to the field of the entity of your source (data field 8 of 29), the 2nd line will contain the reference to the field of the Division of your source (data field 5 of 29). If you do this FDM will automatically concatenate the 2 fields together for you.

Tags: Business Intelligence

Similar Questions

  • FDM Import (integration) Script - import failed

    Good day, colleagues.

    That we encountered the following problem. On the 11.1.1.3 integration script import of the system we run of FDM (called "SQLIntegration") Administrator's Guide, it is done properly (in the window pop up the message "Import SQL successful!"), but FDM lance error message "error: failed to import" and no data is loaded. Log file is empty.

    Please, share your experience.

    Did you put the function = true at the end?

  • FDM 11.1.2.1 mapping table scripts does not accept as vba functions ' lef

    OK, in fdm 11.1.2.1 in the UD2 of IMPORTS column, I have something like "award::purpose:type" and in the mapping table script, I try to use the 'left' and 'middle' works to break the UD2 columns (delimited by ': '), then the mapping to a result to VALIDATE.

    Why simple VBA functions do not work in mapping scripts (where you have '#Script' in the column 'target Custom2')

    to simplify things, I would like the following to work (and it errors on the first line to the "left" function)
    ##########################################
    One_Award = Left (varvalues (21), 5)
    Result = One_Award
    ##########################################

    Thank you.

    Published by: 866191 on June 26, 2012 08:15

    VarValues (21) always contains the empty string values. This could be the cause of your problem. If findCol1 is set to-1, that this will cause the error you get.

  • How to copy the parameter FDM (import format, mapping of dimension, the command table)

    Dear all,
    How to copy the parameter FDM (import format, mapping of dimension, table of control) of application to another application.
    I found that one dimension mapping can be imported. Is it possible to copy the FDM application quickly?

    Thank you for your help

    If you get a chance try the following script, it is so simple and easy to extract all the map as XML data and help to import via import script.

    ---------------
    Void MapExtractor()
    '------------------------------------------------------------------
    "Script custom upstream Internet link:
    '
    "Created by: SatyaK"
    "Creation date: 08/12/09.
    '
    ' Object: this Script will produce a file of account mapping for
    "the current location.
    '
    '------------------------------------------------------------------

    'Run the export '.
    strFilePath = API. IntBlockMgr.InterfaceMgr.fExportMapToXML ("File Path", PPOVPeriod)

    End Sub

    -------------

  • How can I import tables to a different schema in the relational model existing... to add these tables in the existing model? PLSS help

    How can I import tables from a different schema in the relational model... to add these tables in the existing relational/logic model? PLSS help

    Notes; I already have a schema ready relational/logic model... and I need to add more tables to this relational/logic model

    can I import the same way like I did before?

    But even if I do the same how can I add it in the template? as the logic model has been designed...

    Help, please...

    Thank you

    To view the diagram of logic model in Bachman notation, you right-click on a blank area of the diagram and select the rating > Bachman Notation.

    David

  • I can't import my script (film) into Adobe Story. The error message says that I am unable to connect to the Adobe servers. Is this a problem with the Adobe?

    I can't import my script (film) into Adobe Story. The error message says: I am unable to connect to the Adobe servers. Is this a problem with the Adobe?

    Yes and no it seems that if the file is a .doc or .pdf, that it does not load properly. But if I bring him in a Final Draft format, it works perfectly.

    Adam

    Sent from my iPhone

  • Import Format script to update multiple fields

    Following my previous post yesterday (Import Format script required for work in several areas , now I need my script import to Update several fields (two) at the same time, based on criteria across multiple fields. ) So far, I can use DW. Utilities.fParseString to assess values across several fields, but now I need to update not only the field in question, but also an additional field at the same time. For example:

    Function TBService (strField, strRecord)

    "How to upgrade a second field at the same time?
    Dim strField2 As String

    If left (strField, 1) = "S" Then
    If DW. Utilities.fParseString (strRecord, 3, 8, ',') = 'B1110"Then
    strField2 = "N101.
    On the other
    strField2 = 'network n/a '.
    End If
    TBService = strField
    On the other
    TBService = "Service s/o".
    End If

    End Function

    Is it still possible? Should I look for to create an event script that would work subsequent to importation? Or is it possible here in the import script?

    The second field you are trying to manipulate should have its own import script.

  • alise of import table?

    You can tell me how to import tables of alise in essbase?

    Hey baby :)

    Try

    The Assembly plan.

    On the Properties tab, in the "Alias tables" section, right-click on the default table and select Import.

    Navigate to the directory that contains the Alias of Table you want to import and select it, click OK.

    Asked you two options. If you want to do this by default the table alias, select Yes to overwrite. If you want to save it under a new name of table aliases, select No and give it a new name.

  • OBIEE 11 g administration tool, import tables.

    Hello!!!

    I just installed the Oracle Business Intelligence Enterprise Edition Plus customer for 11.1.1.5, but I don't know if I need to install a client of database oracle to be able to import tables in the repository from a remote database

    I want to use a calling OIC interface, I found this guide but, I think that it is when I install all the obiee and not only the administration Client.

    http://123obi.com/2011/03/error-the-connection-has-failed-in-OBIEE-11g/


    Thank you

    Published by: Andres on July 21, 2011 14:52

    Hi andres,

    I want to use a calling OIC interface, I found this guide but, I think that it is when I install all the obiee and not only the administration Client.

    To use the interface OIC, you must have the oracle DB client must be installed so that you can connect to using references DB and connect to the remote Database and then import the tables... it's the rule.

    hope helps you.

    See you soon,.
    KK

  • get the table script using dbms_metadata.get_ddl but with clob field

    Thus, Oracle 11g R2...
    I use dbms_metadata.get_ddl for table scripts and it works fine...

    now, I have a table with clob field, and it does not work... I got an error "missing a closing parenthesis (ora-0907) '...
    I could paste a script I had, but I don't think that it makes no sense...

    does anyone have an experience on the use of this package on clob tables?


    TNX

    See this code.

    DECLARE
      myddl clob;
      PROCEDURE print_clob(p_clob in clob) as
        l_offset number default 1;
      BEGIN
        loop
          exit when l_offset > dbms_lob.getlength(p_clob);
          dbms_output.put_line(dbms_lob.substr(p_clob, 255, l_offset));
          l_offset := l_offset + 255;
        end loop;
      END print_clob;
      FUNCTION get_metadata return clob is
        h   number;
        th  number;
        doc clob;
      BEGIN
        h := dbms_metadata.open('TABLE');
        dbms_metadata.set_filter(h, 'SCHEMA', 'HR');
        dbms_metadata.set_filter(h, 'NAME', 'EMPLOYEES');
        th := dbms_metadata.add_transform(h, 'MODIFY');
        th := dbms_metadata.add_transform(h, 'DDL');
        --dbms_metadata.set_transform_param(th,'SEGMENT_ATTRIBUTES',false);
        doc := dbms_metadata.fetch_clob(h);
        dbms_metadata.CLOSE(h);
        return doc;
      END get_metadata;
    BEGIN
      myddl := get_metadata;
      print_clob(myddl);
    END;
    

    This procedure of print_ddl I took of the documentation.
    Use of the long VALUE. See, in the first example out put is truncated.

    SQL> SELECT dbms_metadata.get_ddl('TABLE','EMP','SCOTT') FROM dual;
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
    
    SQL> set long 10000
    SQL> /
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    
    SQL> SET LINESIZE 132
    SQL> SET pagesize 0
    SQL> SET LONG 1000000
    SQL> /
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    
    SQL>
    
  • How to import tables, index, tablespace, etc. of a DMP.

    Hello

    I would like to know how to import tables, index, tablespace, etc. of an export an Oracle 10.2.0.1 to apply on an Oracle 11.2.0 DMP. When I import the DMP file a unique Tablespace, for example, will users tablespace data.

    On the basis of origin, we have different tablespace each separated with different content (tables, index) and I would like to know if it is posible to import the same schema, tables, index, tablespace quite with a DMP alone, Export. I can't use DBUA because the database on the 10.2 software is missing, I have only one file (24 GB) DMP DMP!.

    Thanks for the reply,

    Sorry for my English :).

    Kind regards.

    The standard solution is

    -Make sure that the target user doesn't have the UNLIMITED TABLESPACE privilege, using REVOKE
    -Make sure that the target user has no QUOTA on the default tablespace using ALTER USER... QUOTA
    -Make sure that there is quota on the tablespace (s) of the target, using ALTER USER... QUOTA
    -import indexes = n
    -empty the index orders in a separate file
    IMP indexfile =...
    -run this file

    --------------
    Sybrand Bakker
    Senior Oracle DBA

  • Application front end error after importing the script executed successfully in R12

    Hello
    I got an exception in the environment of R12.
    I developed a simple page of the OPS and deployed in apps to import the script runs successfully.
    but when I open this page at the Front end will give an exception.

    It's
    Details of the exception.
    oracle.apps.fnd.framework.OAException: could not load application module 'tflsm.oracle.apps.po.per.server.TflsmAM '.


    # # 0 in detail
    Houston-30003: the application pool (cph-oadb - tst22.dk.flsmidth.netTST221543tflsm.oracle.apps.po.per.server.TflsmAM) failed at the checkout a module of application because of the following exception:
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.JboException, msg = Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)



    # # 0 in detail
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)


    # # 0 in detail
    oracle.jbo.NoDefException: Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:441)


    Houston-30003: the application pool (cph-oadb - tst22.dk.flsmidth.netTST221543tflsm.oracle.apps.po.per.server.TflsmAM) failed at the checkout a module of application because of the following exception:
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.JboException, msg = Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)


    # # 0 in detail
    oracle.jbo.JboException: Houston-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg = Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)


    # # 0 in detail
    oracle.jbo.NoDefException: Houston-25002: type tflsm.oracle.apps.po.per.server.TflsmAM ApplicationModule definition not found
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:441)


    I will check all the class files and the Application Module below top xml files, are all there in the top server (less)
    / U02/TST22/Apps/apps_st/COMN/java/classes/xxfls

    but I got the exception.

    is there a different structure in R12.
    i.Ein the/u02/TST22/apps/apps_st/comn/java/classes/xxfls top of the page from the server (here my class all files in xml files and binary mode in ASCII mode)
    Only the CLASS files are needed or the XML files are also needed. (I'm moving all CLASS and XML files)

    could you please help me on this.

    Thank you, regards,
    Muthu

    Hello

    -In the same way it is you are oracle also... ?

    / U02/TST22/Apps/apps_st/COMN/java/classes/xxfls

    Concerning
    Meher Irk

  • Newb question: SQL query on an imported table

    Hi all. I'm a newb, that this issue will probably tell you!
    But I am very interested to familiarize themselves with the Oracle environment.

    I installed 10g Express.
    I was able to set up a new user (schema) profile?

    I created a new table, by importing an Excel file, saved as a CSV file. It has a PK.

    When I log in as an administrator, I can see the table 'discovers' the content.
    However, I can't run a SQL command with the new table.
    It is said Table or view does not exist.

    The table is called "Customers" and contains a column called "City" and I type City Select From Customers.

    Like the Adminisistrator, I have "given" all the rights for the new table to my profile newly created (schema).
    When I connect as long as this new person, I can't see the new table imported into the list of tables, yet alone to run an application or a SQL to it. What did I miss?

    Any tips will be appreciated. Glyn gray...

    Published by: user12501005 on February 7, 2010 11:26

    Hello

    You wrote:
    The original table is still visible to the diagram of the system, but he reports yet again as saying that the table does not exist when I try SQL.
    So is there a reason why a table imported is visible to the user DBA, but SQL does not exist?
    The other imported tables, those the DBA can run SQL still aren't visible to other users (schemas).
    The DBA has "tuned" EVERYTHING to the default HR schema.
    When I connect like HR, I'm unable to find the given table and SQL reports that the table does not exist.

    If I understand that you have created a Table in the schema of the SYSTEM, and you cannot question him by SQL.

    For example, if you then create a table A in the diagram of SYSTEM, you can view the table A if you connect to the database
    SYSTEM or any intended user he has the privilege to CHOOSE ANY TABLE.

    If you are connected to a user (for example, HR), which does not have this privilege, you can not query the Table.

    If you have a privilege to HR as follows:

    connect system/
    grant select on A to HR;
    

    Then you can query the Table has to HR:

    connect HR/
    select * from system.A;
    

    Hope this helps.
    Best regards
    Jean Valentine

  • Table scripts

    Deal all,
    Is it possible to recover the table scripts created in a schema?

    Thanks for reading this post
    * 009 *.

    Hello

    Watch dbms_metadata.get_ddl

    Example:

    SQL> select dbms_metadata.get_ddl('TABLE', 'EMP', 'SCOTT') from dual
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "SCOTT"."EMP"
       (     "EMPNO" NUMBER(4,0) NOT NULL ENABLE,
         "ENAME" VARCHAR2(10),
         "JOB" VARCHAR2(9),
         "MGR" NUMBER(4,0),
         "HIREDATE" DATE,
         "SAL" NUMBER(7,2),
         "COMM" NUMBER(7,2),
         "DEPTNO" NUMBER(2,0)
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"                                                            
    
    1 row selected.
    

    Concerning
    Peter

  • Use target category and period of FDM import script

    Hi all


    I write an import script where I want to validate that the target of the period and the target category are filled in the tables of control for the selected perspective.

    Export action, I can use the strTper and the strTCat, but I need to check in the event script ImportAction.

    Someone at - it a suggestion how to find these values?

    Thanks in advance,

    Marc

    Res.pstrper, res.pstrcat to get the pov element.

    For members of the target, use the accelerator.

Maybe you are looking for