Using API Unable To Create Service Requests With Entitlement Contract Having End Date Less Than Sysdate (Doc ID 2185218.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

Oracle Teleservice - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.2 version, APIs & Interfaces

When attempting to create service request using API,
the following error occurs.

ERROR
-----------------------
API Error (CS_SERVICEREQUEST_UTIL.contracts_cross_val): The contract is not valid. Please check the values for the following: service request type, inventory item, instance, account and install site.


STEPS
-----------------------
The issue can be reproduced at will with the following steps:

1. Using OKS_ENTITLEMENTS_PUB.Get_CONTRACTS API, fetch entitled contract. The Contract is having Start Date '01-JUL-2012' and End Date '31-MAR-2016'.

2. If we pass the INCIDENT_OCCURRED_DATE as '03-FEB-2016' and reported_date as '24-MAY-2016' to OKS_ENTITLEMENTS_PUB.Get_CONTRACTS API is fetching valid contract number.

3. However CS_SERVICEREQUEST_PUB.CREATE_SERVICEREQUEST API giving error for same data.

     Error - API Error (CS_SERVICEREQUEST_UTIL.contracts_cross_val): The contract is not valid. Please check the values for the following: service request type, inventory item, instance, account and install site.

But from the Create Service Request from, able to create the SR successfully with the same contract by giving the incident time is less than contract end-date.

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