Backendless Support
 
Waiting for user's response

Data is not being fetched

Trying to fetch data from the backedless server but getting following error please guide me what am I doing wrong. I have seen the error code list and this error code is not mentioned there

Error copying matching creds. Error=-25300, query={

class = inet;

"m_Limit" = "m_LimitAll";

"r_Attributes" = 1;

sync = syna;

}

Leave a Comment

Comments (9)

photo
1

Hello,

please provide application id and a small piece of code, to reproduce your issue.

photo
1

App Id - 6A535A8F-F6E7-61F4-FF39-E2149D665F00

API Key - 4859B450-71FD-7A80-FF5D-E1F2CB01D500

id<IDataStore> PurchaseDetailsStorage = [backendless.data ofTable:@"PurchaseDetails"];

DataQueryBuilder *queryBuilder = [DataQueryBuilder new];

[queryBuilder setWhereClause:[NSString stringWithFormat:@"TweeterId = 'user id'"];

[PurchaseDetailsStorage find:queryBuilder

response:^(NSArray *objectsArray) {

}

error:^(Fault *fault) {

}];

photo
1

I have checked your application and it is broken. there are too many tables. If you migrate app from 3.0, you should do it again.

photo
1

Mayank,

When you did you create that app? It looks like it was created from an app migrated from 3.x and the migration didn't go well. Could you try deleting the app in 4.x and re-creating it again (basically repeating the migration).

Regards,

Mark

photo
1

Thanks for the support guys. I will try to do so and let you know.

photo
1

Still getting the same issue. This time i have made a new project but no working. Here is the log -

2017-11-16 22:12:04.560581+0530 تعليقات و كومنتات لى انستقرام[1517:900399] CredStore - performQuery - Error copying matching creds. Error=-25300, query={

class = inet;

"m_Limit" = "m_LimitAll";

"r_Attributes" = 1;

sync = syna;

}

And here is the code i am using to fetch the data -

id<IDataStore> PurchaseDetailsStorage = [backendless.data ofTable:@"PurchaseDetail"];

DataQueryBuilder *queryBuilder = [DataQueryBuilder new];

[queryBuilder setWhereClause:[NSString stringWithFormat:@"UserName = '%@'",[[[NSUserDefaults standardUserDefaults] valueForKey:USER_NAME] lowercaseString]]];

[PurchaseDetailsStorage find:queryBuilder

response:^(NSArray *contactObjects) {

}

error:^(Fault *fault) {

}];

App Id - 843BA6A3-68AC-F9E7-FF73-37C7E9BC3B00

Thanks for your support.

photo
1

Hello Mayank,

We've just checked the functionality and it works properly. We suspect that this behavior is related to this part of your code

  1. [[[NSUserDefaults standardUserDefaults] valueForKey:USER_NAME] lowercaseString];

We need to know the exact value returned by this line. Share it here

Regards Anton

photo
1

Hey Anton,

Thanks for the support

Here is the value of

  1. [[[NSUserDefaults standardUserDefaults] valueForKey:USER_NAME] lowercaseString];

I am sending mayank9270 in the value and also able to get the log

This is the where clause UserName = 'mayank9270'

Please try with this.

photo
1

Hello Mayank,

I've checked your code and it works fine for me.

I've attached my test project and the results below.

Regards, Olga