Error with my application id

I am using flutter 2.0.5 and backendless_sdk 6.3.2
I have created a simple table to store data but it says:
PlatformException(See details for error code, Server reported an error. See fault details for additional information, {“code”:9000,“message”:“Application with ID 72B08AC5-9FE0-4954-9809-21EFABEA361B does not exist”,“errorData”:{}}, null)

but this is exactly my application ID
this is my code:

IDataStore<Map> chatTableDataStore = Backendless.data.of('tbl_users');
....
@override
initState() {
Backendless.setUrl('https://api.backendless.com');
Backendless.initApp("72B08AC5-9FE0-4954-9809-21EFABEA361B", "AFD254A1-C222-44F5-8275-339D8048514E", "9A7079FE-4110-4B82-9514-45AEDEFA8E9D");
super.initState();

}
....
Future _storeDataInWebDatabase(Shop shop) async{
  try{
    Map groupChatObject = Map();
    //int counter = await Backendless.counters.incrementAndGet("cnt_group_chat");
    groupChatObject['name'] = shop.name;
    groupChatObject['shop_name'] = shop.shopName;
    groupChatObject['type'] = shop.type;
    groupChatObject['category'] = shop.category;
    groupChatObject['fee'] = shop.fee;
    groupChatObject['zip_code'] = shop.zipCode;
    groupChatObject['location'] = shop.location;
    groupChatObject['timing'] = shop.timing;
    groupChatObject['phone'] = shop.phone;
    groupChatObject['image'] = 'path';
    await chatTableDataStore.save(groupChatObject);
    //await _openCheckout();
  } catch(e){
    print(e);
  }
}

Hello, @sdf_ertert.

Thanks for contaction us. I see several problems in your code.

  1. You are trying to use API before initialization your application.
    This line must be used after initApp: IDataStore<Map> chatTableDataStore = Backendless.data.of('tbl_users');

  2. Server returned an error because you tried send request to the US cluster, but your application is in the EU.
    In setUrl function you need to use this:
    https://eu-api.backendless.com

Best regards, Nikita.

1 Like

thank you very mush @Nikita_Fedorishchev it worked
I have another question : how can I store and retrieve image in backendless database in Flutter?

This article describes how you can upload files to a backendless database.
https://backendless.com/docs/flutter/files_file_upload.html
And in this article how you can download files:
https://backendless.com/docs/flutter/files_file_download.html

Best regards, Niktia.