What is this error - Type conversion is not possible..?

ImaspalImaspal Member Posts: 68
Hi Experts!

Can anyone tell me, what means error: "Type conversion is not possible because 1 of the operators contains an invalid type. Integer t_testcase VOID"

************
Mr. Nice Guy
************

Comments

  • BeliasBelias Member Posts: 2,998
    Can you active debug and post the code that generates the error?
    it would be helpful
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • serdarulutasserdarulutas Member Posts: 50
    This generally happens when you perform GET on a table, which has a combined primary key, with incorrect key order. Turn the debugger on and find out where it happens.

    Quick scenario:
    There is a table with primary keys Code and Integer Type.
    If you perform a GET(10,’US’) instead GET(‘US’,10), this is the error message you would receive.

    So, trust the debugger and change the field order in GET.
  • kinekine Member Posts: 12,562
    Another possibility is that you have named some function or variable as some field or another variable - it means check the naming in the line, where the error is called.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • jreynoldsjreynolds Member Posts: 175
    "t_testcase" points to a problem with a CASE statement. The VOID generally indicates that you are attempting to use the result of a function (probably a user defined function) that does not return a result.
  • serdarulutasserdarulutas Member Posts: 50
    ok,

    the problem may happen in CASE OF when you don't use BEGIN END statements.

    CASE Index OF

    1:
    x := x + 1

    2:
    x := x + 2

    3:
    x := x + 1;
    a := a +1;

    4:
    a := a +1


    on the third case, you recieve t_testcase void error. check begin and end statements.
  • ImaspalImaspal Member Posts: 68
    Thank you very much! The problem happened in CASE OF. Now it works.

    ************
    Mr. Nice Guy
    ************
Sign In or Register to comment.