GithubHelp home page GithubHelp logo

Comments (7)

khawkins avatar khawkins commented on June 9, 2024

Yes. Can you describe:

  • What you were doing when this happened?
  • Whether you're implementing a native or hybrid app?
  • What version of the SDK you're using?
  • Whether you have a reasonable expectation that your connect was not, in fact, legitimately lost during your use case? That's quite a large query to be posting from a mobile device, for instance.

from salesforcemobilesdk-ios.

kanedauy avatar kanedauy commented on June 9, 2024

Native app
Last ver of SDK
I was doing a :

SFRestRequest *request = [[SFRestAPI sharedInstance] requestForQuery:(self.querys)[self.currentQuery]];
[[SFRestAPI sharedInstance] send:request delegate:self];

The query I send is about 9963 chars, less than the 10.000 limit.

from salesforcemobilesdk-ios.

khawkins avatar khawkins commented on June 9, 2024

Does it ever work? Or is it an error that occurs sporadically? Does it work on a simulator with a dedicated connection?

from salesforcemobilesdk-ios.

kanedauy avatar kanedauy commented on June 9, 2024

It works In a dedicated connection in the sim.... sometimes.
Do you recommend me to reduce the length of the query?
What could be the limit from a mobile device of the length of the query to evade this error if is caused by the lenght of the query?

from salesforcemobilesdk-ios.

khawkins avatar khawkins commented on June 9, 2024

Could you provide sample code that can reproduce the issue you're seeing?

from salesforcemobilesdk-ios.

kanedauy avatar kanedauy commented on June 9, 2024

Just use a large (closer to the 10.000 limit) soql query in a

SFRestRequest *request = [[SFRestAPI sharedInstance] requestForQuery:QUERY];

[[SFRestAPI sharedInstance] send:request delegate:self];

from salesforcemobilesdk-ios.

kanedauy avatar kanedauy commented on June 9, 2024

The solution is to avoid making this long SOQLs, and check the length of the SOQL before using.

from salesforcemobilesdk-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.