hey hope you are doing well. actually i am posting custom data to backendless and its giving duplicate property error in android
like Duplicate property: Quantity
after that
Duplicate property: User
note: i am not using unique constraint
Hi Abubakar Younas,
I’d need more details regarding the use case in order to help. Are you posting data via Android SDK? If so - please post the code which causes the error.
And what is your application id?
Anton
Post post = new Post();
post.setUser(Backendless.UserService.CurrentUser());
//Toast.makeText(getContext(), ""+selection, Toast.LENGTH_SHORT).show();
post.setQuantity(selection);
post.setOwnerId(Backendless.UserService.CurrentUser().getUserId());
post.setTime(time);
post.setResturantAddress(resturantAddress);
post.setResturantLocationLatitude(resturantLocationLatitude);
post.setResturantLocationLongitude(resturantLocationLongitude);
post.setResturantName(resturantName);
post.setShouldGoLive("yes");
post.setCreatedTwo(getDateTime(txtHours.getText().toString(), txtMinutes.getText().toString()));
post.setResturantPhone(resturantPhone);
Backendless.Persistence.save(post, new AsyncCallback<Post>() {
public void handleResponse(Post response) {
savePostInDatabase(response);
}
public void handleFault(BackendlessFault fault) {
Log.d("SHAN", " error " + fault.getMessage());
progress_view.setVisibility(View.INVISIBLE);
Toast.makeText(thiscontext, "Time error" + fault.getMessage(), Toast.LENGTH_SHORT).show();
}
});
0BD80655-FECB-80BB-FF4E-80DD2AF2C100
its my application id
you there?
How does your Post class look like? I think there’s some conflict between the lettercase in field names and table column names. Try renaming them all to lowercase first letter.