on 06-04-2015 6:13 PM
Dear Experts, Good Day!
I am facing an issue with the oData Offline at one of my Project, I have followed the Document : http://scn.sap.com/docs/DOC-58063.
I am able to execute the offline odata example shared in the document with the sample odata service attached in the document(http://services.odata.org/V2/OData/OData.svc), it is working perfectly fine.
I have created the odata service (data Source JDBC), we are using this odata service for records fetch which working perfectly fine.
The same odata service I am using for the offline, the "read" is working fine but the "Open offline store" is having issues - getting the “An Error Occurred “Unknow network error Occurred”
Debug Message : The conversion from OData metadata to database metadata has failed[-100006](Also attached the complete servers log-debug mode)
http://vmshofsaps806.main.knpcdom.net:8080/gateway/odata/SAP/PUSHUSER;v=1
Attached the odata service Metadata.
My Environment Details:
SMP server : SMP3 SP07
SDK oData Plugin : 3.8.1
oData Modeler : 1.4.1
The openStore function :
function openStore() {
if (!haveAppId()) {
return;
}
startTime = new Date();
updateStatus2("store.open called");
var properties = {
"name": "ProductsOfflineStore",
"host": applicationContext.registrationContext.serverHost,
"port": applicationContext.registrationContext.serverPort,
"https": applicationContext.registrationContext.https,
"serviceRoot" : appId,
"definingRequests" : {
"PushUserDR" : "/SYCLOPUSHUSERS"
}
};
store = sap.OData.createOfflineStore(properties);
//var options = {};
store.open(openStoreSuccessCallback, errorCallback/*, options*/);
}
Appreciated the quick response!
Thanks,
Regards,
Tirupati
Looking at SMP Logs, appears to be user coding error, I assume this is using Integration Gateway:
Caused by: [-100061] Property "USERID" cannot be supported because it has a max length value that is too large for a key or referential constraint property#null#379#RequestResponse#1433254126973048#200
Thanks,
Kevin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Kevin for your quick response!
Yes, I am using the integration gateway.
The 'read' is working perfectly fine for the same odata service.
For the addressed USERID issue, Basically the USERID in the Backend system(Oracle) is defined with the length 10 VARCHAR(Created oData Service created with the JDBC as a Datasource),
do I needs to manage anything for the key length with offline store data(since the same odata service is working fine when I am invoking the 'Read'). Kindly suggest.
Thanks,
Regards,
Tirupati
Can you cross check the max length of key properties for OData model:
As per below link:
Max Length of Edm.String key properties - 512 char
Max length of Edm.Binary key properties - 1536 bytes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.