Incorrect Infopath content type update in form library after modifying Infopath form and publish it

I have an admin approved InfoPath form. I added new fields to that form and mapped those new fields with site columns. After uploading updated published form through CA, I noticed InfoPath Site content type for that form got updated (with newly added fields)
under Microsoft_Infopath group. This content type is also added in form library but somehow the new fields are updated incorrectly for this content type existing in form library (it doesn't show new fields, and shows one new field which is incorrectly
mapped with other column this is happening only in library). 
Things I tried:
- Activate/Deactivate that content type feature
- Deactivated feature, removed form from CA, re uploaded and activated feature
- Removed those new fields and published and uploaded InfoPath form and then added those new fields and published and uploaded again.
-Deleted those fields from InfoPath and readded new fields and published and uploaded form but still the problem persists.
Any help will be appreciated.
Dhaval Raval

Hi Thanks for the response,
But Update all content types inheriting from this type is already checked.
That form library has multiple content types associated with it , different infopath forms get submitted there. What I noticed is that when I change the form and publish it, its corresponding site content type gets updated but the same content type used
in form library doesn't get updated properly. I went to form library and checked that erroneous content type, there were some columns missing and one column was mapped incorrectly. When I clicked on "Parent" content type, it was showing all the new Infopath
fields(updated content type). So I figured that Infopath site content type was getting updated correctly but it was not able to propagate those updates (in a correct way) to the form library. I also tried to edit that content type and tried adding existing
site columns which were missing but surprisingly it was not showing those site columns either, which were mapped from Infopath publishing.
The cause for this behavior is : changes/updates to the Infopath content type are not getting propagated to the form library and this is happening for only one infopath content type but other Infopath content types are getting updated.
I had to delete all the forms using that erroneous content type and then had to delete that content type from the library and then re-added that Infopath content type to the library and this time it was having correct content type (updated columns).
This is not a perfect solution for the production environment, sounds like it is a bug.
Dhaval Raval

Similar Messages

  • Visual Studio 2013 deploying incorrectly the content types of a document library

    Hello everyone. 
    I created a SharePoint farm solution in VS 2013. I add four content types (say, C1, C2, C3, C4, based on the Document content type) and I create a couple of document libraries (say, L1, L2). Now I add C1 and C2 to L1, and add C3 and C4 to L2. 
    When I deploy the solution from VS, I go to the site and found out that L1 has C1 and C2, as expected. However, L2 has C1 and C2 instead of C3 and C4. 
    I have reviewed for hours the xml files (Elements, Schema, etc.) and all IDs seem to be correct and all properties are in order. 
    Has anyone come across a problem like this? Any thoughts will be really appreciated, as I'm clueless and frustrated at this point, after hours of dealing with this problem. 
    Thanks in advance!
    Best regards
    Fernando A. Gómez F.
    fermasmas.wordpress.com
    Galería de ejemplos

    Hi Sohel, thanks for your reply. 
    No, I don't add them programmatically, I added the "Content Type" and "List" items to the VS solution. It generated some files, including Elements.xml and Schema.xml. Then I used the integrated VS designers to add the content types to
    the list. A very run-of-the-mill solution, I think, nothing too fancy. 
    One thing I noticed is that I created a feature, and everytime I add a new list, instead of using the existing feature, it creates a new one, which I delete, and then add the list to the existing feature using the designer. 
    Finally, something weird happened today. I opened my VS, opened the solution and there was several feature files created out of the blue by the VS. I thought something was messed up with the Visual Studio Online connection, but it happens anyway when working
    in disconnected mode. 
    Fernando A. Gómez F.
    fermasmas.wordpress.com
    Galería de ejemplos

  • SharePoint REST service to add an exsiting site content type to a list/library

    Trying to use SharePoint 2013 REST Service to add existing site content types to a list/library. Below MSDN article suggests that the POST method is available but does not say how to use it.
    http://msdn.microsoft.com/en-us/library/office/jj246793%28v=office.15%29.aspx#postsyntax_htm
    POST http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes/add(parameters)
    How do we create the body for this rest call?

    Hi You need to use the addAvailableContentType method to attach a Existing Content Type to a list/Library.
    Consider the below Sample. Take the Id of the Content Type and pass it.
    the REST API URL is 
     http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes/addAvailableContentType(contentTypeId)
    var siteUrl = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('Employees')/ContentTypes/AddAvailableContentType";
        var call = jQuery.ajax({
            url: siteUrl,
            type: "POST",
            data: JSON.stringify({            
                "contentTypeId": "0x0100E5EC1FE6D284A74A972A1776FFFE2DA0"            
            headers:
                   'accept': 'application/json;odata=verbose',
                    "content-type": "application/json;odata=verbose",
                    "X-RequestDigest": jQuery("#__REQUESTDIGEST").val()
        call.done(function (data, textStatus, jqXHR) {
            var message = jQuery("#message");
            message.text("Added Content Type Successfully");
        call.fail(function (data, errorcode, errormessage) {
            alert("Could not enable content types: " + errormessage);
    Here 0x0100E5EC1FE6D284A74A972A1776FFFE2DA0 is the Content Type Id of my existing Content type "Employees"
    Ensure the AllowContentTypes is set to True for that List/Library
    R.Mani | http://rmanimaran.wordpress.com

  • Content Types updates not getting pushed to Lists/Libraries Sharepoint 2013

    Hello,
    We have updated Content Type at Content Type Hub(ex. Making columns Hidden/Req...etc..). These changes are pushed to the consumer sites site level Content types but the problem is these changes are not reflecting at List/Library level Content type.
    Is there a way to explicitly push down the changes ?
    Best Regards, Pankaj Rana

    http://sharepoint.stackexchange.com/questions/52259/how-to-update-a-deployed-content-type
    perform the changes to the ContentType make sure to push changes to the lists while updating the ContentType.
    For now, you might need to perform some clean-up job here, just to make sure the field is deleted from all the lists, with your Custom ContentType. Use the following PowerShell script for clean-up! Vårsegod :)
    Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
    $site = Get-SPSite "http://your.site.com"
    foreach($web in $site.AllWebs)
    #iterates through all the Lists
    for ($i = 0; $i -lt $web.Lists.Count; $i++)
    $list = $web.Lists[$i];
    $MyListContentTypes = $list.ContentTypes
    if ($MyListContentTypes -ne $null)
    $ct = $list.ContentTypes["You Desired Content Type Name"]
    if($ct)
    Write-Host "In list Content Type and deleting the field" $ct.Fields["You Field Name"].Id;
    $ct.FieldLinks.Delete($ct.Fields["You Field Name"].Id)
    $ct.Update()
    Edit: How to push down changes to all the Content types via SharePoint Server Object Model:
    using (SPWeb oWebsite = new SPSite("http://MyServer/sites/MySiteCollection/MyWebSite").OpenWeb())
    SPList oList = oWebsite.GetList("MyWebSite/Lists/MyList");
    SPFieldCollection collFields = oWebsite.Fields;
    string strNewColumn = collFields.Add("MyNewColumn", SPFieldType.Text, false);
    SPFieldLink oFieldLink = new SPFieldLink(fields[strNewColumn]);
    SPContentType oContentType = oList.ContentTypes["Specification"];
    oContentType.FieldLinks.Add(oFieldLink);
    oContentType.Update(true);
    Edit 2: Update a Content Type using PowerShell:
    Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
    //get the specific Root web
    $spweb= Get-SPWeb "http://your.site.com"
    //get the fields collection
    $fields = $spWeb.Fields
    //get the specific field
    $field = $fields.GetFieldByInternalName("Name of you field")
    //get the specific Content Types from Root Web
    $contentType = $spWeb.ContentTypes["You Content Type"]
    //delete a field from a Content Type
    $contentType.FieldLinks.Delete($field)
    //add a field to a Content Type
    $contentType.FieldLinks.Add($field)
    //update the Content Type and push changes to the children
    $contentType.Update($true)http://sharepoint.stackexchange.com/questions/42744/how-to-add-a-field-to-a-contenttype-with-feature-upgrade-for-new-and-existing-shttp://msdn.microsoft.com/en-us/library/office/aa543504%28v=office.14%29.aspx
    If this helped you resolve your issue, please mark it Answered

  • Set content type based on file extension after uploading into document library

    when there are multiple content types associated with a document library, say, report builder report, and excel documents, after you drag and drop a document into the document library, content type will not be detected based on the file extension. Suppose
    your default content type is document, and you had added the report build report content type, and you uploaded a .RDL file, the content type for the file will be set to the default document content type.
    I get a requirement to update the content type automatically based on the file extension, what follows is my code:
    public class setCNTByFileExtItemAdded : SPItemEventReceiver
    /// <summary>
    /// An item was added.
    /// </summary>
    public override void ItemAdded(SPItemEventProperties properties)
    if (properties.Web.GetFile(properties.AfterUrl).Exists)
    SPListItem CurrentListItem = properties.Web.GetFile(properties.AfterUrl).Item;
    String FileName = CurrentListItem.Name;
    if (FileName.EndsWith(".rdl",StringComparison.OrdinalIgnoreCase))
    CurrentListItem.Properties["ContentTypeId"] = "0x010100C3676CDFA2F24E1D949A8BF2B06F6B8B";
    CurrentListItem.SystemUpdate(false);
    base.ItemAdded(properties);
    What follows are references that helped me:
    http://stackoverflow.com/questions/7984300/properties-listitem-is-null-in-itemadded-event-while-uploading-documents-using
    http://williamvanstrien.blogspot.in/2011/10/read-content-of-uploaded-file-within.html
    http://blogs.msdn.com/b/manuj/archive/2009/09/22/itemadded-event-on-document-library-the-file-has-been-modified-by-on-error.aspx
    http://support.microsoft.com/kb/2647429

    user may have further requirement to detect whether the uploaded .xlsx file contains powerpivot data model, i tried the following code, the caveat is that .xlsx is actually a zip file, i just test whether the uploaded stream contains an entry xl/model/item.data.
    public partial class ApplicationPage2 : LayoutsPageBase
    protected void Page_Load(object sender, EventArgs e)
    if (this.IsPostBack)
    if (FileUpload1.PostedFile == null)
    return;
    string destWeb = DestinationUrl.Url;
    string destUrl = destWeb + "/" + FileUpload1.FileName;
    using (SPSite site = new SPSite(destWeb))
    using (SPWeb web = site.OpenWeb())
    SPFile f = web.Files.Add(destUrl, FileUpload1.PostedFile.InputStream);
    if (FileUpload1.FileName.EndsWith(".xlsx") )
    Stream fs = f.OpenBinaryStream() as Stream;
    using (ZipArchive zfs = new ZipArchive(fs, ZipArchiveMode.Read))
    if (zfs.GetEntry("xl/model/item.data") == null)
    Debug.WriteLine("Does not contain data model");
    else
    Debug.WriteLine("Contain data model");
    The code i posted here is part of an application page in layout folder, the reason why i use application page is described in
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/065d010a-d37e-4da4-9873-172ab2c50d6d/custom-list-new-application-page-with-listfielditerator-and-savebutton?forum=sharepointdevelopment#288a686e-bfbe-41aa-83d0-58a80f0cec07

  • New Forms with Content Types copies all form fields.

    I'm using the "NEW" button to create a form based on a Content Type.  I know how this worked in the past and I can attach to the right content type and everything.
    My problem is that the form generated is wrong.  It doesn't take the Content Type selected into account.  Instead it just displays everything in the form.
    Anyone else have this issue?
    David Jenkins

    Hi David,
    We need more information to reproduce this issue, could you provide the steps how you did the form based on a content type? 
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

  • How to create a Article Page content type to a Document Library

    Hi,
    I'm developing Sharepoint App using Visual Studio it has a Custom Document Library. I need to create a content type like ArticlePage and integrate with the Document Library.
    Can you please help in this
    Thanks

    Hello Pallavi,
    You can't do this by OOTB or Customization of existing field programmatically. We
    can set the enforce uniqueness for the indexed columns only.
    You can try to write event handler for same ..
    Best
    Regards Kuldeep Verma
    Please remember to click "Mark As Answer" if a post
    solves your problem or "Vote As Helpful" if it was useful.  

  • HT204655 How to have a unified Photos Library after migrated from iPhoto and Aperture?

    The "HT204655: Get started with Photos for OS X" do not help. If you have previously used iPhoto and Aperture, when you "migrate" the iPhoto, then follow the steps to "migrate" the Aperture library, you end up with 5 files in your Pictures folder: Photos Library (from iPhoto), Photos Library 2(from Aperture), iPhoto Library (Not sure if can be deleted or not - of course no), Aperture Library (for some reason blank), Aperture Library 2 (Created by Photos?).
    So, looks like a mess and no easy way to make a clean migration.
    I've a hope that exists a solution to have a single Photos Library with the merged iPhoto and Aperture contents, like a real migration.
    If I export everything (From iPhoto and Aperture) then import in the Photos in a single Library should work, but will lose all the organization, faces, etc...

    You could merge libraries with iPhoto Library Manager, but I never tried this for merging Aperture 3 libraries with iPhoto 8.
    Are you planning to keep all your photos in iCloud? Then consider to merge them in iCloud, but it will take a long time.
    Are you using iCloud Photo Library (Beta) and have enough iCloud storage for the merged library?
    Wait, till your current Photos Library has been completely uploaded to iCloud.
    Then quit Photos, and launch it again, while holding down the alt/options key. Select the old iPhoto lIbrary.
    When the upgrade of the old library has been finished, make this library the System Photos library (in the Photos Preferences > General).
    Enable again iCloud Photo Library (Beta) in the Photos > iCloud preferences.
    Now Photos will upload the new library to iCloud as well and create a merged library in iCloud. After this merged library synced with your Mac, you will have a merged Photos library.

  • Plays on iPod won't update to iTunes library after 9.2 update

    so i went on vacation for 2 weeks with my ipod and in that time watched 15 previously unwatched episodes of tv, 40 songs previously unplayed, as well as hundreds of others played, plus a few ratings changed. when i came home, i saw the 9.2 update was out and so i updated. afterwards, i plugged in my ipod. i waited past the beach ball effect and it all synced, but everything is the same, as if nothing was played on my ipod in those 2 weeks (according to my library). is there anything i can do to fix these? the only thing that transferred over to my library is an on-the-go playlist i made
    ipod classic 6th generation 80g, macbook intel core duo from late 2007 but running on snow leopard

    I did some more investigation and made an interesting observation. My track info did update as it should. The problem lies (for me at least) when viewing tracks in a SmartPlaylist. I made a 5 song smart playlist to see if I could figure out what was the problem. I also made a normal playlist and copied the songs from the smart playlist into the normal one. After I listened to the five songs (one of which I paused in, and one I skipped) all four of the ones I listened to updated in the normal playlist. I then looked at the smart playlist and all of the songs still showed their previous Last Played dates.
    So, try looking at your 'un-updated' tracks outside of a smart playlist and see if they in fact, aren't updating.

  • Open url, type in a form and repeat in safari

    I'm very new to scripting so bare with me. I'm trying to open a url, select a form or dialogue box ( not sure what they're called) enter text into it, click the submit button, and repeat in a set number of minutes.
    So far I've been able to open a window in safari and go to the url I want.
    I don't know how to select the field I want and to enter the text in it.
    Thanks in advance.

    Really all depends completely on the page in which you're dealing with. No one page is exactly alike. That being said, the below script will open up Google and search for the text it asks you for:
    set searchText to text returned of ¬
    (display dialog "Search Google for what:" default answer "search string")
    tell application "Safari"
    activate
    make new document with properties {URL:"http://www.google.com"}
    my pageCheck()
    do JavaScript "
    document.getElementsByTagName('input')[" & 2 & "].value='" & searchText & "';
    document.forms[0].submit();" in document 1
    end tell
    on goSleepy(x)
    do shell script "sleep " & x
    end goSleepy
    on pageCheck()
    goSleepy(2)
    repeat 5 times
    set theState to readyState()
    if theState is "complete" then return true
    goSleepy(1)
    end repeat
    return false
    end pageCheck
    on readyState()
    tell application "Safari" to ¬
    do JavaScript "document.readyState" in document 1
    end readyState
    Javascript is the way to go to achieve what you're looking for. But, there are MANY different ways to approach TONS of different pages across the internet!! Hope this helps...

  • Warning!  Songs were removed from iTunes Library after installing new iTunes and iPad/iPod Sync

    I purchased the iPad 2 yesterday, updated my itunes software, and itunes messages indicated that it would not allow certain songs to be included in my library any longer since these were not purchased from iTunes.  Many of the songs were from CDs that I stored on this library for several years.  Only after I upgraded iTunes with this new iPad was my music removed.  Luckily I still have my music on my iPod, but my iTunes library on my laptop contains only the music I have purchased from iTunes with the last 18 months.  Weirdly, except for one particular song that iTunes said was not purchased from them, but it was part of an entire album purchase from iTunes.  Also, all of the movies I purchased from iTunes were also removed. I am not able to sync any movies onto my iPad. 
    I restored the iPad a second time, reinstalled the itunes and have the same result.  All of my older archived music is gone from the iTunes library. 
    Warning, if you want your music, back it up before installing the latest iTunes particularly if you have the new iPad 2.

    Hmm, it is only very recently (about 6 months ago I think) that the policy on Music changed. Prior to that you would be routinely reminded to back up all purchases (immediately after the successfully completed download), unless of course you ticked an option not to be reminded again. The change in policy (in our favour) would have been noted in the small print that neither you or I read when upgrading iTunes, though we say that we have.
    Again I'm still not certain if audiobooks are excluded from both "Music" and "Books". One would hope that they belonged to one category or the other in respect of redownloading. In the past, in the event of an absolute disaster, fatal hard-drive crash, fire etc. some users have been able to prevail upon the charity of the iTunes store staff who would occasionaly grant a second, but never a third, download of past purchases.
    The restictions on different types of media are ultimately imposed by the rights holders, not Apple. It is in Apple's interests to offer the same terms as their competitors, so my guess is that nobody currently offers unlimited repeat downloads of movies. Certainly the unique codes you get on some DVDs/Blu-Rays are one-time only.
    Backup all (or at least the non-replaceable parts) of your library with this User Tip.
    tt2

  • Is there a way for photoshop to AUTO UPDATE all linked files after modified?

    Using the new Photoshop 2014 (version).
    This is a very frustrating task for anyone using a lot of linked files.
    As a web developer, I may have 50 files that contain one linked element.  If I go edit that element, I then have to find the layer on each and every file it's contained in and click "Update Modified Content".  There HAS to be an easier way.  I really hope I'm missing something here.
    Thanks to everyone looking to help.

    OK. Now I see what you meant.
    And you correctly understand workaround instruction. The problem is it does not work and I don't know why.
    I'm not so familiar with Automator and indeed seldom use it except for a simple services wrapper under 10.6. So I don't know of any workflows off the shelf which use "Ask for Confirmation" action. But it is easy to create a workflow that, for instance, consists of "Ask for Confirmation" action only and is set to receive no input or input from Finder or input from other application and test to see if it gets keyboard focus. As far as I can tell, this action obtains keyboard focus automatically.
    Here's another workaround you may try. Replace the "Ask for Confirmation" action with a "Run AppleScript" action with the following contents. This will show similar dialogue to let you choose two options.
    on run {input, parameters}
        tell application "Finder"
            activate
            display dialog "Are you sure?" with title "Permanently delete"
        end tell
        return input
    end run
    The workflow will look like this.
    Regards,
    H

  • OS X Lion doesn't seem to recognize my iTunes library after install. Safe and smooth to simply reinstall iTunes??

    Gives the message: "The file “iTunes Library.itl” cannot be read because it was created by a newer version of iTunes. Would you like to download iTunes now?"
    OK to download without risk of losing library?

    Some Users have reported that a Restore as New has resolved issues after the Update...
    See Here
    Backup and Set Up as New Device
    http://support.apple.com/kb/HT4137

  • Restoring iTunes library after hard disk crash and replacement

    My iTunes library was on my hard drive which crashed and died last week. I now have a new hard drive. My iPod 80gb was up to date before the new hard drive was installed... can I copy the content of the iPod back to the new hard drive... HOW???
    Alternatively I have a backup of my old hard drive (which included the "My Music/iTunes" folders... can I restore from there?... I tried simply copying files which didn't work. I also tried "Add folder" from iTunes, it kind of worked but many of the tunes were grayed out and had a download icon next to them, even though they were previously ripped from CDs or bought through iTunes.
    what should I do???

    Hey Dave W RI,
    Perhaps, it would be more helpful, for you to search this forum for terms like recover music, or something related.
    That would return threads, from others, that have had this same question.
    Hope this helps,
    Generik

  • Rebuilding library after hard drive crash AND sound quality of iPod files?

    Hi all,
    I had a hard drive crash and hadn't done a back-up in awhile. My iPod was up-to-date though. I used third-party software to grab the music off the iPod. So now I a good portion of my library back up to another hard drive AND the entire library pulled off my iPod. Should I just direct iTunes to the files I pulled off the iPod or direct it to the backup and add the missing files from my iPod files? Clear as mud?
    Also what will be the sound quality of the files I pulled from the iPod?

    If you copied the files from the iPod to a folder on your computer then open iTunes and go to File>Add Folder to library and add the songs back into iTunes (or simply drag the folder from it's location to the iTunes Source pane, - the long pane on the left. They should sound fine since they are simply copies of the originals. Before you add them check your iTunes preferences, go to Edit>Preferences>Advanced and make sure the boc "Copt files to iTunes Music folder when adding to library" is checked.

Maybe you are looking for