Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
1,095 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
  • 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month5 days, 21 hours left to enroll

772 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