Skip to Content
0
Apr 23, 2020 at 12:04 PM

SAP CP Integration to SuccessFactors : oData read error [("value") can not be null or empty!]

104 Views Last edit Apr 27, 2020 at 03:19 AM 4 rev

Hi

I'm trying to create SAP SuceesFactors application by using webIDE.

I set odata model in my view, the Entity name is "FormCompetency", but no data returned when I called oModel.read()

method.

I could read other entities such as "User", "FormHeader" and so on, so destination settings in SAP CP is appropriate.

var formcompetency = this.getOwnerComponent().getModel("FormCompetency");
var tmp;
var Filter3 = new sap.ui.model.Filter({
		filters: [
			new sap.ui.model.Filter("formContentId", "EQ", 11111), //primarykey 1
			new sap.ui.model.Filter("formDataId", "EQ", 22222),    //primarykey 2
			new sap.ui.model.Filter("itemId", "EQ", 33333),        //primarykey 3
			new sap.ui.model.Filter("sectionIndex", "EQ", 1)       //primarykey 4
		],
		and: true
	});
//select single record and store tmp
formcompetency.read("/FormCompetency", {
                filters: [Filter3],
	        success: function (oData) {
		tmp = oData;
	},
	error: function (oData) {
	}
});

I got error message like below image despite I set all primary keys in filters[].


Is query in my controller.js wrong?

Or Should I need to do some settings in my SF environment?

Please give me advise.

Regards,

*Apr 27 Updated*


I've tried '/FormCompetency(formContentId=11111,formDataId=22222,itemId=33333,sectionIndex=1)' , but error wasn't resolved.

I added network trace evidence below.

Attachments

console-error.png (27.9 kB)
network-trace.png (61.9 kB)