Skip to Content
0
Oct 23, 2017 at 01:14 AM

REST API Error while working with SAP Cloud Platform Predictive Service

163 Views Last edit Oct 24, 2017 at 03:03 PM 2 rev

Hi All,

I am working on the tutorial https://youtu.be/JxuJ5OzD8Yg (SAP HANA Academy - HCP Predictive Services: Recommendations (Trial Edition)). As mentioned in the tutorial I typed the code

{

"hanaURL": "PS_DATA/CUST_TRANSACTIONS"

}

and then hit on Post. And after hitting Post I am getting the status 400 as against Status 200.

Status 400 is an error code whose description is given in the screen shown below and the message given after the screen below:

Status 400

An error has occurred. It can be due to wrong settings or issues in the dataset.

For more information, see the list of error codes in the SAP Cloud Platform Predictive service User Guide.

Body application/json

{
	"$schema" : "http://json-schema.org/draft-03/schema#",
	"type" : "object",
	"properties" : {
		"errors" : {
			"description" : "List of error messages",
			"type" : "array",
			"items" : {
				"type" : "object",
				"properties" : {
					"errorCode" : {
						"type" : "string",
						"required" : true
					},
					"errorMessage" : {
						"type" : "string",
						"required" : true
					}
				}
			},
			"minItems" : 1,
			"required" : true
		}
	}
}

Can you please explain me how to fix this error?

Thank you.

Regards,

Pavan.

Attachments

wvsn3.png (38.4 kB)