Query Sql from infopath help - InfoPath Dev
in

InfoPath Dev

Query Sql from infopath help

Last post 03-05-2012 12:03 PM by BrunoAdv. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-02-2012 09:57 AM

    Query Sql from infopath help

    Hello, I have a infopath form that connects to a SQL database to pull data. I have a UDCX file on the sharepoint server and have gone as far as giving the form full Trust etc. The form works both locally and on the infopath client. Once published it only works on the client and not on the browser based version. I get the following errors: "An error occurred querying a data source. Click OK to resume filling out the form." I have looked at the logs following the correlation ID and get the following. "Data adapter failed during OnLoad: The database returns an error The following query failed: Data Followed by: Type: DataAdapterException, Exception Message: The database returns an error. No error message available, result code: DB_E_ERRORSOCCURRED(0x80040E21).)" Any help would be appreciated. Thank you
  • 03-05-2012 08:15 AM In reply to

    Re: Query Sql from infopath help

    That's a tough one. You'd think if the issue was authentication, the error log would include that. Searching just on DB_E_ERRORSOCCURRED(0x80040E21), I see some results that indicate this may occur with Integrated Authentication - is that what your UDCX is using? I wonder if changing to SSO would help....

    Hilary Stoupa

  • 03-05-2012 12:03 PM In reply to

    Re: Query Sql from infopath help

    Hello Hilary, 

    I tried using SSPI and also tried using a defined username and password and saved the userID and password to the UDCX, both ways work fine from the infopath application but do not work at all once i publish them to sharepoint and open the form in a browser. I will look into SSO, with sharepoint and SQL. If you know any good guides please let me know.

     Thank you for the reply.

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