Problem Note 63394: You see a run-time exception error in SAS® Business Data Network after a RESTful application programming interface (API) query
In SAS Business Data Network, you might use a RESTful API query similar to the following:
curl -X GET -k -H "authorization: Basic <authentication-token>" -H "Accept: application/json" -H "Content-Type: application/json" -i http://<host:port>/SASBusinessDataNetwork/rest/terms/<term-id>
In some cases, a term has been deleted and is in the Delete Term workflow and has an Under Review status, as shown here:
After the query, you see the following error:
com.sas.dm.common.rest.advice.GlobalExceptionHandler - Exception caught:
java.lang.RuntimeException: Required argument is missing: 2
This error is generated when any term is created, approved, and deleted, but the deletion was not approved by a data management administrator. However, the REST API should not generate an exception. The query should just deliver information about the terms.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Business Data Network | Microsoft® Windows® for x64 | 3.2 | | 9.4 TS1M4 | |
64-bit Enabled AIX | 3.2 | | 9.4 TS1M4 | |
64-bit Enabled Solaris | 3.2 | | 9.4 TS1M4 | |
HP-UX IPF | 3.2 | | 9.4 TS1M4 | |
Linux for x64 | 3.2 | | 9.4 TS1M4 | |
Solaris for x64 | 3.2 | | 9.4 TS1M4 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
You see a ". . . GlobalExceptionHandler - Exception caught: java.lang.RuntimeException: Required argument is missing: 2" error after a RESTful API query. The error occurs regarding a term that both is deleted using the "Delete Term" workflow and also has an "Under Review" status.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2019-01-10 09:38:31 |
Date Created: | 2018-12-17 09:15:19 |