Query cannot be run for the following dataobject error... - InfoPath Dev
in

InfoPath Dev

Query cannot be run for the following dataobject error...

Last post 09-11-2017 10:16 AM by Doreen. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-11-2008 09:58 AM

    Query cannot be run for the following dataobject error...

    Our installation uses Infopath 2003. We have 2 users that are unable to load Infopath forms that have connections to an access database.  I recently found out they have Infopath 2007. They receive the error "THE QUERY CANNOT BE RUN FOR THE FOLLOWING DATAOBJECT:  Then the name of the table (from the Access database) appears.  INFOPATH CANNOT RUN THE SPECIFIED QUERY.      INFOPATH CANNOT CONNECT TO THE DATA SOURCE.   INFOPATH HAS ENCOUNTERED AN ERROR....

    Does anyone know what's going on here.

  • 11-11-2008 10:20 PM In reply to

    Re: Query cannot be run for the following dataobject error...

    Hi Ed,

    InfoPath 2007 should query data from an Access database. Can you post the rest of the error? This looks like an issue with the database and not with InfoPath.

    Jo-Anne Alfafara
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™
  • 11-13-2008 05:34 AM In reply to

    Re: Query cannot be run for the following dataobject error...

    Sorry to hijack the thread, but I am having a similar issue.  IP 2007 form built on a SQL DB as the main data source and published to a SP forms library.  There are several other secondary data sources connected to the form.  When I run the form from my local machine, no problems.  When I go to the SP forms library and 'fill out a new form', no problems.  When I go to another machine, log in as me (or anyone else for that matter) I get this error:

    The query cannot be run for the following DataObject: Main connection

    InfoPath cannot run the specified query.

    InfoPath cannot connect to the data source.

    InfoPath has encountered an error.

    The operation failed.

    I have tried a multitude of things to overcome this problem to no avail.  Any assistance would be greatly appreciated.  I have come a long way on this form and this is the last step (outside of a bit more QA) before production and I am dead in the water.  I am not sure that I understand why deploying a form is so unblievably difficult!

    Fishman
  • 09-11-2017 10:16 AM In reply to

    • Doreen
    • Top 50 Contributor
      Female
    • Joined on 08-11-2010
    • Federal Way, WA
    • Posts 291

    Re: Query cannot be run for the following dataobject error...

     I solved this by making the form full trust. I might add something that infopathdev does not recommend.  Use at your own risk. :)

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.