Content Type name is not changing on site level

Hello
I have one new SP2010 site. I am changing the content type name using following script, but it is not working. I have not used content type in any list or library nor in any existing ite, I am not using content type hub. Can anyone why content name is not
updating?
$ParentContentType = $site.RootWeb.AvailableContentTypes["Data control1"]
if ($ParentContentType -eq $null)
write-host "not exist"
else
$web.$ParentContentType.Name="Data 123Control1"
$web.AllowUnsafeUpdates = $true;
$web.Update()
$web.AllowUnsafeUpdates = $false;

Make the following change, hope this helps you
$site.RootWeb.AvailableContentTypes
to
$site.RootWeb.ContentTypes
Ashish Kanoongo, MCP, MCSD, MCTS http://akanoongo.blogspot.in/

Similar Messages

  • Ipod name is not changing

    Hi,
    I recently have been having problems with my new Nano. I had a ipod for about two days now and my brother decided to make it his with out asking. I was able to change the music but the name is not changing. It still says his name. I have tryed clicking on the name and changeing it. That works for as long as my ipod is connected on my computer. When i plug it back in it says his name again now it freezes and wants to shut down.
    Is there any way to fix this? Thanks.
    <SCRIPT type=text/javascript>_popupControl();</SCRIPT>

    Sounds like you're on auto-sync and with disk mode DISABLED. What you need to do is enable disk mode so that your Nano doesn't automatically disengage from iTunes until you tell it to.
    To enable disk mode, connect your Nano to iTunes and as soon as it shows up you need to select the disk mode option on the Summary page that shows up, then click the Apply button. Do this quickly, before the auto-sync process completes, and don't forget to click Apply!
    Once disk mode is enabled you should be able to change the Nano's name. When that's done you'll need to eject it from iTunes and the name should remain changed. Note that disk mode requires you to manually eject the Nano from iTunes each time, so if you don't want that you can disable this feature once you change the Nano's name.
    The alternative to all this is to restore your iPod, which erases its contents and prompts you for a new name for the iPod. But the approach above is better if you don't want to have to re-load the Nano's contents.

  • Select option "Show this View : in Folder of Content type : {Custom Content Type Name}" while creating view using CSOM

    Hi,
    I am trying to create "View" in a Document Library and need to enable following:
    1. Mark as default View
    2. Folders -> Show this view : in Folders of Content Type : {Custom Content Type name}
    I am using following code which sets "in Folders of Content Type : " to "Folder" rather than selecting custom content type despite passing Content Type ID of custom content type.
    code:
    var itemContentTypes = clientContext.LoadQuery(web.AvailableContentTypes.Where(ct => ct.Name == viewContentType));
    clientContext.ExecuteQuery();
    var itemContentType = itemContentTypes.FirstOrDefault();
    view.ContentTypeId = itemContentType.Id;
    view.DefaultViewForContentType = true;
    view.Update();
    clientContext.ExecuteQuery();
    Please highlight what seems to be missing?
    Thanks
    Sonal

    Hi,
    Before you set the content type ID for the view, you need to add the custom content type to the library firstly.
    You can add the content type to library using OOTB feature “Add from existing site content types” in library settings or using Client Object Model.
    Here is a code snippet for your reference:
    var list = context.Web.Lists.GetByTitle(listTitle);
    list.ContentTypesEnabled = true;
    var contentType = context.Site.RootWeb.ContentTypes.GetById("0x0120");
    list.ContentTypes.AddExistingContentType(contentType);
    context.ExecuteQuery();
    More information about add exist content type using Client Object Model:<o:p></o:p>
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.contenttypecollection.addexistingcontenttype%28v=office.15%29.aspx
    Best regards,
    ZhengyuGuo
    Zhengyu Guo
    TechNet Community Support

  • Content Type Description is not adding on list

    Hello
    I have some custom content type on site level and each content type I have different description. When I add content type manually  in existing document library, description is also coming for added content type. But when I add content type programmatically,
    description not coming with content type it is coming as empty. I have used following MSDN article for adding content type.
    http://msdn.microsoft.com/en-us/library/office/aa543576(v=office.14).aspx
    Can one please let me know what am I missing here?
    Regards
    Avi

    Hi,
    According to your post, my understanding is that the description of the content type not displayed in the site while adding the content type programmatically.
    I had tested the code of the above link with a custom content type based on the Document content type, it worked without any issue.
    To narrow down the issue, you can check with the following steps.
    You can recreate a new content type then check whether it works.
    You can use other libraries to check whether it works.
    You can also check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer” in the Search box.
    For SharePoint 2010, by default, ULS log is at      
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • REST Query to Get Content Type Name

    I'm just getting started learning to use the SharePoint REST interface.  One of the first things I'd like to do is return the content type name for a list item in a document library (the document library is configured with several content types).  From
    what I've read, it looks like I need to use the $expand query option.  So, my REST query looks like this:
    http://localhost/_api/web/lists/Documents/Items()?&$select=ContentType/Name&$expand=ContentType/Name
    But it's not working.  I can't "dig" out the content type name property.  In other words the $expand query option is not working.  I just receive the following which includes a link to the content type: 
      <entry m:etag="&quot;2&quot;">
        <id>4078e129-ac4b-44b8-b469-bcc083f2268d</id>
        <category term="SP.Data.DocumentsItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
        <link rel="edit" href="Web/Lists(guid'cd710fd1-057e-4ee7-b0bd-1f014218ea3e')/Items(36)" />
        <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ContentType" type="application/atom+xml;type=entry" title="ContentType" href="Web/Lists(guid'cd710fd1-057e-4ee7-b0bd-1f014218ea3e')/Items(36)/ContentType"
    />
        <title />
        <updated>2013-04-12T00:16:26Z</updated>
        <author>
          <name />
        </author>
        <content type="application/xml" />
      </entry>
    I've tried difference variations and if I just use "$expand=ContentType" then I get all the list items with the content type fully expanded within each item.
    What am I missing?

    It's been awhile since this question got asked, but I figured i'd post for anyone who happens to stumble
    on it.
    Try this:
    http://localhost/_api/web/lists/Documents/Items(<item
    id>)/ContentType?$select=Name

  • The password for the account "account name" was not changed. Your system administrator may not allow you to change your password or there was some other problem with your password. Contact your system administrator for help.

    I have a user who's Active Directory password is going to expire. I had her reset her password by going to apple > system prefs > user > and clicking change password. She received the error "The password for the account "account name" was not changed. Your system administrator may not allow you to change your password or there was some other problem with your password. Contact your system administrator for help."
    I had her change her password via the kpasswd command in terminal and that changed her password on the server sucessfully however the laptop has FileVault on it. Filevault is not recognizing the new password just the old password.
    I have deleted the keychain which didn't resolve and now I am going to decrypt and reencrypt the drive. I'm hoping this is an isolated issue I have over 25 laptops configured like this.

    I "think" the trick was unbinding and rebinding the computer account.
    After unencrypting and trying to reencrypt Filevault would still not take the new password.
    Rebooted the prompt to update the keychain appeared. Updated the keychain. Filevault would still not take the new password.
    Unbinded and rebinded the computer account. It worked and let me add the user to filevault.

  • How do i edit content type name or remove in applications panel

    how do i edit content type name or remove the name in applications panel.In the App panel the name is Winrar zip Archive. when i try to download rar file is all way ask me what to do.when i download zip file is save the files.I would like to add rar to the Applications panel

    The MIME Edit extension for Firefox 3.0 - 3.7 versions is available here:
    http://space.geocities.yahoo.co.jp/gl/alice0775/view/20080912/1221150790
    The developer who updated that extension is from Japan, and that website won't be completely readable if you don't have the correct language package installed.
    You can download it directly from this link and save it to local disk.
    http://space.geocities.jp/alice0775/STORE/mime_edit-0.601004242000.xpi
    Then use File > Open File... to install that extension.

  • HT4236 edited event name will not change on iPad

    I edited the spelling of an event name in my Iphoto App., but it will not change  after syncing with my Ipad.
    I tried deselecting the event and then sync the Ipad to delete the event on the Ipad. Then I selected the
    edited event and then synced the Ipad again. But the spelling of the event name did not change.
    Any Ideas?

    Oh yeah I have synched several times. I have PC with VISTA.  I think it has something to do with some titles being READ ONLY or something like that.  I need to find how to make them writeable.  No changes work on about 20 titles, the artist name? Genre? NOTHING will sync.  After sync all changes work fine accept for that 20 or so. titles just won't budge. every time.  If I go look on I tunes my changes are still there, just don't sync to Itouch.  It not the end of world but the more I upload the more I come across this.  I have about 900 full albums and maybe 20 is all that's doing it.   

  • " plug-in name does not support the highest level of security for Safari plug-ins" appear for some plugins in Safari Security "Manage Website Settings"?

    Hi,
    Wondering why "<plug-in name> does not support the highest level of security for Safari plug-ins" appear for some plugins in Safari > Security > "Manage Website Settings"?
    Have been trying to get to the root cause of the problem but did not find much on this. I am trying to figure out what can get the warning to go away completely than using the Allow/Always Allow options for the plug-in
    Thanks,
    Shyam

    Hi Linc,
    Thank you for your response. Here is the screenshot of the warning that I am talking about.
    Here is what I do:
    1. Launch Safari and open its Preferences. I have Safari 7.1 installed on my machine.
    2. Click Security Tab and click Manage WebSite Settings
    3. A window opens showing me all the Plug-ins that I have (listed on the left hand side).
    4. One of them is the Adobe Reader plug-in. When I click Adobe Reader, the following details about the plug-in show up on the right
    I was referring to the highlighted section that warns me about this plug-in not using the highest level of security for Safari Plug-ins.
    Note: I do not see this for all my plug-ins (QuickTime, Adobe Flash Player don't give me this warning) which tells me that there is a way to make the warning go away.
    Thanks again,
    Shyam

  • Can not change the control level of item attribute "Inventory Asset Value"

    I can not change the control level of the item attribute "Inventory Asset Value" from Master Level to Org Level. It's show me the message "FRM-40200: Field is protected against update".
    Version is below:
    Oracle Application: 10.7SC
    Form: INVIDCTL 6.0.26

    I did a trace when I chage the control level. the SQL is below:
    SELECT COUNT(*)
    FROM CST_ITEM_COSTS CHILD
    , CST_ITEM_COSTS MASTER
    WHERE MASTER.INVENTORY_ITEM_ID = CHILD.INVENTORY_ITEM_ID (+)
    AND MASTER.COST_TYPE_ID = 1
    AND CHILD.COST_TYPE_ID (+) = 1
    AND NVL(MASTER.ITEM_COST,0) != NVL(CHILD.ITEM_COST (+) ,DECODE(MASTER.ITEM_COST, NULL ,0,-99999))
    AND MASTER.ORGANIZATION_ID IN (SELECT MASTER_ORGANIZATION_ID
    FROM MTL_PARAMETERS
    WHERE ORGANIZATION_ID != MASTER_ORGANIZATION_ID )
    AND CHILD.ORGANIZATION_ID IN (SELECT ORGANIZATION_ID
    FROM MTL_PARAMETERS
    WHERE MASTER_ORGANIZATION_ID = MASTER.ORGANIZATION_ID )

  • Changed content type (DDOCTYPE) is not visible in GUI

    Hi,
    I have strange problem. I made configuration import from other UCM machine (content types, metadata, security groups and so..). After import I checked it - I have my security groups there, I have my metadata there, but I DO NOT HAVE there my content type (in drop down box there are only couple of preinstalled content types - Acme xxx Department...). I have checked in the admin applets -> configuration manager and my added content type was there (among the 'Acme ....' preinstalled content types). I even deleted those 'Acme....' content types to be sure that only my one is there. But in the search gui there is still drop down box with 'Acme...' types and my own is missing there.
    Strange because I do not know why it shows content types which have been deleted and are not in database anymore. I checked the database and in the table DOCTYPES there is only my own content type.
    Can anybody give me som hint? I tried restarting servers, clearing browser's cache, but still without success.

    Hi. I tried it, but it did not help. :(
    It is strange. Before I had the error in log:
    Unable to rename '/appl/ucm_cluster/server/weblayout/resources/schema.work' to '/appl/ucm_cluster/server/weblayout/resources/schema' while publishing schema.
    When I looked into the 'schema' dir there was old doctypes in js file
    In 'shcema.work' which was supposed to be renamed to 'schema' there was my correct document type in js file.
    Now in /server/weblayout/resources/schema/views/doctypes/all.js file there is only my correct document type but i still have in gui the old wrong doctypes! :(

  • Link to Document Content Type issue - links not relative

    I'm using the Link to Document content type in a library in order to link to documents in other libraries.  We just migrated to 2010 from WSS 3.0 (2007) and are having an issue.  We view our site internally thorough the internal machine address/name
    and also have users connecting remotely from an external url.  In 2007, it didn't matter whether we were internal or external, all links were apparently stored as relative because the "link to document" items worked fine either way.  This
    was despite entering the url fully and not relative.  When viewing/editing the properties of that item, it shows you the full url applicable to where you are viewing it...internal if internal, external if external.  
    However, after the migration to 2010, all links that existed previously are fine, but any new items created using link to document apparently no longer store them as relative so either the internal or external users get the wrong link.  For example,
    if I put in the link as http://servername/library/doc the external users get that same link and it doesn't work, since it should be like https://myurl/library/doc.  Viewing/editing the properties of the item shows an absolute url of whatever location
    the item was added.  For instance if I'm connected externally and add an item, even if i only enter it as relative, it creates the link as https://myurl/library/doc and then the internal users end up having to connect via that url and that is just a pain
    due to AD and certificate issues.  The internally created links are obviously not accessible at all from the outside. 
    I've also tried storing the link as relative when creating the item but it seems to overwrite it with the absolute link.
    This is causing quite an issue with us.  Does anyone have any insight as to what is going on and how to fix it?
    thanks!

    Hmm...I thought I had the thread set to email me if there were replies and I never received an email so I thought there were no replies.  I came back to this since another issue cropped up that is related and there were replies!
    I cannot recall how things were set up exactly in 2007 and there's no way to look back now.  I'm a novice when it comes to AAM/DNS/IIS really.  Maybe you can suggest what it should look like?
    We have our site which is accessed internally by http://machinename .  Externally, we use https://sharepoint.mydomain.com .   
    In AAM we have http://machinename listed in the default zone with the same url for internal and public.  We also have https://sharepoint.mydomain.com listed, in the internet zone and it also has the same url for both internal and public.  
    In IIS, the sharepoint site has bindings for port 80 and 443, but nothing specific to https://sharepoint.mydomain.com
    DNS....I'm not sure what should be here, if anything.  
    We can access the site just fine externally, there are just a few instances where some links do not work correctly and point to the internal url instead of external when you are external.  The original post is one time and the other, found the other
    day, is a search box webpart that points to a relative url for the results page but externally it ends up going to the internal url.
    I'd appreciate any guidance.  Thanks!

  • Setting up an external content type without having to change it to NTLM authentication?

    Referring to: https://www.kenplaysviola.com/content/sharepoint2010-business-connectivity-path-unavailable
    and tested to be true. However, I have a site that I am not using NTLM - is there a way around this??? 

    Hi,
    Based on your description, my understanding is that you can’t 
    set up an external content type with Basic authentication web application.
    What errors have you got?
    I have done a test in my SharePoint, when I opened Basic authentication site with SharePoint Designer, I got an error
    ”Access to this web server is disabled by default because it is controlled by basic authentication and doesn't use SSL…”.
    But I could create an External List in the Basic authentication site successfully. I set up an external content type with NTLM authentication site. Then I created an External List in the Basic authentication
    site which referred to the existing external content type, it worked fine.
    So if you don’t want to change your web Application to NTLM authentication, try to create another web Application with NTLM authentication, then create a site collection and create an external content type,
    last create an External List in the Basic authentication site referring to the existed external content type in NTLM authentication site.
    Also, here is a blog about 
    Access denied by Business Data Connectivity, you can take a look at:
    http://blogs.msdn.com/b/ericwhite/archive/2010/06/11/access-denied-by-business-data-connectivity.aspx
    Best Regards,
    Lisa Chen

  • Update content type in list not working

    My list content type is not getting updated.
    I have a content type defined in a feature. I have created a new column and updated the feature definition and reactivated the feature.  I have also written powershell to check and update the content type with the new column.  The content type
    gets updated but not at the list level.  The powershell looks like this:
    Function UpdateContentType($contentType, $fieldLink)
    if ($contentType.FieldLinks[$fieldLink.Name] -eq $null)
    Write-Host Adding Field to content type
    $contentType.FieldLinks.Add($fieldLink)
    $contentType.Update($true)
    I thought the Update method was supposed to push the changes down, but it doesn't seem to be working.  This code does work in a different environment so I'm not what is going on.
    Caroline

    You will need to updated the list also, after updating the content type
    This is sample code how you update list which is using the Content Type.
    IList<SPContentTypeUsage> usage = SPContentTypeUsage.GetUsages(newsCT);
    foreach (SPContentTypeUsage item in usage)
    if (item.IsUrlToList)
    SPList list = rootWeb.GetList(item.Url);
    if (!list.Fields.ContainsField(firstName.InternalName))
    list.Fields.Add(firstName);
    list.Update();
    more information you can check at this link
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • Assign default content type to any library automactially when site get created or people add the library

    we are on on premise environment, and we have a requirement that when people create a site or a sub site or even when they add a new document library , we want to ensure our custom content type is assigned as default content type to this library.
    the question is that is there any non-full trust solution, i know we probably can do it via feature stapling, or custom site template stuff. but they are NOT considered as we want PLA compliance

    Hi,
    As I understand, you would like to asscoiate a custom content type to a library when the library is created.
    With OOB option, you could try add this content type to an existing library, and save library as template. Then the library template should appear in Your Apps page, that is to say, users can directly create document library based on this template.
    As I tested, new document library created based on this template contains custom content type by default.
    With programatically methods, please refer to the similar threads below:
    https://social.technet.microsoft.com/Forums/en-US/ec9e243b-ea4c-4a46-8780-75a3a5659164/mysite-add-content-type-to-document-library-by-default?forum=sharepointadminprevious
    https://social.technet.microsoft.com/Forums/en-US/e58eb107-daa5-4a51-a139-dca2b1cf8591/set-default-content-type-for-document-libraries-on-a-custom-site-template?forum=sharepointdevelopmentprevious
    Regards,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] .
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for

  • How do I add more RAM to my macbook pro 15 inch late 2008 model?

    I am wondering if I ma able to add more RAM to my 15 inch MacBook Pro from late 2008. It currently has 2 slots each with 2GB of RAM each. Am I able to change those out with higher amounts of RAM for each slot? Or is this thing maxed out and i'm out o

  • ITunes 9.0.3 "disk could not be read from or written to"

    Hi there, I'm using a MacBook (OS 10.5.8) and just recently downloaded iTunes 9.0.3 (15). Since then, I have not been able to properly sync any of my iPods: Classic 20GB (4th Generation), 2GB Nano (1st Generation) and a Classic 80GB (6th Generation).

  • How to pass value in Table import parameter of an RFC

    Hi all, I have an RFC in which import parameters are in the form of a table so now when i imported that RFC in my webdynpro application and Apply Service Template to it, it created the structure but when i applied form template to it all the inputfie

  • Reversal of the Invoice Verification Document

    Dear Freinds, The users are trying to do the reversal of the Invoice Verification Document, but the system gives the error message 'No Reversal possible, Reverse Value must be reset'. When we look at the diagnosis, it suggests that the qty is same bu

  • Tcode: FAKP - Payment advice fast entry

    Hi Abapers, I have a requirement  to customise the standard tcode: FAKP. requirement includes: 1. I need to add 3 fields from table: AVIP to possible fields section of FAKP tcode. Fields to be added are: Payment ref. no(AVIP-KIDNO), Deduction Amount