Solved

InfoPath 2010 Document Information Panel - Error: "This file cannot be saved because some properties are missing or invalid"

Posted on 2011-03-17
2
1,087 Views
Last Modified: 2012-05-11
Afternoon all,

I’m building a customised Document Information Panel for a custom content type within my SharePoint 2010 site and am generating an error upon trying to save the document using it.  The DIP is being designed to allow for cascading drop downs, or filtered look ups, in that the selection of one drop down box will determine the contents of the next.  A screenshot of the DIP in word is below

 Custom DIP Screenshot
When I try to save a document into SharePoint it, I get the following error message.  

 Custom DIP Error Message
My steps to this point are: -

1.      Create a list that contains my data
2.      Create 2 site columns look up into different columns for this list.  These columns are metadata level 1, and metadata level 2.  The third column in the DIP is linked to a taxonomy list in the managed metadata service
3.      I create my content type, upload my template and generate the DIP XSN from the Document Information Panel Settings
4.      On the first drop down box (via the Drop Down List Box Properties,  I’m making the following changes
   a. Change Value to my first look up column
   b.      Change Display name to my first look up column

 Drop Down box Properties
5.      On the first second down box (via the Drop Down List Box Properties,  I’m making the following changes
   a.      Change Value to my second look up column
   b.      Change Display second to my first look up column
   c.      Applying a filter, on the XPath, so that entries are only shown if the value for drop down box 1 (via the main data source) matches the value in the second data source (secondary data source).  A screenshot of this is below: -

 InfoPath filter properties
7.      Testing this works, I deploy it to my content type just fine.  A user can open the document just fine, the selections work but when they try and save, I generate the error message in the first screenshot.  My DIP look-up columns show a red dotted boundary, indicating an invalid property.

Fixes tried so far
Changing the Value in the Drop-Down List Properties back to ID, as I suspect that this needs to be passed back.  Doing so, breaks my filter, and I can’t think of another filter to apply.  I’m assuming that by applying a filter on the "Title" field only, the ID Field values aren’t being retrieved in the query for the dropdown entries, and hence not assigned to the Lookup in SharePoint.  I’m not sure how to fix this yet.

I have found the link in the forums to this thread http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Infopath/Q_23553083.html and noted the fix, however, this user had a different filter from myself and I've been upable to adapt this to my solution.

I've set this as a 500 point question due to the nature and scacrity of viable answers when researching this.

All/any pointers are appreciated.
0
Comment
Question by:backpackerd00d
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Accepted Solution

by:
backpackerd00d earned 0 total points
ID: 35322319
I managed to sort this one by adding a second data binding to the second drop down box and filtering on this.  It changed the @ID to "Title" but changing back the reference to ID, ensured the cascading drop down worked.
0
 

Author Closing Comment

by:backpackerd00d
ID: 35322324
2 weeks of working this out meant I finally hit the solution.
0

Featured Post

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question