Exception INVALID PARAMETER on web-rpc webservice

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
jar
Posts: 97
Joined: Mon Apr 20, 2015 8:55 am

Exception INVALID PARAMETER on web-rpc webservice

Post by jar » Wed May 15, 2019 8:10 am

Hi,

We try to get some records through web-rpc, we invoke the "search" function in interface "recordService", but it always returns this exception:

Code: Select all

{
	"class": "org.cyclos.server.spring.webrpc.InvalidParameterException",
	"errorCode": "INVALID_PARAMETER",
	"expectedType": "org.cyclos.model.users.records.RecordQuery",
	"index": 0
}
The json that we try to pass:

Code: Select all

{
	"operation": "search",
	"params": {
		"period": {
			"begin": "2019-03-01",
			"end": "2019-04-01"
		},
		"type": {
			"class": "org.cyclos.model.users.recordtypes.RecordTypeVO",
			"fieldColumns": 1,
			"nowrapLabels": false,
			"pluralName": "Comprovativos de NIF",
			"NewProperty": false,
			"internalName": "ComprovativoNif",
			"name": "Comprovativo de NIF",
			"id": "5741493202915809433"
		},
		"currentPage": 0,
		"pageSize": 100
	}
}
We can't figure out, what the parameter we pass is wrong. Could you help, please?

Thanks.
Thanks for your kind attention.
Best regards,

JAR

jar
Posts: 97
Joined: Mon Apr 20, 2015 8:55 am

Re: Exception INVALID PARAMETER on web-rpc webservice

Post by jar » Wed May 15, 2019 3:09 pm

Solved.
Thanks for your kind attention.
Best regards,

JAR

Post Reply