Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Infopath
|
Infopath Programming and automation discussions only please. :)
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Infopath section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 31st, 2013, 10:09 AM
Registered User
 
Join Date: Jan 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default InfoPath Bug? -Infopath Database Template -Erroneous update of row items -Duplicates

Infopath 2010 (part of MS Office Professional Plus 2010) version 14.0.61269.5000 (32 bit)
SQL Server 10.50.1600

Snapshot describing the table structure, InfoPath myFields panel and sample demonstration of issue:

http://postimage.org/image/ysnk6r5mb/

Hi,

I'm using Infopath (database template) as interface for 2 tables in a SQL database. The first table (let’s call it Config Table) is a dimension table (contains various attributes like metric name, goal etc.). The second table is a fact table (let’s call it Data Table) and stores the actual data periodically. The Data Table has a Foreign Key that binds to the Primary Key of Config Table.

I’ve been successful at creating the InfoPath form such that users can create new metrics in Config Table and later on, populate Data Table with data points on weekly basis (using Repeating Table inside Repeating Table).

The issue I’m facing is that while updating (adding or updating the existing data points) in the Data Table, InfoPath overwrites some of the data points in Data Table (thus creating duplicate rows).

I have tried creating multiple databases on different systems and tried different InfoPath forms (SQL Server 2008 R2, SQL Server 2012, InfoPath 2010, InfoPath 2013) and can replicate the problem repeatedly. Most likely it has something to do with how InfoPath parses the Insert & Update queries to SQL.

Has somebody encountered the same issue before? Is this a known issue with InfoPath? And if it is a bug, can somebody help me report it to Microsoft? Any workaround in the meantime would be appreciated too. Thanks for all the help.

Cheers!
Harsh





Similar Threads
Thread Thread Starter Forum Replies Last Post
InfoPath 2007 - Retrieve data from one table, submit to another table (same database) lespaul00 Infopath 0 March 25th, 2011 10:21 AM
how to perform insert ,delete,update, display data in a sharepoint list from infopath charan SharePoint Development 1 June 23rd, 2010 05:27 AM
InfoPath Form Template creation prpradip Infopath 0 July 26th, 2009 08:39 AM
About Infopath AgniR Infopath 1 April 29th, 2008 07:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.