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

  • Home
  • SEARCH
  • 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 6229627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:36:09+00:00 2026-05-24T09:36:09+00:00

I am using simpldb and am trying to save rahul’ mehta in simpledb but

  • 0

I am using simpldb and am trying to save rahul' mehta in simpledb but it is giving me error below :
Code :

   function htmlEscape(text) {
     return text.replace(/&/g,'&').
         replace(/</g,'&lt;').
         replace(/"/g,'&quot;').
         replace(/'/g,'&#039;');
    }
    console.log(params.filename);

  if (params.filename!=undefined) params.filename=htmlEscape(params.filename);
    console.log(sys.inspect(params));
  sdb.putItem(domain, params.objectid, params, function( error ) {
  });

Output :

rahul' mehta

{ 
  filename: 'rahul&#039; mehta',
  }

Error :

   {"event":"error","errno":"InvalidQueryExpression","message":"The specified query expression syntax is not valid.","queueno":7}

Why this error is coming , how can i solve it ?

  • 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-05-24T09:36:11+00:00Added an answer on May 24, 2026 at 9:36 am

    This error is because you are trying to run Amazon SimpleDB SELECT Query and syntax of that query is wrong. This may be because in query — Attribute Value — must be unclosed with single quotes i.e. ‘Attribute Value’, and again if — Domain Name — and — Attribute Name — contains any special characters then they must be unclosed with acute i.e Domain Name OR Attribute Name. I think you are able to save rahul’ mehta but when you are trying to get that saved attribute-value, you are getting this error. There is nothing wrong this with string you can see it has been saved successfully using SDB Explorer http://www.sdbexplorer.com/

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

Sidebar

Related Questions

I'm using Amazon's simpledb in my app. When parsing xml it gives an error
I'm using AWS' SimpleDB as intended for the most part, but also want to
I'm able to get a bunch of image URLs using Amazon SimpleDB. I'm trying
Do you know if there is a way of using Amazon SimpleDB with NHibernate?
I am just beginning to do research into the feasibility of using Amazon's SimpleDB
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
I am trying to use the SimpleDB in following way. I want to keep
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:
I know how to page forward with SimpleDB data by using NextToken. However, how

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.