Error trying to extract data via HFM objects

I've written a program to extract selected data from HFM (version 11.1.1.3.500) using the API objects. The program (shown at the bottom of this post) is failing on the 2nd of the following 2 lines:
oOption = oOptions.Item(HSV_DATAEXTRACT_OPT_SCENARIO_SUBSET)
oOption.CurrentValue = lBudgetScenario
where oOption is a data load/extract object previously initialized and lBudgetScenario is the long internal ID for our budget scenario.
The error is usually "COM Exception was unhandled" with a result code of "0x800456c7", but, mysteriously, even with no code changes, it sometimes throws the error "FileNotFoundException was not handled", where it says that it could not load "interop.HSXServerlib or one of its dependencies". The second error occurs even though HSXServer was previously initialized in the program and used in conjunction with the login.
I've carefully traced through the VB.NET 2010 code and find that all relevant objects are instantiated and variables correctly assigned. It also occurred to me that the data load DLLs might have been updated when the 11.1.1.3.50 and 500 patches were applied. For that reason, I removed the references to those DLLs, deleted the interop files in the debug and release folders and copied the server versions of those DLLs to my PC. I then restored the DLL references in Visual Studio which recreated the interops. However, the error still occurs.
The ID I'm using (changed to generic names in the code below) has appropriate security and, for example, can be used to manually extract data for the same POV via the HFM client.
I've removed irrelevant lines from the code and substituted a phony ID, password, server name and application name. The line with the error is preceded by the comment "THE LINE BELOW IS THE ONE THAT FAILS".
Imports HSVCDATALOADLib.HSV_DATAEXTRACT_OPTION
Module Module1
Public lActualScenario, lBudgetScenario As Long
Public oClient As HSXCLIENTLib.HsxClient
Public oDataLoad As HSVCDATALOADLib.HsvcDataLoad
Public oOptions As HSVCDATALOADLib.IHsvLoadExtractOptions
Public oOption As HSVCDATALOADLib.IHsvLoadExtractOption
Public oSession As HSVSESSIONLib.HsvSession
Public oServer As HSXSERVERLib.HsxServer
Sub Main()
'Create a client object instance, giving access to
'the methods to logon and create an HFM session
oClient = New HSXCLIENTLib.HsxClient
'Create a server object instance, giving access to
'all server-based methods and properties
oServer = oClient.GetServerOnCluster("SERVERNAME")
'Establish login credentials
oClient.SetLogonInfoSSO("", "MYID", "", "MYPASSWORD")
'Open the application, which will initialize the server
'and session instances as well.
oClient.OpenApplication("SERVERNAME", "Financial Management", "APPLICATION", oServer, oSession)
'Instantiate a data load object instance, which will be used to extract data from
'FRS.
oDataLoad = New HSVCDATALOADLib.HsvcDataLoad
oDataLoad.SetSession(oSession)
'Initialize the data load options interface.
oOptions = oDataLoad.ExtractOptions
'Find the internal ID numbers for various scenarios and years.
'These are required for HFM API function calls.
lActualScenario = GetMemberID(DIMENSIONSCENARIO, "Actual")
lBudgetScenario = GetMemberID(DIMENSIONSCENARIO, "Budget")
'Construct file names for open data.
strFileName = "c:\Temp\FEWND_BudgetData.dat"
strLogFileName = "c:\Temp\FEWND_BudgetData.log"
'Extract data for the current open cycle.
ExtractData("Budget", BudgetYear, "Dec", strFileName, strLogFileName)
End Sub
Sub ExtractData(ByVal strScenario As String, ByVal strYear As String, ByVal strPeriod As String, _
ByVal strFileName As String, ByVal strLogFileName As String)
'Populate the Scenario element.
oOption = oOptions.Item(HSV_DATAEXTRACT_OPT_SCENARIO_SUBSET)
If strScenario = "Actual" Then
oOption.CurrentValue = lActualScenario
Else
'THE LINE BELOW IS THE ONE THAT FAILS
oOption.CurrentValue = lBudgetScenario
End If
End Sub
Function GetMemberID(ByVal lDimID As Long, ByVal strMemLabel As String) As Long
Dim oMetaData As HSVMETADATALib.HsvMetadata
oMetaData = oSession.Metadata
oEntityTreeInfo = oMetaData.Dimension(lDimID)
GetMemberID = oEntityTreeInfo.GetItemID(strMemLabel)
End Function
End Module

I stumbled upon the solution to my problem. The documentation for extracting data via objects defines member ID variables as Longs. In fact, I've always defined such variables as longs in previous object programs and had no problems. It appears that the datal load/extract "option" property of "Currentvalue" is defined as integer. When I changed all of my member ID items (such as the "lBudgetScenario" variable that was the right-side of the failing assignment statement) to be integers, the program worked.

Similar Messages

  • Extended Analytics - Is it possible to extract data from HFM to MS Access through an UDL (OBDC) file?

    Hello,
    I am trying to extract data from HFM, using Extended Analytics, to MS Access through an UDL (OBDC) file but it displays the following error:
    "error occurred while connecting to the database"
    I've followed these steps:
    1. Create a blank MS Access database (.mdb format)
    2. Create an .UDL file which connects to MS Access database:
          - Provider: Microsoft Jet 4.0 OLE DB Provider
          - Connection: Linked to the .mdb database created in step 1.
          - Give "ReadWrite" permissions.
    3. Test .UDL file connection successfully.
    4. Create DNS with Extended Analytics DNS Configuration tool.
    5. In Extended Analytics (HFM), once selected the new DNS and extract it displays the error commented before.
    ¿Do you know how i can solve this issue?
    Thank you in advance,
    Best regards,

    Hello Anjum Ara,
    Thank you for your response.
    I don't understand how to add my database SID to tnsnames.ora. (I already found the file but i don't know how to add new database SID)
    I have created one MS Access database in "C:\TEST.mdb" and i want to connect Extended Analytics to it.
    How i have to add this database into tnsnames.ora file?
    Thank you in advance,
    Kind regards

  • Error when trying to extract data from Solman to BI 7

    Hi,
    We are trying to extract data from Solman 7 to BI 7. The following extractors have been activated on Solman since we want to be able to report CCMS ALERTS and System availability on Bi Portal.
    Transaction SPRO -> SAP Reference IMG -> SAP Solution Manager -> Scenario-Specific Settings -> Operations -> BI Reporting
    transaction: RSA5 (Installation of DataSource)
    0SM_SMG_ROOT Oberster Knoten Solution Manage
    0SM_SMG Solution Manager
    0SM_DSWPBI_DB390
    0SM_DSWPBI_DB400 DB400 Data
    0SM_DSWPBI_DBADA Adabas Data
    0SM_DSWPBI_DBDB2 DB2 Data
    0SM_DSWPBI_DBINF Informix Data
    0SM_DSWPBI_DBMSS SQL Server Data
    0SM_DSWPBI_DBORA Oracle Data
    0SM_DSWPBI_MODUL Module Data
    0SM_DSWPBI_PERF Performance Data
    0SM_DSWPBI_SERVER Server Data
    0SM_DSWPBI_SYSDATA System Details Data
    0SM_DSWPBI_SYSTEM System Data
    Our current situation is that we have scheduled the jobs through Solution_manager > solution Reporting > BI Data collection. Yet no data has been collected and the jobs are getting cancelled.
    Has anyone come accross this same situation before? Plus I have just found out that on SOLMAN_WORKCENTER under System Monitoring there is a reporting step named IT PERFORMANCE reporting that needs to be configured.
    Please advice since this will be critical for our busines.

    Hello,
    I have collected the data from our systems successfully. I have implemented the steps lsited at http://help.sap.com/saphelp_sm70ehp1_sp26/helpdata/de/45/51fbdbd4941803e10000000a1553f7/frameset.htm and it works fine.
    Regards
    Andreas

  • Errors occurred during extraction of UD Connect object field- table not fou

    Hi,
    In BI 7.0 system I can't select any UD Connect source object on the "Extraction" tab page of  the DataSource maitenance screen. If I type the table name (which is "UDITEST") into it and then hit the "Proposal" tab page, I get the following error:
    Errors occurred during extraction of UD Connect object field-list: Errors occurred during extraction of UD Connect object field-list: UDCADAPTERROR::RSSDK|200|Table: uditest not found|
    Message no. RSDS_ACCESS036
    Analysis:
    1) We have tested the BI JDBC Connector using the URL:
    http://xxxabcdev03:50000/TestJDBC_Web/TestJDBCPage.jsp
    We got the list of tables displayed (UDITEST table is also displayed)=> connector is configured properly.
    2) When we are trying to configure the Source system in rsa1->modelling->source systems-> UD connect -> create,
    a) RFC Destination: We are using an RFC Connection that is already in place of type 'T'   between the J2EE engine and BI ABAP engine. We tested this connection from SM59 -> TCP/IP connections and it is working fine.
    How do we test whether the RFC between J2EE engine and BI ABAP engine is a 2 way RFC connection?
    b) Logical System Name: We have manually typed in free text 'UDC_local'. Could you please clarify do we need to type in manually or select the logical system name from the F4 help?
    Which logical system name should we enter here exactly.. pls clarify.
    Do we have a seperate logical system name for the J2EE server...?
    c) Type of Connector : JDBC
    d) name of connector: SDK_JDBC
    e) Source system name: SDK_JDBC
    f) Type and Release : blank
    Thanks to any answers in advance!
    Best regards,
    Syam

    Hi,
    Tried to give the Logical System Name in uppercase ie: UDC_LOCAL.
    Now, when I click on the F4 of 'UD Connect Source Object' in Extraction tab, I get the message as below:
    "Extraction of existing UD Connect data source objects".
    But no list of tables is being displayed. When I entered the table name (UDITEST) manually, it gives the same error as :
    " Errors occurred during extraction of UD Connect object field- table not found"...
    Could you please specify from where is the UD Conenct source object fetched from?
    Rgds
    Syam

  • How to extract data via webservices and configure webservices in BI 7

    Hi to all,
    Can any body tell me How to extract data via webservices and configure webservices in BI 7.
    i have created a remote functionmodule which extract data from R/3 , now i want to upload data to BI 7 using that remote function module.
    i have use webservice (push) as adapter mode, as i want to connect function module with SOAP , via web services.
    please can any body tell how to do that.
    also how to configure the webserive , what is it .
    I SHALL BE THANKFULL TO YOU FOR THAT
    Regards
    Pavneet rana

    Hi,
    1. Using the function library (transaction SE37), call the Web service creation wizard.
    To do this, select the desired function module in the function library and choose Utilities ®Generate Web Service ® From the Function Module.
    2. Go through the following steps, shown in the wizard:
    a. Create a virtual interface.
    The virtual interface represents the interface between the Web Service and the outside.
    b. Choose the end point.
    The name of the function module that is to be offered as Web service is already entered here.
    c. Create the Web service definition.
    The Web service definition helps with assigning the Web service features, such as how security can be guaranteed in data transfer.
    d. Release the Web service.
    The wizard generates the object virtual interface and Web service definition in the object navigator.
    The function group that was generated when the XML DataSource was created is not transportable and is thus assigned to a local package. To prevent errors due to transports, make sure that the objects that were generated in the Web service creation wizard are assigned to a local non-transportable package.
    The Web service is released for the SOAP runtime.
    3. In the virtual interface for the import parameter DATASOURCE, define the name of the XML DataSource as the fixed value.
    A separate function group is generated for each XML DataSource. It makes sense to pre-assign the parameter DATASOURCE with the name of the XML DataSource in the virtual interface of the Web service for which the function group was generated.
    If you do not pre-assign the parameter, it will be necessary to transfer the data sent with the appropriate filled DataSource element, for example, by setting the value in the application that implements the Web service.
    a. In the object navigator, choose the name of the package in which the Web service was created and choose Enterprise Services ® Web Service Library ® Virtual Interfaces.
    b. Choose Change in the context menu for the virtual interface.
    c. For the virtual interface, remove the flags exposed and initial and enter the name of the XML DataSource in apostrophes, for example u20196ADATASOURCENAMEu2019.
    d. Activate the virtual interface.
    Regards,
    Marasa.

  • Error: there is a problem connection to the GPRS service in your registered home network, error trying to make data connection. this may be casued by a voice call, a wired activesync connection or inncorrect network setting

    like 2 weeks ago i called in to att to see how much is the data plan and it would end up costing $30.
    so i was like screw that. well they figured that i got a new phone replacing the LG shine. so they asked
    for to call this number so they can recieve data which would updated the system that i have a plam treo 750.
    ever since this conflict i can't send picture messages. i get that problem. everytime i attempt to send a picture
    i recieve this.
    - there is a problem connection to the GPRS service in your registered home network.
    - then i get a test that says error trying to make data connection. this may be casued by a voice call,
    a wired activesync connection or inncorrect network setting.
    please someone help me.
    btw. hard reset and soft reset did not work for me.
    Post relates to: Treo 750 (AT&T)

    problem fix, i had to call in. customer serivce. and when i called to ask about the plan. they blocked it. so i had to unblock my internet.
    Post relates to: Treo 750 (AT&T)

  • Run time error COMPUTE_BCD_OVERFLOW when extracting data

    Dear all,
    We are facing an issue when trying to extract the data for CRM Service contract item Extractor. It is giving runtime error when trying to extract particular range of transaction number say 1 to 50. but if i split these into 2 packages i.e 1 to 25 & 26 to 50, the data is getting extracted without any problems. If anyone has come across the similar issue, please share your views.
    details of the errro:
    Runtime Errors         COMPUTE_BCD_OVERFLOW
    Except.                CX_SY_ARITHMETIC_OVERFLOW
    Short text
        Overflow during the arithmetical operation (type P) in program
    Thanks in Advance!
    Regards,
    Pavan

    Hi,
    I can see that there are several SAP notes regarding this issue, you just need to check their symptons and if they are valid for your SAP_APPL release and support package.
    Here are the SAP notes:
    - 1295055: Product cost collector: Field AFPO-WEMNG set incorrectly
    - 964308: COMPUTE_BCD_OVERFLOW in CKMO_GET_ORD_HIST_NETWR_MMIM
    I hope they help you.
    Regards,
    Marcelo

  • How to Extract data from HFM in ANSI format?

    We want the .dat file from Extract data in ANSI format. Currently this file is created by default in Unicode format. I tried unchecking the 'Save all files in Unicode format' option in Consolidation tab under Preferences, but for some reason the change is not getting saved.
    Does unchecking of this option change the file format?
    Is there any other option to change the file format ?
    What is required to be done to save the changes made in Preferences?
    I am using HFM 9.3.1
    Edited by: Amit Kumar on May 20, 2009 7:52 PM

    Any info on this issue?
    The changes made in preferences are not getting saved for some users. Is this related to role assigned?

  • Data Pump import to a sql file error :ORA-31655 no data or metadata objects

    Hello,
    I'm using Data Pump to export/import data, one requirement is to import data to a sql file. The OS is window.
    I made the follow export :
    expdp system/password directory=dpump_dir dumpfile=tablesdump.dmp content=DATA_ONLY tables=user.tablename
    and it works, I can see the file TABLESDUMP.DMP in the directory path.
    then when I tried to import it to a sql file:
    impdp system/password directory=dpump_dir dumpfile=tablesdump.dmp sqlfile=tables_export.sql
    the log show :
    ORA-31655 no data or metadata objects selected for job
    and the sql file is created empty in the directory path.
    I'm not DBA, I'm a Java developer , Can you help me?
    Thks

    Hi, I added the command line :
    expdp system/system directory=dpump_dir dumpfile=tablesdump.dmp content=DATA_ONLY schemas=ko1 tables=KO1QT01 logfile=capture.log
    the log in the console screen is (is in Spanish), no log file was cerated in the directory path.
    Export: Release 10.2.0.1.0 - Production on Martes, 26 Enero, 2010 12:59:14
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Conectado a: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    UDE-00010: se han solicitado varios modos de trabajo, schema y tables.
    (English error)
    UDE-00010: multiple job modes requested,schema y tables.
    This is why I used tables=user.tablename instead, is this right ?
    Thks

  • Is it possible to change the dimension order when extracting data from HFM?

    Hello,
    When accessing Consolidation/Extract/Data is it possible to change the dimension order of the extract rather than extracting the standard order?
    I can see you can change the dimension order visually by going to "Reorder dimensions" but this does not carry through to the actual extract.
    If its not possible using this method is there another method? Trying to avoid using smartview for this purpose.
    Many thanks and kind regards,
    Rich

    Hi,
    No, it is not possible to change the order type.
    -Paul

  • % Wildcard selection - extract data via Query as a Web Service

    Hello all,
    I am using Query as a Web Service to extract data through to my Xcelsius document. I have a series of charts that display summed data according to user selections within some combo boxes.
    Is there any way to send through a wildcard selection, i.e. pass a " like '%' " query string somehow through to the database?
    With the query that I have created:
    I have a measure value returned
    I have 4 filter objects
    I have selected the "Prompt" option for each
    Within the Data Manager, the prompt fields are assigned to cells which reference the combo box selections
    When I build the query, the selections available are many (equal to, not equal to, greater than, greater than or equal to, etc), but there is no 'like' comparison.
    Alternatively, is there a way that I can pass the selected parameter values, including " like '%' " if no value is selected within a dropdown, to the original measure calculations within the universe?
    I hope this makes sense, let me know if I need to clarify anything. Any help would be very much appreciated.
    Cheers,
    Marco

    Very easy solution - select 'matches pattern' within the filter objects selection when building the query.
    Don't know why I didn't try this earlier.

  • Error when save project Access via 'NULL' object reference not possible PLM

    Dear All,
    we are using cProject (PLM)4.0
    When i create project & try to save ,system gives me error 'Access via 'NULL' object reference not possible'
    Steps
    1.Create project & element
    2.save
    showing below error
    Note
    The following error text was processed in the system PLD : Access via 'NULL' object reference not possible.
    The error occurred on the application server Ndimdev_PLD_20 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Error code: ICF-IE-http -c: 300 -u: PLMUSER1 -l: E -s: PLD -i: Ndimdev_PLD_20 -w: 0 -d: 20090702 -t: 164926 -v: RABAX_STATE -e: OBJECTS_OBJREF_NOT_ASSIGNED
    Please do needful
    Regards
    Ravindra

    Hi,
    Put a break point and check whther ur node and
    element instantiation is properly done.
    Thanks,
    Divya.S

  • ODI : extract datas from HFM filtering on base members of certain accounts

    Does anyone know how to filter only Basemembers for certain accounts for extracting data ?
    I need to extract data for level0 members of certain accounts which is about 300. If I don't put the filter its more than 2000 records.

    Hi - unfortunately you cannot do that in the current KM. We faced the same issue and logged the issue with Oracle. Its being considered as an enhancement not as a bug. So we have to wait for future releases. As a solution for this we created TaskLists in HFM and extracted data.
    -app

  • Anyone tried this - Extract data from HANA Live reuse views into BW?

    Hello Experts,
    I've read from this blog http://scn.sap.com/community/bw-hana/blog/2014/05/26/go-hybrid--sap-hana-live-sap-bw-data-integration that this scenario
    > "Loading of data into BW using Reuse Layer of SAP HANA Live as data source (Extract data from HANA Live reuse views into BW)" is possible.
    Does anyone has a step by step guide on how to do this? Can you please share?
    Regards,
    DaSaint

    Hi DaSaint,
    best to check the online documentation
    Notes about transferring data from SAP HANA using ODP - Modeling - SAP Library
    Best regards,
    Andreas

  • Error while extracting data via UD Connect

    Hi,
    Trying for the first time to connect Oracle data base/JDBC connection type via UD connect(we are in BI 7.0).While creating the data source and assigning UD Connect source object in the extraction tab,following error is obtained" UDCADAPTERROR::RSSDK100 ,cannot open connection"
    Appreciate if anybody can advice me on this..checked the RFC connection in BW and its working ok.
    regards
    savi

    Hi Michael, we have JDBC connection tested in TestJDBCPage.jsp and working good, only have problems in Schema for access to tables, but in SQL test using Schema the result is ok.
    How we can get Logs for detect the problem in msg : <b>UDCADPTERERROR::RSSDK|200|TABLE:</b>
    We apreciate you collaboration, thank you.

Maybe you are looking for