Skip to Content
0
Jul 06, 2021 at 04:04 AM

OData action - Call function - MDK

646 Views

I have an OData action in my OData service.

I am using an OData action - callfunction in MDK to edit values in the backend. Below is the action code.

{
	"ActionResult": {
		"_Name": "receive"
	},
	"OnFailure": "/supplierDemoApp5/Actions/Failure.action",
	"OnSuccess": "/supplierDemoApp5/Actions/closeModel_Page.action",
	"Target": {
		"Function": {
			"Name": "ProcessMilestoneEvent",
			"Parameters": {
				"DeliveryNote": "",
				"DocumentDate": "2017-04-13",
				"FldLogsContainerID": "",
				"FldLogsGRQty": 1,
				"FldLogsMilestoneEventID": "RECEIVED_AT_BASE",
				"FldLogsStorageLocationID": "",
				"FldLogsSuplrItemQuantityUnit": "EA",
				"FldLogsSuplrItemVislInspCode": "IP",
				"MaterialDocumentHeaderText": "",
				"PackagingMaterial": "",
				"PostingDate": "2017-04-13"
			}
		},
		"Service": "/supplierDemoApp5/Services/Sample.service"
	},
	"_Type": "Action.Type.ODataService.CallFunction"
}

The OnFailure is getting called and getting this error.

Can anyone help me fix this error ?

Thank You