Hi Sarvesh,
There was a change in compatibility between SMP SP05 and SP06 and it's related to the point mentioned by Midhun VP:
- If no maximum length is defined for the key property, you have to define it if the property's data type is string. This change is needed when you are upgrading from sp05. If you go to the metadata of the document you will find whether maxlength is defined for the key attribute.
You are on the right track by upgrading your SDK to SP09.
I believe your key has an Integer type "registration_no", so you should be fine on this front, but this constraint also applies to referential constraint properties, so please confirm your odata service complies with this requirement and let us know.
Another thing... when you open the offline store, please set the options.serviceRoot with the name of the application configuration. I corrected this code in July, because I found out that using the endPointURL can cause problems when using relay server.
In the initialization of the offline store, I replaced
options.serviceRoot= endPointURL;
for
// the serviceRoot is the backend connector name, which is usually the same as the
// application configuration name in the SMP management cockpit
options.serviceRoot= "com.sap.flight";
Best regards,
Claudia