When Using TIMESTAMADD Function, Getting Error Message: Function TimestampAdd is called with an incompatible type. (HY000) (Doc ID 2135300.1)

Last updated on SEPTEMBER 30, 2016

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.1.4.0.0 and later
Oracle Fusion Application Toolkit Cloud Service - Version 11.1.4.0.0 and later
Information in this document applies to any platform.

Symptoms

Using OTBI, you need to multiply a number column and add add that figure to a date column.

The number column is the "Duration (Weeks)", you need to multiply this by 7 to get the number of days.
Then you need to add the number of days to the "Anticipated Contract Start Date" date column in order find out the "estimated completion date"

 

This can be normally achieved using "TIMESTAMADD" function - syntax: TIMESTAMPADD(interval, expression, timestamp column)

But if for example you use some custom extensible fields as below:

e.g.
FORMULA
TimestampAdd(SQL_TSI_DAY, "Opportunity Extension"."Extension Attribute Number 020", "Opportunity Extension"."Extension Attribute Timestamp 013")

The following Error is generated:
Formula syntax is invalid.
[nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 22025] Function TimestampAdd is called with an incompatible type. (HY000)
SQL Issued: SELECT TimestampAdd(SQL_TSI_DAY, "Opportunity Extension"."Extension Attribute Number 020", "Opportunity Extension"."Extension Attribute Timestamp 013") FROM "Sales - CRM Pipeline"
OK (Ignore Error)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms