Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Arithmetic overflow error converting expression to data type int

Received Response
41
Views
4
Comments
1037520
1037520 Rank 4 - Community Specialist

Hello,

I'm working obiee 12c with sqlserver datawarehouse. I get this error in a calculated column when i run the analysis.

[nQSError: 16001] ODBC error state: 22003 code: 8115 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Arithmetic overflow error converting expression to data type int..

when i see the datatype for the calculated column at the business model, it shows DOUBLE. I can´t change it because obiee sets the datatype for the column.

Does some one know what can i do?

Thanks a lot.

Answers

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    Hi,

    in the physical model of the rpd you can change the datatypes of columns.

    Simples!

  • 1037520
    1037520 Rank 4 - Community Specialist

    Tnks Robert, I did it... but the calculated column data type does not change at the business model.

    Obiee always set double.... and double is not data type for sql server.

    I don't understand the error.

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    Use the query tool within the rpd to query the column across to the alias (if there is one) to the logical table and make sure the data type change that you have made is consistent across all.

  • Robert Angel
    Robert Angel Rank 8 - Analytics Strategist

    Sorry, just seen "in a calculated column" - if you do (for example)  x / y or similar then the result may not be an int, I would suggest that you need to cast your int to a numeric type that can handle it in the analysis formula if you are doing anything that could result in decimal places.