[nQSError: 22027] Union of non-compatible types

Hi Gurus,
I am trying to create a union report but i am getting an error as [nQSError: 22027] Union of non-compatible types. One of the column is Int Datatype and other column is Varchar. What do i need to do to change the datatype to resolve this issue
Really appreciate your help
Regards

Hi,
In the report, you can use CAST( int_datatype_col as Char) for the int datatype column in the report.
Hope this helps.
Thanks
Chandu.

Similar Messages

  • Union of non-compatible types error in column formula in obiee

    Hi Experts,
    Error: Union of non-compatible types
    I used Case function in my column formula and got above error as a result.
    The column formula goes below:
    IFNULL(CASE WHEN EDM_TRD_IR_LEG.LEG_ID=1 THEN (EDM_TRD_IR_LEG.PAY_RECV_IND) ELSE 0 END, 0)
    LEGID is numeric type. PAY_RECV_IND is varchar type.
    Please let me know how to resolve this error.
    Thanks in Advance.
    -Regards
    Mayuri

    898221 wrote:
    Hi Experts,
    Error: Union of non-compatible types
    I used Case function in my column formula and got above error as a result.
    The column formula goes below:
    IFNULL(CASE WHEN EDM_TRD_IR_LEG.LEG_ID=1 THEN (EDM_TRD_IR_LEG.PAY_RECV_IND) ELSE 0 END, 0)
    LEGID is numeric type. PAY_RECV_IND is varchar type.
    Please let me know how to resolve this error.
    Thanks in Advance.
    -Regards
    Mayuri@dpka, you have syntax errors in your solution. If you're casting as varchar, then your syntax should read '1' instead of 1. Also at the end, it should be '0' instead of 0.
    Mayuri,
    To use your syntax, try this:
    IFNULL(CASE WHEN EDM_TRD_IR_LEG.LEG_ID=1 THEN CAST(EDM_TRD_IR_LEG.PAY_RECV_IND AS INTEGER) ELSE 0 END, 0)
    ...if you need the result as a numeric for aggregation purposes...

  • Non-character-type structure need to be written in ASCI File in Unicode sys

    Hi Gurus,
    I am trying to write a structure into a ASCI file iapplication server.
    My code is as follows.
    data : ls_header type BBP_PDS_CTR_HEADER_D ,
           lv_filename TYPE  rlgrap-filename VALUE '/interface/AEE/IN/kalandi'.
    CALL FUNCTION 'BBP_PD_CTR_GETDETAIL'
    EXPORTING
       I_OBJECT_ID               = '4000000196'
    IMPORTING
       E_HEADER                  = ls_header.
    open dataset lv_filename for output in text mode encoding default .
    if sy-subrc = 0.
    transfer ls_header to lv_filename.
    close dataset lv_filename.
    endif.
    but it ives a dump .
    Error is :
        "TRANSFER f TO ..."
    only character-type data objects are supported at the argument position
    "f".
    In this case. the operand "f" has the non-character-type
      "BBP_PDS_CTR_HEADER_D". The
    current program is a Unicode program. In the Unicode context, the type
    'X' or structures containing not only character-type components are
    regarded as non-character-type.
    Thanks a lot in advance.
    Points will be awared for appropriate Answers.
    Regards
    kalandi

    Hi,
    I think here ls_header and lv_filename are not compatible to transfer the data.
    Regards,
    Satish

  • An expression of non-boolean type specified in a context where a condition is expected, near ','

    I am getting the error message, "An expression of non-boolean type specified in a context where a condition is expected, near ',' " when running an ssrs 2008 r2 report.
    The sql embedded in the dataset is:
    IF @reportID <> 0
    BEGIN
      SELECT 'Students report 1' AS selectRptName, 1 AS rptNumValue
      UNION
      SELECT 'Students report 2', 2 
      UNION
      SELECT 'Students report 3', 3
      UNION
      SELECT 'Students report 4', 4
      UNION
      SELECT 'Students report 5', 5
      ORDER BY selectRptName
    END
    The sql runs fine in managment studio when I declare @reportID.
    The sql runs fine with I comment out  'IF @reportID <> 0'.
    The @reportID is a parmeter value that is passed to the applicable dataset.
    The @reportID can have more than one value.
    Thus can you show me sql and/or tell me what I need to do to solve the issue for me?

    Hi wendy,
    After testing the issue in my environment, I can reproduce it when I select more than one values in the @reportID parameter drop-down list. As per my understanding, it seems that you are trying to filter the dataset with the @reportID parameter. When it
    doesn’t contain value ‘0’, the dataset returns values. Otherwise, no value is returned in the dataset.
    If in this scenario, we can achieve this requirement with filters in the dataset. For more details, please refer to the following steps:
    Modify the dataset with the below query:
    SELECT 'Students report 1' AS selectRptName, 1 AS rptNumValue
    UNION
    SELECT 'Students report 2', 2 
    UNION
    SELECT 'Students report 3', 3
    UNION
    SELECT 'Students report 4', 4 
    UNION
    SELECT 'Students report 5', 5
    ORDER BY selectRptName
    Click the Filters in the left pane of Dataset Properties dialog box.
    Add a filter as below:
    Expression: =INSTR(JOIN(Parameters!reportID.Value,","),"0")>0
    Type: Boolean
    Operator: =
    Value: false
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • An expression of non boolean type specified in context near id

    Hi
    Sorry for duplicate posting. I am desperately looking to solve the issue for  display image tif format using datawindow inkpict. I am little bit going progress .
    My Sqlserver  table  <mpdoc>
    id <int>, empdoc  <image>
    In datawindow object I have given id as id and large binary column as empdoc. But after when I retrieve the datawindow it is showing the error
    'an expression of non Boolean type specified in context near id' how can I fix this error.Please help
    dw_1.settransobject(sqlca)
    dw_1.retrieve()
    I am very desperate at the moment with the powerbuilder to display tif image   and also I can only get the help from this site.
    if it is not working in PB, I have to use C#.
    With Many Thanks
    Pol

    Hi wendy,
    After testing the issue in my environment, I can reproduce it when I select more than one values in the @reportID parameter drop-down list. As per my understanding, it seems that you are trying to filter the dataset with the @reportID parameter. When it
    doesn’t contain value ‘0’, the dataset returns values. Otherwise, no value is returned in the dataset.
    If in this scenario, we can achieve this requirement with filters in the dataset. For more details, please refer to the following steps:
    Modify the dataset with the below query:
    SELECT 'Students report 1' AS selectRptName, 1 AS rptNumValue
    UNION
    SELECT 'Students report 2', 2 
    UNION
    SELECT 'Students report 3', 3
    UNION
    SELECT 'Students report 4', 4 
    UNION
    SELECT 'Students report 5', 5
    ORDER BY selectRptName
    Click the Filters in the left pane of Dataset Properties dialog box.
    Add a filter as below:
    Expression: =INSTR(JOIN(Parameters!reportID.Value,","),"0")>0
    Type: Boolean
    Operator: =
    Value: false
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Tutorial for make a non-generic type class from a generic type interface

    Hi there,
    How can I make a non-generic type class from a generic type interface?
    I appreciate if somebody let me know which site can help me.
    Regards
    Maurice

    I have a generic interface with this signature
    public interface IELO<K extends IMetadataKey>
    and I have implemented a class from it
    public class CmsELOImpl<K extends IMetadataKey> implements IELO<K>, Cloneable, Serializable
    then I have to pass class of an instance CmsELOImpl to AbstractJcrDAO class constructor whit below signature
    public abstract class AbstractJcrDAO<T> implements JcrDAO<T> {
    public AbstractJcrDAO( Class<T> entityClass, Session session, Jcrom jcrom ) {
              this(entityClass, session, jcrom, new String[0]);
    So I have made another class extended from AbstractJcrDAO. Below shows the code of this class and itd constructor
    public class ELODaoImpl extends AbstractJcrDAO<CmsELOImpl<IMetadataKey>> {
         public ELODaoImpl( Session session, Jcrom jcrom ) {
         super(CmsELOImpl.class , session , jcrom, MIXIN_TYPES);
    and as you see in its constructor I am calling the AbstractJcrDAO constructor by supper method
    then I got this error on the line of super method
    The constructor AbstractJcrDAO(class<CmsELOImpl>, session, Jcrom, String[]) is undefined.
    as I know java generics are implemented using type erasure. This generics are only
    in the java source file and not in the class files. The generics are only used by the compiler and
    they are erased from the class files. This is done to make generics compatible with (old) non generics java code.
    As a result the class object of AbstractJcrDAO<CmsELOImpl<IMetadataKey>>
    is AbstractJcrDAO.class. The <CmsELOImpl<IMetadataKey>> information is
    not available in the class file. As far as I understand it, I am looking a way
    to pass <CmsELOImpl<IMetadataKey>>, if it is possible at all.
    Maurice

  • "Schema validation found non-data type errors" error when passing a string value to date field in infopath

    Hi,
    I have an infopath web brower enabled form. In the form i have a date field.
    I am passing the data from the database to that field using the C# code.
    But, as the field from database is coming as string, i am getting an error, and i am not able to assign the value.
    I get the date value from database as "3/25/2011 12:00:00 AM"
    I used the below code:
    [CODE]
    if (objInfopathFormcData.myRecievedDate != null)
      myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager).SetValue(objInfopathFormcData.myRecievedDate);
    [/CODE]
    I am getting the error as "Schema validation found non-data type errors".
    How to set the value for a date field in Infopath.
    Thank you

    HI,
    I fixed it:
    Below code is used to fix:
    [CODE]
    XPathNavigator xfield = null;
    DateTime dtmyRecievedDate;
    dtmyRecievedDate = Convert.ToDateTime(objInfopathFormcData.myRecievedDate);
    if (objFormcData.FcCompletionDate != null)
    xfield = myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager);
    DeleteNil(xfield);
    xfield.SetValue(dtmyRecievedDate.GetDateTimeFormats().GetValue(5).ToString());
    // method to delete xsi:nil
    private void DeleteNil(XPathNavigator nav1)
    if (nav1.MoveToAttribute("nil", "http://www.w3.org/2001/XMLSchema-instance"))
       nav1.DeleteSelf();
    [/CODE]
    Thank you

  • Plz help upgrade issue moving data from char type structure to non char typ

    Hi Experts
    plz help its very urgent
    Data :workout(5000) .
    FIELD-SYMBOLS : <FS_WORKOUT> TYPE ANY.  
    workout = '         u' .
    ASSIGN WORKOUT TO <FS_WORKOUT> CASTING TYPE C .
                      BAPISDITM = <FS_WORKOUT>.
    i am getting dump after BAPISDITM = <FS_WORKOUT>.
    i think i am getting the dump bcoz i am moving character type structure to non character type structure but i think with field symbols we can remove this issue thats y i used it but its not working plz help me
    its very urgent
    *dump is :*
    Short text
        Data objects in Unicode programs cannot be converted.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "ZSDR0009" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    How to correct the error
        Use only convertible operands "dst" and "src" for the statement
           "MOVE src TO dst"
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UC_OBJECTS_NOT_CONVERTIBLE" " "
        "ZSDR0009" or "ZSDR0009_I02"
        "USER_COMMAND"
    thanx in advance

    i got d solution in this thread
    Hi all,
    data: gv_line(6000) type c.
    Bvbapkom = gv_line.
    But i am getting the Error like : gv_line and Bvbapkom are not mutually convertable.
    Note: Bvbapkom is a Structure
    How do i solve this ?
    Mahesh
    KR  
    Posts: 210
    Registered: 11/24/06
    Forum Points: 0 
      Re: gv_line and Bvbapkom are not mutually convertable.  
    Posted: Nov 30, 2007 8:40 AM    in response to: KR         Reply 
    Hi ,
    i got the solution
    ANSWER:
    Field-symbols: <X_Bvbapkom> type x,
    <X_gv_line> type x.
    Assign: Bvbapkom to <X_Bvbapkom> casting,
    gv_line to <X_gv_line> casting.
    <X_Bvbapkom> = <X_gv_line>.
    Nasaka Ramakris...  
    Posts: 4
    Registered: 1/19/08
    Forum Points: 20 
      Re: gv_line and Bvbapkom are not mutually convertable.   
    Posted: Jan 19, 2008 7:42 AM    in response to: KR         Reply 
    Hi Check this answer.
    ANSWER:
    Field-symbols: <X_Bvbapkom> type x,
    <X_gv_line> type x.
    Assign: Bvbapkom to <X_Bvbapkom> casting,
    gv_line to <X_gv_line> casting.
    <X_Bvbapkom> = <X_gv_line>.

  • "An expression of non-boolean type specified in a context where a condition

    I have below query and its respective result set "0 and NoofRows" in Execute SQL task
    select count(*) from TEMP_InterfaceSAP_LoadFile
    where (timeid = '20110100' and  ([ENTITY_AFF] in (N'6050')))
    When I run the task individually, there is no issue at all, but when I tried run it as whole, I'm getting below error.
    "[Execute SQL Task] Error: Executing the query "select count(*) from TEMP_PM_InterfaceSAP_LoadFile..." failed with the following error: "An expression of non-boolean type specified in a context where a condition is expected, near ')'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly."

    I have below query and its respective result set "0 and NoofRows" in Execute SQL task
    select count(*) from TEMP_InterfaceSAP_LoadFile
    where (timeid = '20110100' and (ENTITY_AFF in (N'6050')))
    When I run the task individually, there is no issue at all, but when I tried run it as whole, I'm getting below error.
    "Execute SQL Task Error: Executing the query "select count(*) from TEMP_PM_InterfaceSAP_LoadFile..." failed with the following error: "An expression of non-boolean type specified in a context where a condition is expected, near ')'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly."
    ======================================================================
    Hi Prabhu0505,
    You may enclose the string with ' ' in SQL task if you use SQL command, then you need to adjust your delimeter to avoid wrong interepretation. I cannot say how you can fix the problem, but I remember there was more ' such as '''6050''' and so on, please find out correct SQL expression in an eclosed string.
    This is one of thing I remember, I used ADO connection in SQL script task in SSIS and there were lots of SQL in command, the ' quatation is tricky one.
    Regards,
    YH Seo

  • E71x Connected in non-compatible mode

    Brand new E71x
    Vista - 4GB RAM, 250GB HDD, 512MB Video
    Nokia PC Suite  7.1.26.0
    Connected cable to PC USB 2.0 port
    and other end to E71x
    In PC Suite main window see "Connected in non-compatible mode".   What now?

    OK I found the solution on the Asia forums.  It's a setting within the phone that dictates what the phone does on a USB cable connection.
    Menu>Settings>Config>Data Cable.
    Change from Media Transfer to PC Suite and all is well.

  • Nokia 6500 Slide Connected In Non-Compatible Mode

    Hi,I've cracked my screen and unable to access anything! I transferred my SIM (3 network) to another phone. Although the phone works all my contacts and messages have disappeared. I am quite positive they were saved to SIM. Anyway tried connecting using broken phone with SIM using USB and get message Connected in non-compatible mode and I still cannot access contacts or messages. I'm getting extremely frustrated can anyone help?
    Many thanks
    Solved!
    Go to Solution.

    You have a S40 phone, Another thing you can try is, when you are sure the keypad is unlocked, connect the phone and after a few second press the right selection key(the one you usually use to step back or disagree or cancel) which should be cancel. If your phone is anything like my 5200 that will send it straight to connect via PC suite. I think even pressing the red button will do this(Not sure about the red button though but the right selection I'm certain about)
    Show your appreciation. Hit that kudos button real hard

  • Conversion error with non-primitive types

    I'm wondering if anyone else is seeing this problem or has a potential solution.
    The problem, in a nutshell:
    I have beans that use non-primitive types (Float instead of float) in the getters and setters. However I keep getting conversion error problems. If I switch to primitive types, I don't get conversion errors. The built-in FloatConverter says (in the documentation at least) that it supports both primitives and boxed types. This was all working in EA4, though. I am discovering this problem as I migrate from EA4 to 1.0.
    The code is pretty straightforward:
    public class Bean implements Serializable {
    public float getProp() {...}
    public void setProp(float) {...}
    public Float getPropOld() {...}
    public void setPropOld(Float) {...}
    <!-- works -->
    <h:inputText id="floatinput" value="#{BeanInstance.prop}"/>
    <!-- doesn't work -->
    <h:inputText id="floatinputold" value="#{BeanInstance.propOld}"/>
    Any ideas? I have tried explicitly calling the FloatConverter but that gave the same problems.

    Okay, I figured out my problem.
    The JSF spec implies that f:convertNumber may be used inside an h:inputText tag. The early versions of Core JSF go further and show f:convertNumber being used inside an h:inputText tag in one of the examples. (Chapter 7, conversions).
    However, this has been the source of my problem. When using f:convertNumber, the converter would automatically determine the data type without regard to the data type in the backing bean. Hence, it would try to pass Longs or Doubles to the bean instead of Floats.
    I believe this may be an issue in the 1.0 FR release.

  • How to debug a RFC function  when the user is non-dialog type? Please help!

    hi Experts,
      I am calling a RFC FM residing in B from R/3 system A.
    R/3 A -
    Call FM residing in B----
    > R/3 B
    The user attached to the remote destination is a non-dialog type.
    I cannot change the user type of this user.
    Therefore how to debug the RFC FM in System A?
    Are there any alternatives?
    Please help
    Thanks
    Gopal

    in your RFC FM, code an endlees loop.
    something like:
    data: gv_x  type xfeld value 'X'.
    do.
      if gv_x = space.
        exit.
      endif.
    enddo.
    now you can catch the mode in TA SM50, go in it, change gv_x to space and debug what is coming further.

  • Nokia N70 connected in non compatible mode

    First here are some facts: Im Using Pc Suite v6.83 on Windows XPsp2. Im using USB cable to connect to my N70.
    Now here's the problem: The first time I used PC Suite after Installation, it worked fine. When I used it again the second time, it acted strangely. It didn't detect my phone correctly. It detected the N70 alright, but a baloon popped up from the PC suite Icon on the system tray saying "nokia n70 connected in non compatible mode". Then when I went to the Get Connected wizard, a warning popped up which says "Your phone is in file transfer mode and connot be used with PC suite. quit file transfer mode from the phone if you want to use PC suite". I wonder how could this be since I know that the N70 has no file transfer mode.
    Then after finally having my phone detected correctly after diconnecting then connecting the USb cable, my system detected the phone as a digital camera imaging device and as a mass storage device, showing up in windows explorer aside from showing up in the Nokia Phone browser. I Don't think this is a normal bahaviour.
    Then the third time I tried to use PC suite, it detected the phone as bing in in non compatible mode again. Yhis time disconnecting and reconnecting the USb cable didn't help.
    I found some strange things in the windows device manager too. I found out that under portable device, the N70 was there but disabled and labled as not properly working.
    Have you guys encounterd this prblem before? If you did maybe you can help me resolve it. Thanks in advance!

    08-Jul-2007 05:32 PM
    pmguanco wrote:
    First here are some facts: Im Using Pc Suite v6.83 on Windows XPsp2. Im using USB cable to connect to my N70.
    Now here's the problem: The first time I used PC Suite after Installation, it worked fine. When I used it again the second time, it acted strangely. It didn't detect my phone correctly. It detected the N70 alright, but a baloon popped up from the PC suite Icon on the system tray saying "nokia n70 connected in non compatible mode". Then when I went to the Get Connected wizard, a warning popped up which says "Your phone is in file transfer mode and connot be used with PC suite. quit file transfer mode from the phone if you want to use PC suite". I wonder how could this be since I know that the N70 has no file transfer mode.
    Then after finally having my phone detected correctly after diconnecting then connecting the USb cable, my system detected the phone as a digital camera imaging device and as a mass storage device, showing up in windows explorer aside from showing up in the Nokia Phone browser. I Don't think this is a normal bahaviour.
    Then the third time I tried to use PC suite, it detected the phone as bing in in non compatible mode again. Yhis time disconnecting and reconnecting the USb cable didn't help.
    I found some strange things in the windows device manager too. I found out that under portable device, the N70 was there but disabled and labled as not properly working.
    Have you guys encounterd this prblem before? If you did maybe you can help me resolve it. Thanks in advance!
    Message Edited by geronimo on 10-Jan-2008 07:59 AM

  • Non-compatible message problem

    im having a problem with the non-compatible message, keep getting it with nothing attached to it and since that i cant hear music with the speaker , i cant even hear the keyboard clicks or YouTube video sound, volume is all the way up, speaker does works in a call ringer works except when it is an sms

    I'd try general troubleshooting http://support.apple.com/kb/HT1737
    Hardware verification http://support.apple.com/kb/HT1650
    Especially check the dock connector on the bottom and blow out any lint or dust and pray there is no corrosion. Maybe try the plug in the headset and unplug it trick a few times as well.

Maybe you are looking for