sharepointsharepoint-2007infopathinfopath-2007

Newly Promoted InfoPath fields not in Form Library?


I have an InfoPath form set as the primary content type on a Form Library which is working fine. The form is a Managed Template uploaded/activated through Central Admin, and contains a number of Promoted Fields.

Now I've added another field to the form in InfoPath (and added a control on the form for it, for visibility) and set that field to be promoted into the library (confirmed through both Tools -> Form Options -> Property Promotion, and the list when publishing) and published & uploaded the form (using Central Admin).

When I open the form in SharePoint (by creating a new item in the form library, or opening an existing item in that library) I see the control for my new field, and can store data in the field. However, the field is NOT promoted, in that I cannot see it in any of the following:

I've tried everything I can think of to get this field promoted short of deleting the entire library and starting over. Has anyone else run into this problem? How can I promote a new field into an existing library?


Solution

  • Well, I've sort of answered my own question...

    What I ended up doing was eventually:

    1. Deleted the entire Form Library
    2. Created a new copy/version of the Form Library, and added the form's Content Type to it from the Site's Content Types Gallery

    This fixed nothing. Don't do that.

    My next step was probably excessive, but I:

    1. Deleted the entire Form Library
    2. Deleted the form's Content Type from the the Site's Content Types Gallery
    3. Removed the field from the InfoPath form entirely
    4. Published the form (minus field) and uploaded it in Central Admin
    5. Re-added the field in InfoPath and published, again promoting the field the same way I had before, and uploaded it through Central Admin
    6. Tried to add the form's Content Type to a new copy/version of the Form Library (the Content Type was not available)
    7. Deactivated and re-Activated the feature for the form in the Site Collection Settings
    8. Added the form's Content Type to the new Form Library

    And THAT worked!

    My theory is that Deactivating and re-Activating the Feature for the InfoPath form will force the promoted fields to be updated, and that until you've done that the Content Type will still be using the old fields (so that nothing you do at the Form Library level will mean a thing). But that would still be a very destructive operation if you're working on production data, and I'm hoping there's still an easier and "safer" way of updating the Promoted Properties/Fields/Columns of an InfoPath form published to SharePoint.

    But there probably isn't.