VARBINARY problems in OBIEE 11g importing data from DB2 AS/400 V6R1

Hi all,
I have set up a connection between OBIEE 11g version 11.1.1.6.0 and DB2 AS/400 V6R1.
It is working fine for most of the data types, but we have the following cast sentence in a view:
CAST(
CASE WHEN A.RCATLY IN ( 1250 , 1000 ) THEN F.DESCRIPTION3 ELSE
CASE WHEN A.RCATLY=12 THEN 'AUM' ELSE
CASE WHEN F.KEYASL3='AL_EXCLUDED' THEN 'Other open items' ELSE
'AUM' END END END AS CHAR(50)) AS POS_CAT,
CAST(CASE WHEN F.DESCRIPTION3 IS NULL THEN 'Securities' ELSE F.DESCRIPTION3
END AS CHAR(50)) AS POS_DESCR
We are importing this view into OBIEE 11.1.1.6, the fileds POS_CAT and POS_DESCR are coming as BINARY, we also have tried to cast them to VARCHAR, they come as VARBINARY instead.
When we try to see the fields in a report we are getting the error below:
Error Codes: OAMP2OPY:Q4NU7XSN
Invalid Handle Of 'const saw::ExpressionBase*' Exception
I have tried to cast this fileds to VARCHAR in administration, no luck, error below:
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 46035] Datatype(VARBINARY) nullable(1) unicode(1) external char(0) conversion to datatype(VARCHAR) nullable(1) unicode(0) external char(0) is not supported. (HY000)
SQL Issued: SELECT 0 s_0, "MI"."DWSPAIN01"."POS_CAT" s_1 FROM "MI" FETCH FIRST 65001 ROWS ONLY
Any suggestion?
Edited by: Ruben Alonso Ortega on 04-Mar-2013 07:23

Thanks for your quick response, I have tried to change it in the phisycal layer, to CHAR, VARCHAR, same error, it didn't work.

Similar Messages

  • OBIEE 11g - Combine data from two Oracle tables

    Good day!
    I tried to combine data from two Oracle tables as fact data, but it doesn't work.
    My steps: I created SCOTT.EMP2 table from SCOTT.EMP table, update EMPNO and ENAME values of EMP2 table to distinguish data of my tables. Then I imported physical tables DEPT, EMP and EMP2 to BIEE 11g, created joins DEPT-EMP and DEPT-EMP2 in physical diagram. Then I dragged DEPT and EMP tables to BMM, and EMP2 table to EMP as second LTS. In Content tab for EMP and EMP2 I checked "This source should be combined with other sources at this level" checkboxes. Then I renamed logical tables EMP and DEPT to Employees and Departments and dragged them to Presentation area. In Answers I created Analysis with columns DNAME and ENAME.
    The problem is that data on results tab is only from one physical table EMP or EMP2 (depending on the order of sources EMP and EMP2 of LT Employees) and not from both.
    Can anybody help? Am I missed something?
    Al.

    Hi Al,
    I think you have to define the content of the LTS.
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_BusModSetup16.html
    You have to specify the content of the different fragments.
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_SetUpAggNav3.html#wp1005333
    Maybe you have to add an additional column 'Source' ('EMP1', 'EMP2')
    Good Luck,
    Daan Bakboord
    http://obibb.wordpress.com

  • Need to import data from DB2 into Essbase

    I need to create a Windows process (like a daemon) to constantly check DB2 for updated records and then pull the updated record into Essbase and clean the blocks. Would it be better to:
    a) Write a ESSCMD macro with the import command to somehow run constantly
    b) Write a Java class that will pull the information with SQL
    c) do something else?
    Do you have any suggestions for the best way to do this?

    What you should do depends on your skills (among other things).. It seems to me that if you write it in Java, you have a whole lot of flexibility that you don't have with scripting languages such as EssCmd or Maxl.
    Tim Tow
    Oracle ACE
    Applied OLAP, Inc.

  • Using sqlldr to load CLOB data from DB2

    I am stuck trying to resolve this problem. I am migrating data from DB2 to Oracle. I used DB2 export to extract the data specifying lobsinfile clause. This created all the CLOB data in one file. So a typical record has a column with a reference to the CLOB data. "OUTFILE.001.lob.0.2880/". where OUTFILE.001.lob is the name specified in the export command and 0 is the starting position in the file and 2880 is the length of the first CLOB.
    When I try to load this data using sqlldr I'm getting a file not found.
    The control file looks something like this:
    clob_1 FILLER char(100),
    "DETAILS" LOBFILE(clob_1) TERMINATED BY EOF,
    I'm using Oracle 11gR2 and DB2 9.7.5
    Your help is appreciated.

    OK..here are additional details. Some names have changed but the idea is the same. Also the sqlldr is executing in the same directory as the data files and the control file
    Primary data file is VOIPCACHE.dat Secondary datafile (file with lob data) is VOIPCACHE.001.lob
    Control Fileload data
    infile 'VOIPCACHE.dat'
    badfile 'VOIPCACHE.bad'
    discardfile 'VOIPCACHE.dsc'
    replace into table VOIPCACHE
    fields terminated by ',' optionally enclosed by '"' TRAILING NULLCOLS
    (KEY1 "rtrim(:KEY1)",
    FIELD8,
    clob_1 FILLER char (100),
    "DATA" LOBFILE(clob_1) TERMINATED BY EOF)
    Snippet from Log file
    IELD7 NEXT * , O(") CHARACTER
    FIELD8 NEXT * , O(") CHARACTER
    CLOB_1 NEXT 100 , O(") CHARACTER
    (FILLER FIELD)
    "DATA" DERIVED * EOF CHARACTER
    Dynamic LOBFILE. Filename in field CLOB_1
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.0.0/' for field "DATA" table VOIPCACHE
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.0.47/' for field "DATA" table VOIPCACHE
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.47.47/' for field "DATA" table VOIPCACHE
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.94.58/' for field "DATA" table VOIPCACHE
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.152.58/' for field "DATA" table VOIPCACHE
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file 'VOIPCACHE.001.lob.210.206/' for field "DATA" table VOIPCACHE
    This is repeated for each record
    sqlldr command
    sqlldr userid=${SCHEMA}/${PASSWD}@$ORACLE_SID control=${CTLDIR}/${tbl}.ctl log=${LOGDIR}/${tbl}.log direct=true errors=50
    I dont think the variables are important here
    -EC

  • Problem Importing Data from Raiser's Edge into Crystal Reports

    This is likely going to be a very simple one for the expert community. I am a novice Crystal Reports user. We received our license for the app bundled with the Raiser's Edge donation tracking software.
    In previous versions of Crystal, when importing data from a Raiser's Edge export, the default method of data linking was a Left Outer Join.
    However, for the latest version, it appears this has defaulted to using an Inner Join, which does not display data the way we'd like it to in our reports.
    The fix we use right now (supported by Raiser's Edge support team) is simply to go in and manually adjust all of the reports table links. This can be time-consuming, however.
    I would like to know if there is a way to get Crystal to import, by default, using something other than an Inner Join. Simply using the Add Command when importing the data isn't an ideal option as building a custom SQL query each time is about as time-consuming as manually changing each of the links via the Crystal GUI. (part of the reason this would be so time-consuming is that the Raiser's Edge database tables aren't intended to be directly interacted with by the end-user, so getting the information on what table names would be in play is a bit of a process).
    The version of Crystal we are running is: 11.0.0.1282, Crystal Standard.
    Please let me know if I've left off any vital information needed to help with this query. I'll do my best to fill in any gaps I may have left here.

    Hi Michael,
    Raiser's Edge db is not ideally supported with Crystal Reports.However, what you may try as of now,is to upgrade the application to release 2 and then check for the results.
    Following is the link:
    http://resources.businessobjects.com/support/additional_downloads/service_packs/crystal_reports_en.asp#CRXIR2
    Please choose the  "Service Pack 2 - Full build - ZIP - 1.03 GB - released April 2007" hyperlink.
    The same keycode will work for this version also.
    Thanks
    Prathamesh

  • Error in Importing Data from SAP BW ( XMLA )

    HI All,
    I am trying to import a physical schema from sap bw ( sap user has all grants ) through the XMLA access
    IN repository I see objects ( connection pool, hierarchies, dimensions, measures ) and in a while I get them to the presentation layer accessible for users.
    Though when I try to access data build the query I get the following error:
    OPR3ONWY:U9IM8TAC:DI2DL65P
    HY00 Code 10058 [NQODBC][SQL STATE HY0000][NQSError 10058] A general Error has occurred XMLA Error returned from the server.
    Can you please help me in understanding how to solve the problem?
    Thanks a lot.
    Best regards to everybody.
    Filippo

    mithuu wrote:
    HI Filippo,
    Sorry to reply to this post,
    Could u please tell me ...what shud be given in URL which is prompted when trying to Import data from SAP bw while creating a repository.
    I am a beginner and tried to seek help from the sap basis guys but of no help.
    Appreciate ur help,
    Many Thanks...Hi Mithu,
    Give the SAP Multi-Dimensional Database server URL and a username, password required to access it.
    If you do not know them, ask your TL/PM, if u do not have one ask the SAP Data warehouse DBA.......
    Venkat
    Edited by: OBIEE+ on Jan 27, 2009 2:21 AM

  • Error while importing data from 8i to 9i

    Hello !
    I have installed 9i and now want to import data from previous database 8i which contains GB's of data.
    I have exported through transporatble tablespaces but while importing to 9i i receive the following error of national character set .
    Import done in WE8MSWIN1252 character set and WE8ISO8859P1 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    export client uses US7ASCII character set (possible charset conversion)
    export server uses US7ASCII NCHAR character set (possible ncharset conversion)
    IMP-00003: ORACLE error 2248 encountered
    ORA-02248: invalid option for ALTER SESSION
    IMP-00000: Import terminated unsuccessfully
    Can any one fix this problem
    Regards
    Shimak

    If you're moving data from 10G to 9i, using EXP/IMP, I would try using the 9i EXP to create the dumpfile with data from the 10G database, and then using the 9i IMP to import that dumpfile into the 9i database.
    Sounds like you have been using the 10G EXP and IMP in both cases.

  • Import data from excel

    Hi, I am using Jdeveloper 11g 11.1.1.5.0 and I want to import data from excel in my table through the jsf page and commit it to database. How can I implement it. Its urgent please help me!!!!!!!!!!!!!!!!!!!!!

    Unless you are importing Excel data to save a dying patient in the operating theatre, it's not, by definition, urgent!!!!!!!!!!!!!!!!!!!!!! (and I must be right, because I used 22 exclamation points, where you only used 21).
    Have you looked at ADF Desktop Integration to see if that would work for you? If not, you could:
    1). Use an af:inputFile to upload the Excel file
    2). Using something like Apache POI to read the file
    3). Create rows, set the attributes, insert them, and commit them (if you're using ADF BC, you'd use a View Object to do this)
    John

  • Import data from excel file

    Hello.
    Is anybody can help how to import data from excel file to the form created with designer 7.0. Originally there is a script inside the form to populate drop down list and depending from data selected in the ID number drop down list, there will be filled out the description and the prices text fields. But now I have to modify this form with data from excel file, which has more than 30000 lines and put all this data to script is too much.
    So, can somebody know how can I after filling the ID number field , populate the description and price text fields with data from excel file corresponding to this ID number ?
    This form is used in Adobe reader.
    Any comments are welcome.
    Regards,
    Aivar

    Hi
    That's what i said in my prev. Post to clear cache... :)
    disable your cache from nqsconfig.ini
    In cache section of NQSConfig file,
    you find
    ENABLE     =     YES;
    set to NO
    OR
    if you are using data ware house as the source for OBIEE,
    you know that when ETL is done, so just create iBot to purge cache automatically at that particular intervals,
    So that report runs freshly at that time
    And what happened to your View Selector question?
    Edited by: Kishore Guggilla on Jul 3, 2009 3:52 PM

  • Import data from xml using ssis

    Using Sql Server 2012 STD edition, SSDT (Visual Studio 2010 shell, .net framework 4.0.3 SP1
    I am trying to import data from an xml file using ssis.
    Here are the three options I tried and none worked. Please see errors that I encountered in all options and let me know what I can do to import this data in sql
    server.
    I created a new ssis project with an ssis package. I pulled a data flow task on the control flow. On the data flow tab I pulled an xml source and a sql server
    destination. Now I tried to configure the xml source task in the the following three ways, but none worked.
    1. I browse the xml file to set xml location. Browse the xsd file to set xsd location, then click ok. I get the following error:
    HRESULT errorcode 0xC02090CF from a method call. There was an error setting up the mapping. Undefined complex Type 'gml_V4.1_Release:PolygonType'
    is used as a base for complex type extension
    2. I browse the xml file to set xml location. check "Use inline schema" Click ok. Error:
    HRESULT errorcode 0xC020929E from a method call. The xml source adapter was unable to process the XML data. Multiple inline schemas are not supported.
    3.I browse the xml file to set xml location. Click "Generate  XSD". Error: The supplied xml instance is a schema or contains inline schema. The
    class cannot infer a schema for a schema.
    Thank you for your help.

    Hi ,
    I think something problem with the XSD file i too faced somewhat same problem, i have created XSD file from the following link and tried in my package it has worked why don't u try to create xsd file from following link and try again once.
    http://xmlgrid.net/xml2xsd.html
    Niraj Sevalkar

  • Import data from text file

    We are trying to import data from a text file into fields in a form using the importTextData method for the Doc object. The script we are using looks like this:
    var doc = event.target;
    var returnCode = doc.importTextData("datafile.txt",0);
    The text file "datafile.txt" contains tab separated values in a header row (which corresonds to field names in the form) followed by tab separated datarows - all according to instructions in the API.
    The returnCode will result in an integer value, which in our case represent "Error: Invalid Row". It would help us a lot if anyone could give us a hint on what may be wrong or even better post a working solution.
    We have also tried using the importTextData method without any parameters (the user is then prompted to select the text file and then the specific row) but the result remains the same. The fields in the form are not populated with data and the message "Error: Invalid Row" is returned.
    Annika Lindqvist

    The problem you're experiencing is that importTextData is an Acrobat API call. As such, it executes on the AcroForm field equivalents to the XFA fields you've placed on the form. What's not indicated in the API for importTextData is that the names in the fields in the header of the text file must be the
    full AcroForm SOM expression.
    I've created a working sample to explain this.
    First, I created a form with a table with one row in it containing 3 columns named FirstName, LastName and Country.
    Then I created a data.txt file like this:
    FirstName LastName Country
    Fred Jones USA
    Kyle Francis Canada
    Sam Roberts UK
    I then placed a button on the form which calls "event.target.importTextData();" and ran the form in Preview.
    Of course, when I selected a row for import, nothing happened.
    I then used the "Avanced | Forms | Export Data from Form..." menu option in Acrobat after filling-in the fields in the table with some text and looked at the generated text file (note that you have to specify text as the output format). In there, I was able to figure-out what the full AcroFrom SOM expression was for each field I wanted to import data into.
    I changed my data file to look like this:
    form1[0].#subform[0].Table1[0].Row1[0].FirstName[0] form1[0].#subform[0].Table1[0].Row1[0].LastName[0] form1[0].#subform[0].Table1[0].Row1[0].Country[0]
    Fred Jones USA
    Kyle Francis Canada
    Sam Roberts UK
    Afther that, importTextData worked as expected without any errors.
    Stefan
    Adobe Systems

  • Import data from excel 2013 workbook issue,is it a bug ?

    When I use powerquery to import data from excel 2013 workbook An unexpected error occurred.Other editions no problem.

    I‘m sure this is a bug.I'm option in default language set to English.Saved the file and use powerquery import it.Excle worked fine.
    I'm option in default language set to simple chinese.Saved the file and use powerquery import it.An error occurred.

  • Import data from BW to PAS error.

    Hi, Everyone
    I am importing data from SAP BW to PAS using the BICA. I selected the LinkID, clicked on Get BW Cubes and query, the query appears in the list below. no problems. I selected the PAS model on combo below, clicked on Import query and the following error appears:
    Error message Can not get value of property 'split': the object is null or not defined
    URL "http://<hostname>/strategy/bi/admin_bic_settcons.htm"
    Line # 68
    The installation of SSM is recent and is being tested. It may be an installation error?
    Can anyone help me?
    Thank you.
    FabioMelo
    Edited by: FabioMelo on Feb 1, 2012 2:41 PM
    Edited by: FabioMelo on Feb 1, 2012 2:42 PM
    Edited by: FabioMelo on Feb 1, 2012 2:43 PM

    Hi Elad Peleg  ,
    These r the following web-sites which give u a step-by-step solution to solve u'r problem :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0ccae190-0201-0010-1593-c90ef3c1d159
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/903de8cf-0201-0010-7f9c-cdd1dcec5139
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/3c51403ab46f13e10000000a1550b0/RN_BW_EN.pdf
    http://help.sap.com/bp_biv170/documentation/SAP_BW_3.5_Functoin_Detail.pdf
    *******Pls Reward points if u find this useful
    cheers!
    gyanaraj

  • How to import data from excel or csv files to Oracle table

    hello everybody,
    I am new here and new in Oracle. I would like to know the steps how to import data from excel or csv files to Oracle table.
    Let say I already have table inside the Oracle. Then my user give me the sets of data inside the Excel Worksheet.
    So, how can I import the excel data into Oracle table.
    Thank you in advance.
    cheers,
    shima

    Even easier. Download JDeveloper 11G from this site.
    Set up the database connection, right click on the table, select Import->Excel and specify your file to load it. On the import pop-up, you must view and update each tab indicating Columns, Data Types, and DML.
    Columns -- move the selected columns that you want to load to the box on the right
    Data Types -- select column name from second column to which the data for each column of the import file should load
    DML -- click this tab to generate the INSERT SQL
    Once done click 'Insert'

  • Giving dynamic sheet name while importing data from Excel in OPENROWSET query

    I want to import data from Excel to table in SQL server. Sheets in Excel file can have any name. I want to get data from first sheet of the excel file. 
    CREATE PROC CopyExcelDataToTempTable
    @ExcelPath VARCHAR(1000)
    AS
    BEGIN
    EXEC sp_configure 'show advanced options', 1;
    RECONFIGURE;
    EXEC sp_configure 'ad hoc distributed queries', 1;
    RECONFIGURE;
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1;
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1;
    INSERT INTO TempData
    SELECT *
    FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
    SELECT CONCAT('Excel 12.0 Xml;HDR=YES;Database=', @ExcelPath),
    'SELECT * FROM [Sheet1$]');
    END;
    Currently I am giving Sheet1 as static name in Select statement. But my sheet name is not fixed. I want to create a dynamic query. If getting Sheet name is not possible then can we put sheet with its index in Select query? There is no front end. Whatever I
    want to do is in SQL server 2012. Is there any solution for this problem?

    Hi Ajinkya,
    To get the sheet names from an excel, you can use the Stored Procedure
    SP_TABLES_EX. See the below code.
    EXEC sp_addlinkedserver 'ExcelSource', '',
    'Microsoft.ACE.OLEDB.12.0',
    'c:\worksheet.xls',
    NULL,
    'Excel 8.0'
    EXEC sp_addlinkedsrvlogin 'ExcelSource', 'false'
    GO
    EXECUTE SP_TABLES_EX 'ExcelSource'
    the names in the worksheet.xls and execute result are like below.
    Table name
    a
    b
    c
    d
    Regarding your description, you need the first sheet of your excel. As the result shows, the sheet names are sorted, so there’s no guarantee to get the first one. The SP can work as a workaround when there’s only one sheet in your excel or the required sheet’s
    name is customized to be sorted at the top first.
    If you have any question, feel free to let me know.
    Best regards,
    Eric Zhang

Maybe you are looking for

  • Is it possible to burn updates to a disc and then install them?

    I only have dial up at home so making updates to my Safari and OSX is almost impossible. Is it possible to download them at work, burn them to a disc, and safely install them at home?

  • How to find out Forms Server version in pl/sql procedure

    How can I get the version number and/or patchset of the Forms Server through which my pl/sql procedure has been called? Thanks, Attila

  • Object SYS_PLSQL_534463_100_2 does not exist

    I tried to compile a package spec ( header ) and got the error object SYS_PLSQL_534463_100_2 does not exist. The object SYS_PLSQL_534463_100_2 exists as a type and I granted all to public on that object. Any ideas?

  • Google Analytics breaks iWeb blog comments

    Does anybody know a workaround for Google Analytics' breaking of iWeb blog comments? Apparently, from some posts I've read, StatCounter and other traffic stat services break iWeb blog comments, too... so it's apparently an iWeb issue rather than a Go

  • Upload Entire Site

    I run a 300+ page site that I need to make changes to on a daily basis. When I upload, I send the entire site (just in case there are new images etc. lurking in there). Is this the best/only way to do this?