In ODATA interface development, if you are facing the below issue, there is a solution for it
Error:
com.sap.gateway.core.ip.component.odata.exception.OsciException: Illegal character in query at index 162: https://XXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/IndividualCustomerCollection?$select=CustomerID&$filter=${in.body}&$top=200&$skip=0, cause: java.net.URISyntaxException: Illegal character in query at index 162: https://XXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/IndividualCustomerCollection?$select=CustomerID&$filter=${in.body}
Solution:
In this case, the filter parameter that passed is incorrect, so this data to be stored in the property value and then use it as below:
https://XXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/IndividualCustomerCollection?$select=CustomerID&$filter=${property.emails}
Error:
com.sap.gateway.core.ip.component.odata.exception.OsciException: Illegal character in query at index 162: https://XXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/IndividualCustomerCollection?$select=CustomerID&$filter=${in.body}&$top=200&$skip=0, cause: java.net.URISyntaxException: Illegal character in query at index 162: https://XXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/IndividualCustomerCollection?$select=CustomerID&$filter=${in.body}
Solution:
In this case, the filter parameter that passed is incorrect, so this data to be stored in the property value and then use it as below:
https://XXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/IndividualCustomerCollection?$select=CustomerID&$filter=${property.emails}
No comments:
Post a Comment