Null Pointer When Creating Business Query With Curl (Doc ID 2268348.1)

Last updated on AUGUST 10, 2017

Applies to:

Oracle Process Cloud Service - Version 15.2.3 to 15.2.3
Information in this document applies to any platform.

Symptoms

When sending a curl command to create a business query through the API a 500 Response and the following error:

{
  "type": "https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
  "title": "Null Pointer exception.",
  "detail": "A null pointer exception is thrown while accessing resource : analytics/businessquery-metadata/businessqueries Fix: verify server log to find the problem cause.",
  "instance": "https://pcs-rcsdev.process.us2.oraclecloud.com:443/bpm/api/3.0/analytics/businessquery-metadata/businessqueries",
  "status": "500",
  "o:errorCode": "76048",
  "o:errorDetails": []
}

This is the curl command I use:
curl -v \
-u ':' \
-H "Content-Type:application/json" \
-H "Accept: application/json" \
-d {"applicationName":"Recruiting","dataSeries":[{"aggregateOperation":"COUNT","measureColumn":"*"}],"dataSource":"ACTIVITY","description":"A test query added by the RCS_OCS testing suite PBusinessQueriesSpec","filter":{"branches":[],"filterEntries":[],"filterType":"ALL"},"groups":["Activity End Time"],"lastNDays":30,"legend":"ACTTIVITY_LABEL","properties":[{"name":"chartType","value":"bar"}],"queryType":"GROUP","timeGroupings":{},"title":"PBusinessQueriesSpec_businessQuery"} \
https://pcs-rcsdev.process.us2.oraclecloud.com/bpm/api/3.0/analytics/businessquery-metadata/businessqueries

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