Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9147321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:57:36+00:00 2026-06-17T10:57:36+00:00

I am using Amazon SimpleDB for select queries, and I am trying to use

  • 0

I am using Amazon SimpleDB for select queries, and I am trying to use the AWS AmazonServiceRequestDelegate, here are the delegate methods (I have conformed in .h BTW):

- (void)request:(AmazonServiceRequest *)request didFailWithError:(NSError *)error {

    NSLog(@"%@", error.localizedDescription);
}

- (void)request:(AmazonServiceRequest *)request didReceiveData:(NSData *)data {

    NSLog(@"recieving data");
}

- (void)request:(AmazonServiceRequest *)request didReceiveResponse:(NSURLResponse *)response {

    NSLog(@"response recieved");
}

- (void)request:(AmazonServiceRequest *)request didCompleteWithResponse:(AmazonServiceResponse *)response {

    NSLog(@"Completed");
}

They all get called except didCompleteWithResponse:, the method that is supposed to be called when the whole operation is completed with a response. didFailWithError: isn’t getting called either, but I don’t see any reason for my operation to fail anyways.

Here is my code to create the select query:

        SimpleDBSelectRequest *sReq = [[SimpleDBSelectRequest alloc] initWithSelectExpression:SELECT_STRING andConsistentRead: YES];

    sReq.delegate = self;

    sReq.requestTag = FIND_FRIENDS_SDB;

    [sdbClient select: sReq];

Where SELECT_STRING and FIND_FRIENDS_SDB are predefined and valid to the context strings.

What is my problem here? Thanks!

Update:

Got the delegating to work. Getting an error related to my SimpleDB SELECT queries, apparently the syntax for my SELECT expression is invalid. I get two errors, because I am doing two queries, here are the SELECT expressions for each:

select * from trvlogue-app where Type = ‘account’ AND itemName() = ‘me%40rohankapur.com-account’

That is looking at the ‘Type’ attribute and ‘itemName()’ and checking if they equal to something in the domain.

select * from trvlogue-app where Email in(‘kate-bell%40mac.com’,’www.creative-consulting-inc.com’,’d-higgins%40mac.com’,’John-Appleseed%40mac.com’,’anna-haro%40mac.com’,’hank-zakroff%40mac.com’)

That is checking if these strings are present in the Email attribute in the domain.

NOTE:

Fixed it, apparently when using SELECT expressions, domain names cannot have dashes. Or dashes seem to break the requests somehow

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:57:38+00:00Added an answer on June 17, 2026 at 10:57 am

    When using AmazonServiceRequestDelegate, this blog post can be helpful. Basically, you need to:

    1. Avoid using AmazonServiceRequestDelegate in a background thread.
    2. Retain a strong reference to the client.
    3. Retain a strong reference to the delegate.

    Also, you should make sure you called [AmazonErrorHandler shouldNotThrowExceptions] since you didn’t implement request:didFailWithServiceException:. Please take a look at this blog post for the detail.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using the AWS SDK for PHP with SimpleDB (a mouthful) the select section
I'm able to get a bunch of image URLs using Amazon SimpleDB. I'm trying
I'm using Amazon's simpledb in my app. When parsing xml it gives an error
I need to upload a given image using Amazon S3 I have this PHP:
Do you know if there is a way of using Amazon SimpleDB with NHibernate?
I'm trying to send mass mails using Amazon SES web services. However, I'm not
I am thinking of using amazon Simpledb as a queue to take some load
I'm using Nokogiri::XML to parse responses from Amazon SimpleDB. The response is something like:
How to log to amazon simple db using log4j properties http://code.google.com/p/simpledb-appender/ This site demos
I'm making a simple high scores database for an iPhone game using Amazon's SimpleDB

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.