Backendless Support
 
Solved

Saving new object results in FaultCode 1000 (.NET)

Trying to save an object to Backendless results in an error with:

FaultCode: "1000"

Message: "Entity with the specified ID cannot be found: Id - missing id"

Details: "Entity with the specified ID cannot be found: Id - missing id"

  1. _customer = new Customer
  2. {
  3. FirstName = "Sterling",
  4. LastName = "Archer",
  5. PhoneNumber = "123-456-7890",
  6. Email = "duchess@cia.gov",
  7. StreetAddress = "123 Spud Ave",
  8. City = "New York",
  9. Province = ontario,
  10. PostalCode = "P0T 4T0"
  11. };
  12. //create test customer in Backendless
  13. _customer = await Backendless.Persistence.Of<Customer>().SaveAsync(_customer);

The Province is being retrieved successfully, that's not the issue. The SaveAsync() method is:

  1. public static async Task<T> SaveAsync<T>(this IDataStore<T> dataStore, T entity) where T : BaseDataObject
  2. {
  3. return await Task.Run(() =>
  4. {
  5. var task = new TaskCompletionSource<T>();
  6. var asyncCallback = new AsyncCallback<T>(response =>
  7. {
  8. task.SetResult(response);
  9. }, error =>
  10. {
  11. task.SetException(new Exception($"{error.FaultCode}: {error.Message}"));
  12. });
  13. Backendless.Persistence.Of<T>().Save(entity, asyncCallback);
  14. return task.Task;
  15. });
  16. }

And BaseDataObject just contains ObjectId, Created, etc properties that all Backendless objects have.

Edit:

It's only saving new objects. Saving existing objects still appears to work.

Leave a Comment

Comments (1)

photo
1

Hi Justin,

The problem should be resolved on the server, however, if it still happens for you please make sure to get the latest assembly from:

https://github.com/Backendless/.NET-SDK/tree/master/Backendless/Bin

Regards,

Mark