Failure creating an Infographic via REST API: Result.get() cannot be called on an absent result

Problem


Attempting to create an Infographic using REST API fails with following exception.

curl -k -u user:pass -X POST -d @infographic.json 'http://<host>:<port>/rest/infographics'

 

{
"status": "failure", 
"reason": "Unable to process request: Result.get() cannot be called on an absent result"
}

 

Cause

 

The exception Result.get() cannot be called on an absent result message, is the equivalent of a NullPointerException.  It indicates that some paths within the artifact's json definition file are not correct or do not exist.

Solution 


Review artifact's structure and ensure that every dataSourceId and its path exist and are pointed to required data.