Repeating records changing values by themselves when being submitted - InfoPath Dev
in

InfoPath Dev

Having trouble finding a blog or post that answers your question? Check out our Custom Search Page

Repeating records changing values by themselves when being submitted

Last post 08-20-2012 10:31 PM by Johan. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 12-22-2010 11:48 AM

    • bobga
    • Not Ranked
    • Joined on 12-22-2010
    • Posts 9

    Repeating records changing values by themselves when being submitted

    I have an application running in InfoPath 2010.  It has a very complicated relational setup and more than 50,000 current records.  I recently started having a problem where data in fields change when I submit them to the sql 2008 database.  You can see it happen.  Also, some recurring sub records are added automatically.  The data in the records appears to be coming from other sub-records.  There are no rules or defaults involved.  It isn't consistent, but happens enough that my users are wary.  This application was written and run in XP and this problem didn't exist when run in XP and InfoPath 2003.

     

    HELP!!!!!!!

  • 12-23-2010 08:41 AM In reply to

    Re: Repeating records changing values by themselves when being submitted

    Hi BobGa,

    Thanks for posting. First time I have heard of this bug. I would contact Microsoft since it seems like a bug. We advocate using Web Services between InfoPath and SQL since that gives you a layer and added redundancy.

    Patrick Halstead
    InfoPath MVP
  • 12-23-2010 12:02 PM In reply to

    • bobga
    • Not Ranked
    • Joined on 12-22-2010
    • Posts 9

    Re: Repeating records changing values by themselves when being submitted

    Thanks for the reply.  This is my 20th? Infopath application using sql and I haven't had any problems yet.  It appears to only be a problem in office 2010 and Win7.  I've requested a MS expert to come in and that will probably happen in the next couple of weeks.  Where can I find a good primer on using web services to get to sql?

  • 12-24-2010 06:53 AM In reply to

    Re: Repeating records changing values by themselves when being submitted

    If you've done 20 InfoPath applications using SQL, you probably don't care about the limitations:

    • Data isn't saved as XML - rich data types (images, rich text, files, etc.) don't roundtrip, can't refer to a signed "document" later since the data doesn't exist in one XML piece in SQL
    • Data locking and permissions cannot be controlled - users can overwrite one another's data, users can see all of the data (can't be locked out based on user roles, active directory group membership, etc.)
    • Changes to your SQL database schema will invalidate previously saved XML files (if you have them on a local computer) and force application downtime (while the changes to the server are made)
    • Browser forms don't submit to SQL (due to double hop authentication issues) 
    • SQL rows cannot be dynamically queried based on parameters in your InfoPath form (you can't populate a dropdown based on a server-side filter)
    • Etc.

    That's a list of the main reasons why you should consider a Web service. Web services can also scale to handle larger and more complex forms. Web services aren't a panacea. In general, most organizations make the mistake of creating one Web service per form (XSN). InfoPathDev and Qdabra Software (which pays for this site) advocate data-driven Web services for the following reasons:

    • One Web service suite for all forms - XML to SQL mapping is defined in a data file that can be updated out-of-band, not interrupting the application uptime
    • Less IT maintenance due to less proliferation of Web services and code
    • XML is saved in database enabling 100% roundtrip fidelity for all rich data types

    We built the first (and to date the only) data-driven Web service for XML forms back in 2004. In addition to the above features, we've added many more in the intervening years, including:

    • Document level permissions - control who reads and writes what document based on data in the form
    • Extensive tool set, for example:
      • Admin Tool - create XML to SQL mappings
      • Document Migration - easily move thousands of forms and templates from one server to another
      • Document Deployer - create automated packages to deploy forms, templates and mappings
      • Bulk Editer - edit multiple XML in one step
      • Bulk Assignment - assign multiple documents in one step
      • Query Builder - build data-driven queries that run on the server for best performance
      • Report Builder - build complex reports based on XML data and export to Excel - no database mapping required
    • Client Dashboard that synchs with Web server (or SharePoint)
      • Offline support - edit forms on the plane or when you don't have a connection and upload when you go back online
      • Filter which documents you pull down for offline editing
    • SharePoint integration - faster submits and queries when working with SharePoint
    • Cloud-based instances - ready-to-deploy Amazon cloud instances make it easy to bring a new Web service and backend online
    • ... other stuff that I forget....

    Perhaps the most important thing is it's a *very* inexpensive solution - we built it to help accelerate the many InfoPath Consulting projects we do for small, medium and large enterprises. We offer free trials and low cost server-based licensing to the InfoPath community. We guarantee it will save you time/money and solve the issues that come up with SQL integration, but it will also make your InfoPath life a lot easier in other ways.

    OK, didn't mean to make this a total sales pitch, but as you can see I feel strongly about Qdabra's DBXL Web service suite. I understand if you aren't interested - you've already had success with your approach and I respect that. :)

    Microsoft has training on how to create Web services. Qdabra also provides online and in-person training to help you create Web services, but DBXL's a better value since it's data-driven and can handle all of your XSNs and scale as you change them in the future. Lots of documentation on this site and on Qdabra.com.

    Let me know if you want a free fifteen minute phone call to further discuss how you can get the most value out of InfoPath with your database.

    Merry Christmas,

     

    Patrick Halstead
    InfoPath MVP
  • 08-18-2012 06:51 AM In reply to

    • Johan
    • Not Ranked
    • Joined on 01-23-2008
    • South Africa
    • Posts 17

    Re: Repeating records changing values by themselves when being submitted

    I believe I have identified a bug. Example: Create a SQL server 2008/ 2005 table with 2 fields (BugID and BugName) and an Infopath form (2007/ 2010) connected to the table. Create a repeating table / section with only the BugName field. Create a button to submit the data and query it again. Enter one Bug Name record and press the "button" (to have at least one record). Now, 1) change the something in the first "BugName" record as well as 2) insert a another Bug Name and 3) press the "button". The last record reverts back to the one whichBug Name has been changed... This doesn't happen with MS Access though I'm pulling out my hair with this problem!
    Johan Bredell
  • 08-20-2012 07:59 AM In reply to

    Re: Repeating records changing values by themselves when being submitted

    Oh my gosh - just ran into this the other week!

    From an MS Escalation Engineer:

    Problem: You have an InfoPath form bound to a database.  If only Inserts are performed, this works fine, and if only Updates are performed, this works fine.  But if an Update and an Insert are performed in the same batch, then the Update changes its record, and then the Insert gets sent... but with the values from the Update.   Cause: This issue is caused by a regression in the ADO libraries that ship as part of current versions of Microsoft Windows. Resolution: This issue was resolved by the fix Incorrect values are updated after an application calls the UpdateBacth() method in Windows 7 or in Windows Server 2008 R2 http://support.microsoft.com/kb/2591857

     

    Hilary Stoupa
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 08-20-2012 10:31 PM In reply to

    • Johan
    • Not Ranked
    • Joined on 01-23-2008
    • South Africa
    • Posts 17

    Re: Repeating records changing values by themselves when being submitted

    Thank you Hilary!
    Johan Bredell
Page 1 of 1 (7 items)
Copyright © 2003-2012 Qdabra Software. All rights reserved.
View our Terms of Use.