Batch insert from object variable

Any way to do this excluding the foreach loop container?  I have millions of rows and if it goes through them 1 by 1 it will take hours maybe days.  How can you do a batch insert from an object variable without putting the sql task inside
a foreach loop container?
thanks,
Mike
Mike

I know how to use the dataflow task but it will not work with what I am trying to do as far as I know.  The script I am running is against a netezza box that creates temp tables and then returns a data set that I store in an object variable. 
I then want to take the data from that object variable and batch insert it into a table.  The only way I can see this being done is by looping through the record set in a foreach loop while mapping the fields to variables and inserting records one
at a time like I am doing in the screenshot above.  This takes way to long to do.  I am trying to figure out a way to do a batch insert using the data in this object variable.  Is this possible?  I am using SSIS Version
10.50.1600.1
thanks,
Mike
Hi Mike,
Provide more details why you cannot use the data flow task for the processing.
Let me repeat . Loading millions of records in object variable will not work. 
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

Similar Messages

  • Batch Processing error: Object variable or With block variable not set - 91

    We are experiencing the following error when trying to execute the FDM Batch Processing of files in our UAT environment. This error is not occuring in our DEV environment. I have seen this error before when the data file had been left open and FDM could not access the file, so it appears this error is usually due to file permissions. However, this time none of the files are open, and as far as we can see, FDM should have full access to the OpenBatch and Inbox folders etc.
    Does anyone please have any suggestions, particularly on what account FDM will carry out the various tasks? Would it use a system account?
    Error:
    "Object variable or With block variable not set - 91"
    FDM Log:
    ** Begin FDM Runtime Error Log Entry [2012-07-06 16:07:09] **
    ERROR:
    Code............................................. 75
    Description...................................... Path/File access error
    Procedure........................................ clsBatchLoad.fFileCollectionCreate
    Component........................................ upsWBatchLoaderDM
    Version.......................................... 1112
    Thread........................................... 5828
    IDENTIFICATION:
    User............................................. admin
    Computer Name.................................... *******
    App Name......................................... *******
    Client App....................................... WorkBench
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... *******
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... *******
    Location ID...................................... 748
    Location Seg..................................... 2
    Category......................................... *******
    Category ID...................................... 14
    Period........................................... *******
    Period ID........................................ 02/07/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False

    I can confirm that there is definitely data present in our data files in this case.
    Please note that this error only occurs when using the Batch Processing functionality of FDM Workbench (which requires files to be placed in the OpenBatch subfolder of the Inbox). I can load individual files fine when using the FDM Web Client.
    As part of the first step of the batch load process, FDM Workbench moves files from the OpenBatch folder to a new folder which it creates in the Inbox\Batches directory. However, it is not even managing to do this, and gives the error below.
    We have tried to share the OpenBatch folder, to allow specific users access to drop files into this folder. Consequently, I believe suggests a security problem on the OpenBatch folder itself (please see original post). I have been told privileges should be sufficient for FDM to make use of this folder too, however I suspect this is not the case at present.
    In the meantime, please let me know if this could be due to other causes.

  • Object Variable or With block Variable not set-not fr Excel, from BPC Admin

    Hello everyone,
    Object Variable or With block Variable not set-not from Excel but from BPC Admin. 
    I searched the form and all posting/solutions talk about this error appearing from Excel. In my case it happens for BPC Admin - when I try to maintain dimension members.  I tried uninstalling and re-installing BPC client few times, processed all dimensions and tried pretty much all solutions posted here. Nothing worked (in BPC Admin). If anybody who came across this issue and solved it,
    can you please post the solution?
    Thanks
    Pals

    Hello Everyone,
       Thanks for all your possible solutions.  Here is the solution in case if you come across,
    "Object Variable or With block Variable not set" error from BPC Admin (not from Excel).
    Did some analysis with Basis administrator and found that there was an installation of MS Office 2010 component (not the full version. not sure how it got there since I do not have MS Office 2010) along with MS Office 2007. So,
    I un-installed MS Office 2010 component, MS Office 2007 and Planning and Consolidation client.
    Re-booted the laptop.
    Installed MS Office 2007 first. Re-booted.
    Installed Planning and Consolidation client. Re-booted.
    Started Planning and Consolidation Admin client. Clicked on Maintain Dimension members for a dimension. Dimension members displayed without any errors.
    Tried update, insert and delete of dimension members, worked fine.
    Thanks again All.
    -Pals

  • A null object loaded from local variable 'o' in XSLT mapping

    Hi experts,
    We are facing an issue in XSLT mapping for one of the inbound scenario.
    While executing the source message at mapping level, it is failing with the error text - "javax.xml.transform.TransformerException: com.sap.engine.lib.xsl.xpath.XPathException: Error parsing query -> java.lang.NullPointerException: while trying to invoke the method java.lang.Object.toString() of a null object loaded from local variable 'o'
    Kindly help us on this issue!
    FYI - We are facing this issue in PO 7.4 version.
    Best Regards,
    Uday.

    HI Hareesh,
    Thanks for your inputs...
    We are migrating the interface from PI7.1 to PI 7.4 at this one we are getting the error as mentioned the earlier. we are uanle to run it in the mapping level as well.
    Why are we getting the error?As this is working in PI7.1 version
    Please help us on this.

  • While trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'

    Hi,
    Our PI is getting data from WebSphere MQ and pushing to SAP. So our sender CC is JMS and receiver is Proxy. Our PI version is 7.31.
    Our connectivity between the MQ is success but getting the following error while trying to read the payload.
    Text: TxManagerFilter received an error:
    [EXCEPTION]
    java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'
           at com.sap.aii.adapter.jms.core.channel.filter.ConvertJmsMessageToBinaryFilter.filter(ConvertJmsMessageToBinaryFilter.java:73)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
           at com.sap.aii.adapter.jms.core.channel.filter.InboundDuplicateCheckFilter.filter(InboundDuplicateCheckFilter.java:348)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
    I have searched SDN but couldn't fix it. Please provide your suggestion.
    With Regards
    Amarnath M

    Hi Amarnath,
    Where exactly you are getting this error?
    If you are getting at JMS Sender communication channel, try to stop and start the JMS communication channel and see the status, also use XPI Inspector to get the exact error log.
    for reference follow below blogs:
    Michal's PI tips: ActiveMQ - JMS - topics with SAP PI 7.3
    Michal's PI tips: XPI inspector - help OSS and yourself
    XPI Inspector

  • Approval task SP09: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'

    Hi everyone,
    I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
    I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
    ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
    And the notifications configured on approval task does not start either.
    The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
    I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
    Has anyone passed trough this situation in SP09?
    I think there is an issue with the runtime components delivered with this initial package of SP09.
    Suggestions?

    Hi Kelvin,2016081
    The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
    For more info about the issue and the patch please refer to SAPNote 2016081.
    @Michael Penn - I might be able to assist if you provide the ticket number
    Cheers,
    Kristiyan
    IdM Development

  • Inserting text from a variable in actionscript

    what is it called when you insert text from a variable in actionscript?

    Your question is not clear.  There is no specific name for the process of inserting text from a variable that I am aware of.
    If you have a dynamic textfield that you have assigned an instance name to, let's say you named it "tField", then to assign a variable called "aVar" to that textfield you would use:
    tField.text = aVar;

  • GetDescriptions() of an object loaded from local variable 'itemDeploymentResult'

    Hi
    We are urgrading our SAP MII ( purely Java ) systems from 7.31 Sp5 to 7.40 and we got stuck at Configuration phase. We are getting the following error during Queue validation.
    Checking of deployment queue completed with error. java.lang.NullPointerException: while trying to invoke the method com.sap.sdt.j2ee.tools.deploymentmgr.DeploymentManagerItemResultIF.getDescriptions() of an object loaded from local
    variable 'itemDeploymentResult'.
    I looked in the trace files under SUM/sdt/trc directory and found the following information.
    Jul 3, 2014 9:52:16 AM
    [Error]:
    com.sap.sdt.executor.module.ModuleExecutor [Thread[UC-3,5,main]]: A
    problem has occurred:
    com.sap.sdt.executor.exception.StepExecutionException: Problem while
    trying to execute operation on service validate-queue. The following
    problem has occurred java.lang.reflect.InvocationTargetException. CSN
    Component BC-UPG-TLS-TLJ.
    Checking of deployment queue completed with error.
    java.lang.NullPointerException: while trying to invoke the method
    com.sap.sdt.j2ee.tools.deploymentmgr.DeploymentManagerItemResultIF.getDescriptions() of an object loaded from local
    variable 'itemDeploymentResult'
    Jul 3, 2014 9:52:16 AM
    [Error]:
    com.sap.sdt.executor.module.ModuleExecutor [Thread[UC-3,5,main]]:
    Checking of deployment queue completed with error.
    Jul 3, 2014 9:52:16 AM
    [Error]:
    com.sap.sdt.executor.module.ModuleExecutor [Thread[UC-3,5,main]]:
    java.lang.NullPointerException: while trying to invoke the method
    com.sap.sdt.j2ee.tools.deploymentmgr.DeploymentManagerItemResultIF.getDescriptions() of an object loaded from local
    variable 'itemDeploymentResult'
    We have 26 GB left on our Drive and have also upgraded JSPM to 7.31 Sp8. We are using SUM10SP05_9.
    Appreciate your quick help

    Hi Amarnath,
    Where exactly you are getting this error?
    If you are getting at JMS Sender communication channel, try to stop and start the JMS communication channel and see the status, also use XPI Inspector to get the exact error log.
    for reference follow below blogs:
    Michal's PI tips: ActiveMQ - JMS - topics with SAP PI 7.3
    Michal's PI tips: XPI inspector - help OSS and yourself
    XPI Inspector

  • How can I stop Dreamweaver from inserting spaces after variables?

    How can I stop Dreamweaver from inserting spaces after
    variables?
    Example:
    "...write to you@<!--#echo var="uu" --> and ..."
    is changed by DreamWeaver to
    "...write to you@
    <!--#echo var="uu" -->
    and...>
    When saving or doing other editing, DreamWeaver adds a space
    and a line break before and after the variable. The line break
    isn't hard and doesn't show, but the spaces added before and after
    the variable DO show in browsers. That looks rather stupid and
    incompetent, and requires hand editing on the server after
    uploading.
    Line wrap and code formatting are turned off.
    Is manual correction after uploading the only solution to
    this problem?
    Thanks
    DearWebby

    DearWebby,
    We already discussed this offline, but I want to post the fix
    here for
    the sake of posterity:
    1. Edit > Tag Libraries…
    2. Open HTML Tags folder
    3. Select "directive" folder icon (not really a folder)
    4. Change Line breaks: setting to "No line breaks"
    5. Click OK
    HTH,
    Randy
    > How can I stop Dreamweaver from inserting spaces after
    variables?
    >
    > Example:
    > "...write to you@<!--#echo var="uu" --> and ..."
    > is changed by DreamWeaver to
    > "...write to you@
    > <!--#echo var="uu" -->
    > and...>
    >
    > When saving or doing other editing, DreamWeaver adds a
    space and a line break
    > before and after the variable. The line break isn't hard
    and doesn't show, but
    > the spaces added before and after the variable DO show
    in browsers. That looks
    > rather stupid and incompetent, and requires hand editing
    on the server after
    > uploading.
    >
    > Line wrap and code formatting are turned off.

  • SSIS : Read Rows from an Object variable in SSIS Script Task which is looped many times.

    Hello All,
    Here is what I am trying to do...
    1. I am having two rows, one column in an Object Variable. (vLoopCountObj).
    2. I am having 30 Rows, 2 Columns in my second Object  Variable (vTableRowsObj)
    3. I have a FOR EACH LOOP which will run for number of rows in vLoopCountObj i.e 2 times here.
    4. I have a Script Task inside the FOR EACH LOOP to display all the rows of vTableRowsObj.
    5. When I execute, 30 Rows gets displayed only once. It will not display when the loop goes for second iteration. Please help me to display for second time.
    6. I have used below code to display the rows whithin the script task which is in SSIS dataflow task.
    Imports System
    Imports System.Data
    Imports System.Math
    Imports Microsoft.SqlServer.Dts.Runtime
    Imports System.Xml
    Imports System.Collections
    Imports System.Data.OleDb
    Public Class ScriptMain
    Public Sub Main()
    Dim oleDA As New OleDbDataAdapter
    Dim dt As New DataTable
    Dim col As DataColumn
    Dim row As DataRow
    Dim sMsg As String
    oleDA.Fill(dt, Dts.Variables("vTableRowsObj").Value)
    MsgBox("Number of Rows " + dt.Rows.Count.ToString())
    For Each row In dt.Rows
    For Each col In dt.Columns
    sMsg = sMsg & col.ColumnName & ": " & row(col.Ordinal).ToString & vbCrLf
    Next
    MsgBox(sMsg)
    sMsg = ""
    Next
    Dts.TaskResult = Dts.Results.Success
    End Sub
    End Class

    Hi Raj,
    It is verrrry interesting issue. I can also confirm that it doesnt loop again. I've made a simple test and figured that in the second loop even you fill the Dataadapter, record count is zero. Which brings me up to the idea: Somehow, after you read the object
    variable resultset, you can not read it again in the for each loop.
    Strange, probably a bug or a technical issue that is beyond my existing knowledge.
    I can provide a workaround. You can also loop in script task for first variable. (Nested loops)
    Let other members to examine and comment on this.
    Regards
    Onur
    (For others who also wants to test, here is my scenario
    Execute SQL Task 1:
    Query: SELECT 1 as Cnt UNION ALL SELECT 2 as Cnt
    Resultset: Full Resultset
    ResultSet Tab: Name: 0, Variable Name: User::vLoopCountObj;
    Execute SQL Task 2:
    Query: SELECT 1 as ColA, 2 as ColB UNION ALL SELECT 3 as ColA, 4 as ColB UNION ALL SELECT 5 as ColA, 6 as ColB
    Resultset: Full Resultset
    ResultSet Tab: Name: 0, Variable Name: User::vTableRowsObj;
    For Each Loop Container:
    Collection: Enum: ForEach ADO Enum
    Source Object: User::vLoopCountObj
    Enum Mode: Rows n the first Table
    Script Task:
    ReadOnlyVariables: User::vTableRowsObj
    Script Source:
    Imports System
    Imports System.Data
    Imports System.Math
    Imports Microsoft.SqlServer.Dts.Runtime
    Imports System.Xml
    Imports System.Collections
    Imports System.Data.OleDb
    Public Class ScriptMain
    Public Sub Main()
    Dim oleDA As New OleDbDataAdapter
    Dim dt As New DataTable
    Dim col As DataColumn
    Dim row As DataRow
    Dim sMsg As String
    oleDA.Fill(dt, Dts.Variables("vTableRowsObj").Value)
    Dts.Events.FireInformation(-1, "START!!!!!!!!!!!!!!", "START LOOP", "", 0, True)
    Dts.Events.FireInformation(1, "RowCount: ", dt.Rows.Count.ToString(), "", 0, True)
    For Each row In dt.Rows
    For Each col In dt.Columns
    sMsg = sMsg & col.ColumnName & ": " & row(col.Ordinal).ToString & vbCrLf
    Next
    Dts.Events.FireInformation(1, "Msg: ", sMsg, "", 0, True)
    sMsg = ""
    Next
    Dts.TaskResult = ScriptResults.Success
    End Sub
    End Class
    BI and ERP Senior Consultant @ Nexum Bogazici
    If it is, Please dont forget to mark as answered or at least vote as helpful if the post helps you in any ways.

  • How to pass arguments to a batch file from java code

    Hi
    I have a batch file (marcxml.bat) which has the following excerpt :
    @echo off
    if x==%1x goto howto
    java -cp C:\Downloads\Marcxml\marc4j.jar; C:\Downloads\Marcxml\marcxml.jar; %1 %2 %3
    goto end
    I'm calling this batch file from a java code with the following line of code:
    Process p = Runtime.getRuntime().exec("cmd /c start C:/Downloads/Marcxml/marcxml.bat");
    so ,that invokes the batch file.Till that point its ok.
    since the batch file accpets arguments(%1 %2 %3) how do i pass those arguments to the batch file from my code ...???
    %1 is a classname : for ex: gov.loc.marcxml.MARC21slim2MARC
    %2 is the name of the input file for ex : C:/Downloads/Marcxml/source.xml
    %3 is the name of the output file for ex: C:/Downloads/Marcxml/target.mrc
    could someone help me...
    if i include these parameters too along with the above line of code i.e
    Process p = Runtime.getRuntime().exec("cmd /c start C:/Downloads/Marcxml/marcxml.bat gov.loc.marcxml.MARC21slim2MARC C:\\Downloads\\Marcxml\\source.xml C:\\Downloads\\Marcxml\\target.mrc") ;
    I get the following error :
    Exception in thread main java.lang.Noclassdef foundError: c:Downloads\marcxml\source/xml
    could some one tell me if i'm doing the right way in passing the arguments to the batch file if not what is the right way??
    Message was edited by:
    justunme1

    1 - create a java class (Executer.java) for example:
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    public class Executer {
         public static void main(String[] args) {
              try {
                   for (int i = 0; i < args.length; i++) {
                        System.out.println(args);
                   Class<?> c = Class.forName(args[0]);
                   Class[] argTypes = new Class[] { String[].class };
                   Method main = c.getDeclaredMethod("main", argTypes);
                   // String[] mainArgs = Arrays.copyOfRange(args, 1, args.length); //JDK 6
                   //jdk <6
                   String[] mainArgs = new String[args.length - 1];
                   for (int i = 0; i < mainArgs.length; i++) {
                        mainArgs[i] = args[i + 1];
                   main.invoke(null, (Object) mainArgs);
                   // production code should handle these exceptions more gracefully
              } catch (ClassNotFoundException x) {
                   x.printStackTrace();
              } catch (NoSuchMethodException x) {
                   x.printStackTrace();
              } catch (IllegalAccessException x) {
                   x.printStackTrace();
              } catch (InvocationTargetException x) {
                   x.printStackTrace();
              } catch (Exception e) {
                   e.printStackTrace();
    2 - create a .bat file:
    @echo off
    java -cp C:\Downloads\Marcxml\marc4j.jar; C:\Downloads\Marcxml\marcxml.jar; Executer %TARGET_CLASS% %IN_FILE% %OUT_FILE%3 - use set command to pass variable:
    Open MS-DOS, and type the following:
    set TARGET_CLASS=MyTargetClass
    set IN_FILE=in.txt
    set OUT_FILE=out.txt
    Then run your .bat file (in the same ms dos window)
    Hope that Helps

  • Error in BatchLoad process - Object variable or with block variable not set

    Hi All,
    We are working on FDM version 11.1.1.3 with Essbase as a target system.
    To automate the data load process, we are loading the batch loader feature.
    I have taken the backload script from admin guide and it is working fine in our test environment.
    When, I am trying to use the same script in our QA environment, we are getting the below error message-
    Error: An error occurred running the script:
    *91 - Object variable or with block variable not set*
    At Line: 24
    QA environment has same version as Test environment (11.1.1.3). In QA, it the same script which I am using in Test environment.
    Please help us on this issue. Any help will be highly appreciated.
    Thanks & Regards,
    Mohit Jain

    Hi,
    As suggested by you, I have placed the code given by you and now my scripts looks like-
    'Declare Local Variables
    Dim lngProcessLevel
    Dim strDelimiter
    Dim blnAutoMapCorrect
    Dim BATCHENG
    Set BATCHENG = CreateObject("upsWBatchLoaderDM.clsBatchLoader")
    BATCHENG.mInitialize API, SCRIPTENG
    'Initialize Variables
    lngProcessLevel = 12 'Up-To-Check
    strDelimiter = "~"
    blnAutoMapCorrect = 0
    'Create the file collection
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
    'Execute a Standard Serial batch
    BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), , CBool(blnAutoMapCorrect)
    But still, I am getting the same error.
    Have I placed the your given code at wrong place? please help me on this.
    Thanks a lot for your help!!
    Thanks & Regards,
    Mohit

  • Code 91 - Caused Error: (Object variable or With block variable not set)

    Hi,
    We are using FDM 9.3.1. We have enabled batch processing.
    We are having following process being followed
    - Batch Loader script will pull the data from dwh table for each entity, scenario, year and period
    - Batch processing is set to serial and processlevel set to Up-To-Check
    - We had following five files created for Location - EMAFF100
    i. 1_EMAFF100_ACT_May-2011_RR.txt
    ii. 1_EMAFF100_ACT_Jun-2011_RR.txt
    iii. 1_EMAFF100_ACT_Jul-2011_RR.txt
    iv. 1_EMAFF100_ACT_Aug-2011_RR.txt
    v. 1_EMAFF100_ACT_Sep-2011_RR.txt
    Batch loader process completed the processing for May - 2011, Jul - 2011, Aug-2011, Sep-2011.
    But for Jun 2011 it has given the following error in the 'tbatchinformation' table and failed at import stage.
    40751.6239236111 1_EMAFF100_ACT_JUN-2011_RR.TXT 2 2 91-Object variable or With block variable not set
    When we checked the view error log from tool menu we found following
    ** Begin FDM Runtime Error Log Entry [2011-07-27-14:58:29] **
    ERROR:
    Code......................................... 91
    Description.................................. File [1_EMAFF100_ACT_Jun-2011_RR.txt] Caused Error: (Object variable or With block variable not set)
    Procedure.................................... clsBatchLoader.mFileCollectionProcess
    Component.................................... upsWBatchLoaderDM
    Version...................................... 931
    Thread....................................... 5600
    IDENTIFICATION:
    User......................................... ncreighton
    Computer Name................................ HYAPSDEV1
    App Name..................................... EMATTEST
    Client App................................... WebClient
    CONNECTION:
    Provider..................................... ORAOLEDB.ORACLE
    Data Server..................................
    Database Name................................ hydev_serv
    Trusted Connect.............................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location..................................... EMAFF100
    Location ID.................................. 762
    Location Seg................................. 16
    Category..................................... ACT
    Category ID.................................. 13
    Period....................................... Jun - 2011
    Period ID.................................... 30/06/2011
    POV Local.................................... False
    Language..................................... 1033
    User Level................................... 1
    All Partitions............................... False
    Is Auditor................................... False
    We then re submitted data for Jun period and saw batch process got successfully completed and June data got imported successfully and also rest other processes got through.
    Can any one provide exact cause for this error? As we have automated the data load from DWH to FDM And then to HFM. Hence when such error comes it disturbs lot of processing there on. Appreciate your early response.
    Thanks in advance.

    Hi SAP collegues,
    At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
    It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
    This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes.  Please check the following.
    Note before doing the following, close all other open Excel and BPC sessions.
    Within Excel go to File à Options
    Select the Add-Ins option on the left
    Select the <<COM Add-ins >> option in the Manage drop down, and click Go
    Make sure that the Planning and Consolidation option is selected.  If not, mark this box and click OK.
    If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
    Let me know if you have any queries,
    Kind Regards,
    robert ten bosch

  • FDM Serious Error(Object variable or With block variable not set).

    Hi All Intelectual,
    When i was trying to upload data into FDM for checking application flow. i got the below mentioned error pops-up everytime.
    Error: An error occurred importing the file.
    Detail: Object variable or With block variable not set
    I tried to soved it with setting up integration setting,application setting and configuration setting but it didn't worked. Please note that mapping files are getting uploaded successfully.
    Please if anybody can suggest me on the above mentioned problem.
    I will be thankful to him/her. Please understand that this issue very serious issue and is related to project.
    Waiting for replies from you all.
    Regards,
    Abhishek
    HFM / Planning

    Good day Abhishek,
    FDM does not use the HFM adapter until you select the validate fish.
    So some of the items that you can check is write access to the inbox, the SQL connection, the location import format, the SQL insert method for the location and review all the error logs in the in- and outbox that have been modified when you did the import.
    Regards

  • Dynamic populating object variable

    Hi Experts!
    I have object type:create or replace type r_attribs_t is table of varchar2(100);
    create or replace type r_relations_t is table of varchar2(40);
    create or replace type r_spatial_t is table of varchar2(100);
    type recfull_ot is object (
        r_type    char(2),
        r_class   varchar2(10),
        r_atype   varchar2(10),
        r_id      varchar2(30),
        r_idr     varchar2(100),
        r_status  char(2),
        r_dtu     date,
        r_dtw     date,
        attribs       r_attribs_t,
        relations     r_relations_t,
        spatial_data  r_spatial_t,
        map member function newer return date,
        member function get_ID return varchar2,
        member procedure load_record (p_type varchar2, p_id varchar2, p_idr varchar2)
    );and some tables:CREATE TABLE "G5ADR" (
        "ID"     VARCHAR2(30 BYTE) NOT NULL ENABLE,
        "STATUS" NUMBER(2,0) DEFAULT 1 NOT NULL ENABLE,
        "G5TAR"  NUMBER(1,0),
        "G5NAZ"  VARCHAR2(200 BYTE),
        "G5KRJ"  VARCHAR2(200 BYTE),
        "G5WJD"  VARCHAR2(200 BYTE),
        "G5PWJ"  VARCHAR2(200 BYTE),
        "G5GMN"  VARCHAR2(200 BYTE),
        "G5ULC"  VARCHAR2(200 BYTE),
        "G5NRA"  VARCHAR2(200 BYTE),
        "G5NRL"  VARCHAR2(200 BYTE),
        "G5MSC"  VARCHAR2(200 BYTE),
        "G5KOD"  VARCHAR2(200 BYTE),
        "G5PCZ"  VARCHAR2(200 BYTE),
        "G5DTW" DATE,
        "G5DTU" DATE,
        "IDR" VARCHAR2(100 BYTE),
        CONSTRAINT "G5ADR_PK" PRIMARY KEY ("ID")
    CREATE TABLE "G5DOK" (
        "ID"     VARCHAR2(30 BYTE) NOT NULL ENABLE,
        "STATUS" NUMBER(2,0) DEFAULT 1 NOT NULL ENABLE,
        "G5IDM"  VARCHAR2(200 BYTE),
        "G5KDK"  NUMBER(2,0),
        "G5DTD" DATE,
        "G5DTP" DATE,
        "G5SYG" VARCHAR2(200 BYTE),
        "G5NSR" VARCHAR2(200 BYTE),
        "G5OPD" VARCHAR2(200 BYTE),
        "G5DTW" DATE,
        "G5DTU" DATE,
        "IDR" VARCHAR2(100 BYTE),
        CONSTRAINT "G5DOK_PK" PRIMARY KEY ("ID")
    -- ... and others ...I need to write member procedure load_record loading data from one of that tables into the object variable. The table to load data from depends on p_type input parameter, howerer. This makes the problem difficult for me, because I realy don't know how to deal with that. The attribs nested table shoud be populated with all the G5% columns from the table.
    Any suggestions?
    Help, please...
    Edited by: JackK on Nov 18, 2010 9:48 AM

    OK, I've been experimenting on an alternative for DBMS_SQL...
    Here's a simplified test case based on the structures you gave.
    It should work on release 10.2 and upwards (I've only tested it on 11.2 though).
    create or replace type r_attribs_obj is object(col varchar2(30), val varchar2(100));
    create or replace type r_attribs_tab is table of r_attribs_obj;
    CREATE OR REPLACE TYPE recfull_ot IS OBJECT (
    r_id      varchar2(30),
    r_idr     varchar2(100),
    attribs   r_attribs_tab,
    member procedure load_record (self in out recfull_ot, p_type varchar2, p_id varchar2, p_idr varchar2)
    CREATE OR REPLACE TYPE BODY recfull_ot IS
    MEMBER PROCEDURE load_record (self in out recfull_ot, p_type varchar2, p_id varchar2, p_idr varchar2)
    IS
    ctx dbms_xmlgen.ctxHandle;
    res xmltype;
    attribs_tab r_attribs_tab;
    BEGIN
    ctx := dbms_xmlgen.newContext('SELECT * FROM '||p_type||' WHERE id = :1 AND idr = :2');
    dbms_xmlgen.setBindValue(ctx,'1',p_id);
    dbms_xmlgen.setBindValue(ctx,'2',p_idr);
    res := dbms_xmlgen.getXMLType(ctx);
    dbms_xmlgen.closeContext(ctx);
    self.r_id := p_id;
    self.r_idr := p_idr;
    SELECT cast(
       multiset(
         select col, val
         from xmltable(
          'for $i in /ROWSET/ROW/*
           where fn:starts-with(local-name($i),"G5")
           return element r
            attribute col {local-name($i)},
            $i/text()
          passing res
          columns col varchar2(30) path '@col',
                  val varchar2(100) path '.'
      as r_attribs_tab
    ) INTO self.attribs
    FROM dual
    END;
    END;
    CREATE TABLE "G5ADR" (
      "ID"     VARCHAR2(30 BYTE) NOT NULL ENABLE,
      "G5NAZ"  VARCHAR2(200 BYTE),
      "G5KRJ"  VARCHAR2(200 BYTE),
      "G5WJD"  VARCHAR2(200 BYTE),
      "IDR" VARCHAR2(100 BYTE),
      CONSTRAINT "G5ADR_PK" PRIMARY KEY ("ID")
    insert into g5adr (ID, G5NAZ, G5KRJ, G5WJD, IDR) values ('001', 'NAZ001', 'KRJ001', 'WJD001', '1');
    insert into g5adr (ID, G5NAZ, G5KRJ, G5WJD, IDR) values ('002', 'NAZ002', 'KRJ002', 'WJD002', '1');
    insert into g5adr (ID, G5NAZ, G5KRJ, G5WJD, IDR) values ('003', 'NAZ003', 'KRJ003', 'WJD003', '1');Verifying the nested table is correctly loaded...
    SQL> set serveroutput on
    SQL> DECLARE
      2   obj recfull_ot := recfull_ot(null, null, null);
      3  BEGIN
      4   obj.load_record('G5ADR', '001', 1);
      5   for i in 1..obj.attribs.count loop
      6    dbms_output.put_line(obj.attribs(i).col||' = '||obj.attribs(i).val);
      7   end loop;
      8  END;
      9  /
    G5NAZ = NAZ001
    G5KRJ = KRJ001
    G5WJD = WJD001
    PL/SQL procedure successfully completed

Maybe you are looking for

  • Design problem/Ex​ercise Book

    Hi Everyone,                    I am new to Labview. I just started with Labview 2011 student edition and I am following Bishop's book. But I also want a tutorial book with lots of design problems and exercises to get my skills. I am a postdoc in pur

  • Item Renderer for DataGrid

    I have a button component as a Item renderer in the column of the datagrid . I am not able to access the Itemrenderer component(which I declared in other mxml file in the datagrid) This is the data grid where I have the Itemrenderer: <mx:DataGrid id=

  • Problem with v5.0719.0.2 firmware

    hello..i updated my nokia n80 firmware to v5.0719.0.2 but now the time and date settings resets after turning off the phone what i must do now for solving this problem??????

  • PDF comparision

    I have made 2 pdfs from same indesign file, after makin one pdf I have made a little bit change in black plate (Text only) and then made again a new pdf. when I am comparing the both pdfs to ensure that nothing is move incidently, comparision shows t

  • Manage Transport Request

    Is there a way to manage transport requests in satellites system with Solution Manager without using Change Request Management?