Updating Content Type Failed
I'm fairly new to Sharepoint and Infopath. I hope someone here can help me.
I have a large Infopath form with ~90 fields on it. When I try to publich to the server, I get "Updating [or Creating] Content Type Failed".
I determined this to be due to the number of fields and some sort of time out issue with Infopath. I have seen a few other posts on that and the only solution I've seen is to publish with fewer fields - that does indeed work, but it doesn't solve my problem as I need all of these fields.
I've also seen a solution to publish with fewer fileds successfully and then republish with all you need and that the "Failed" message won't matter. Kinda true, but then I have an issue with it no longer opening in browser.
So then, I tried publishing it to my desktop and uploading it through Central Admin, activating it to a site collection, and using it that way. That actually works the best so far, but then I get no option to select my Parent Content Type - it just picks "Form" - and that also doesn't work for me. I need to select Parent Content Type
Then, I tried to Create a new CT from scratch and point it to the form template I recently uploaded. I get to pick my parent and all, but none of the promoted properties are there, so they don't show up in my workflow, and that's the end of that route.
Now, I am out of ideas (but you can't say I didn't try)
Anyone out there have any suggestions that could help me?
Thanks
We were running into a similar issue where ~90% of the time the publication of a complex InfoPath form would fail. It looks like a timeout issue with the webservice, but it's hard to say. We came up with a different approach that seems to have solved the problem for us. I just posted details on my blog (http://acuffgroup.com/2009/01/21/tip-for-publishing-infopath-form-to-sharepoint-library/) but the summary is: don't have InfoPath re-create the columns on each publish event. Rather have it connect to existing columns, which you can specify in the publishing wizard. This change fixed our issue and looks like it's going to save us a lot of time moving forward. Check out the post and leave a comment if this helps, or if you've got other insights you can add.
Similar Messages
-
I've got a content type hub in my SharePoint 2010 environment. I've updated a content type on the hub and now when the timer job for the content type hub runs I'm getting a lot of messages like this one:
A content type failed to be syndicated: Microsoft.SharePoint.SPContentTypeReadOnlyException: The content type "Site Request"
at "/sites/sitename" is read only.
at Microsoft.SharePoint.SPContentType.Update(Boolean updateChildren, Boolean ignoreSealedOrReadOnly, Boolean throwOnSealedOrReadOnly, IList`1 exceptions)
at Microsoft.SharePoint.SPContentType.Update()
at Microsoft.SharePoint.Taxonomy.ContentTypeSync.Internal.SubscriberImport.UnshareContentType(SPContentType contentType, Boolean previousReadOnlyValue)
at Microsoft.SharePoint.Taxonomy.ContentTypeSync.Internal.SubscriberImport.UnshareContentType(String contentTypeIdString)
at Microsoft.SharePoint.Taxonomy.ContentTypeSync.Internal.Subscriber.SynchronizeSite(TaxonomySession session, TermStore termStore, MetadataWebServiceApplicationProxy proxy, SPSite site, Guid rawPartitionId, DownloadedHubData downloadedHubData, SyndicationResult
result, SiteStatus& siteStatus)
There haven't been any updates made to the content types for quite a while. So this issue might have occurred since the latest SharePoint updates were installed.
To me it sounds like this could be a permission issue but I can't see an issue with the permissions.Hi Pieter,
Thanks for the sharing the information.
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Update content type template for existing sites in sharepoint 2010 ?
Hi,
I created one custom document library (list definition) and associated 3 content types which has docment template path (\_layouts.template1.docx). I rollout nearly 200 sites with this definition. now i want to update my document template and also i want
to change template docx to dotx.
what is the best approach to apply these changes for existing sites ?
Thanks,
Surya.
suryakumarpHi suryakumar,
As I understand, you want to update the template
for existed content type.
It can be achieved by programming. There is a
SPContentType.DocumentTemplateUrl Property, which can be used to update content type.
Here is a demo:
http://officepoint.blogspot.com/2008/06/sharepoint-relink-infopath-forms-relink.html -
Error : External Content Type Failed to SAVE
Hello All,
Im trying get connect the sqlserver tablt to Sharepoint List using BCS services + Sharepoint Designer.
i have created the external content type using SPD, creating all permission to table, operation properties, parameter, filter parameter every thing is fine.
then here i have to SAVE the external content type, im getting error: External Content Type Failed to SAVE
detailed Error:
An unexcepted internal error occured in the Business Data Connectivity Sahred Service: Access to the temp directory is denied. identity 'NTAUTHORITY\NETWORK SERVICE' under which xmlserializer is running does not have sufficient permissions to access the
temp directory. CodeDom will use the user account to process is using to do the compilation, so if the user doesnot have access to system temp directory, you will not to be able to compile. Use Path.GetTempPath() API to find out the temp directory location
Before this i created sample external content type which is working correctly. Any suggestion regarding this..
Advance thanks..
NSHi,
I understand that when you save the external content type, there is an error.I have seen similar errors, you can try the steps below:
Open C::\Windows\Temp.
Right click on Temp folder and choose Properties>Security.
Add the Network Service with Full Control permisison.
Thanks,
Entan Ming
Entan Ming
TechNet Community Support -
Creating the site content type failed when publish Infopath form to Sharepoint 2013
I have an InfoPath 2013 form trying to publish it to SharePoint 2013. When I click on publishing an error message appears stating "Creating the site content type failed". I can't figure out why this
is happening, any help on this one?
Also it appears the form template is uploaded when I go to the library settings under advance. When I see the .xsn file and click on it, it opens in InfoPath but not in sp.Rettajm, could you please find any errors in ULS?
-
Update content type definition in sandboxed solution
In my web application I am using a content type hub. The content type hub contains a sandboxed solution which contains several content type and column definitions like this:
<ContentType>
<FieldRefs>
<FieldRef ID="" Name="" />
</FieldRefs>
</ContentType>
<Field ID="" Name="" />
Now I need to update a content type definition by adding a new column. In my content type definition in Visual Studio I added the field refence to the column and build a new WSP.
I am updating the sandboxed solution with PowerShell. First I add the new solution:
Add-SPUserSolution -Site $url -LiteralPath $newSolutionFile
Then I update the old solution with the new:
Update-SPUserSolution -Identity $oldSolutionName -Site $url -ToSolution $newSolutionName
The old solution is deactivated and the new solution is activated, so the update did go well. But when I go to see the content type, it's not updated. The newly added column did not get added.
When I manually deactivate the newly added sandboxed solution and activate it straight away the content type does get updated. So it looks like the Update-SPUserSolution command does not update the content type and column definitions.
Does anyone has experience with updating content types with the Update-SPUserSolution command?Hi,
Please check the link below.
http://msdn.microsoft.com/en-in/library/ff798382.aspx.
you can use the Update-SPUserSolution command
in Windows PowerShell to upgrade your solutions. However, this requires access to the server environment, which is not necessarily available to sandboxed solution developers or site collection administrators.
Please remember to click 'Mark as Answer' on the answer if it helps you -
Updating Content Type from other metadata field
Hi.
In the process of creation of metadata fields a customer use a custom metadata field called 'class' to define what type the content are. The field Content Type was leave untouchble. Now they have tons of content in the same folder inside vault cause content server uses the metadata content type to create vault subfolders. What is the best way to eliminate the field class, transporting the metadata to the correct field content type and mantain the correlation of the links to the native files and weblayout files of the content? If I just update the column content type with the data in column class I believe that willl be a mess of broken links. Can anyone suggest anything?
Thank you!Hi there,
Thought i could not comprehend all that you want, I could get that you have problem with a meta data filed.
Instead of using "Content Type" earlier contributors used "class" and now you want to chagne the "class" field with appropriate value of "Content Type".
This can be done provided the original "class" type was used intellegently by using following steps
1) depending on various values of class(e.g. all document for which class=A) created exports using archiver, also deleted them same time.
2) Import the archiver created in step one and prove an input map for the "class" field to appropriate value as "Content Type"(content type =B)
In this way all content items with class=A would be converted into content type=B.
Hope that helps you.
regards,
sapan -
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.
CarolineYou 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. -
How to update content types enheriting from the System Page Content type
After importing a design package I found out that my content types was missing some columns. I could add the missing columns to my "page" and "Article Page" site content type. When adding the exisiting columns I could choose to update
everything that inherits from this type:
This is working. However I still miss 2 columns in the "Page" Content type:
1. Rollup Image
2. Hide physical URLs from search
If I roll back my dev environment I can see that these are inherited from the "System Page" content type which is not editable. The columns are in the "System Page" content type but They are gone in "Page" content type that
should inherit the columns.
So how do I update these?
ThanksHi Alex,
Thank you for replying. I totally agree with you regarding not to modify the OOB content types. The content types I have created/modified is also my own "new" content types.
However the designpackage import messed up the OOB content types somehow so I'm only trying to get back to the state before the import. The only thing I see is still missing is the two previously mentioned columns in the "page" content type.
Do you have any other suggestions in how to get back to the "OOB State"?
Thank you
Update: this is my page content type. It's not set to read only so it should update the last two missing columns from its parent (system page content type) right? -
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 Ranahttp://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 -
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 RavalHi 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 -
Unable to update available content types on SPContentType.Name
Updating content type.name property does not reflect in web.Availablecontenttypes.
cTypeToBeModified.Name = "IXT_D";
cTypeToBeModified.UpdateIncludingSealedAndReadOnly(true);//since content type is read only
web.Update();
This is specific to Chinese traditional environment -
- English Win2k8 Std R2
- Traditional Chinese MUI deployed
- English SQL 2008,
- CHT SP 2010 Server STD SP2
Any ideas on this?
shwetankHi,
I did a test with the code below and it works properly, please refer:
SPSite site = new SPSite("http://sp/sites/mysite");
SPWeb web = site.OpenWeb();
SPContentTypeId id = new SPContentTypeId("0x0104");
SPContentType type = web.ContentTypes[id];
type.Name = "Announcement2";
type.Update();
Console.Write(web.AvailableContentTypes[id].Name);
More information about Update method of SPContentType for your reference:
http://msdn.microsoft.com/en-us/library/ms472234.aspx
Feel free to reply with the test result if the issue still exists.
Best regards
Patrick Liang
TechNet Community Support -
Content Type Publishing - Limitations?
Hi,
I am running into some problems with the Content Type Publishing in SP2010.
As background:
We have a farm with two SharePoint servers - one as WFE and one as App server. A third shared SQL cluster hosts our databases
we are on SP2 for SP2010
We have Project Server 2010 also installed, also on SP2
We have 3 web applications - one as our Content Type hub, and two consuming web apps (http://content, http://epm and http://scm).
The EPM Web App hosts our biggest site collection - roughly 150GB in size, and about 1900 sub webs
Our content hub hosts around 450 content types
We seem to have a problem with the sync never finishing. We are not sure how long this has been the case - we only recently noticed it while trying to apply some changes to the Content Types.
the timer job gets to 5% and then stays there "Running".
I am not even not sure how to monitor for errors in the ULS logs - I cannot seem to find the source for this. Its also difficult to enable Verbose logging for the entire time that it is running as it takes so long and causes our drives
to run out of space.
The question is, I suppose, does anyone else have experience in large situations like these? Are we perhaps running into a limitation? Is there anything that we should, or should not, be doing?
Thanks!
http://blogs.umtsa.co.za/nicooHi,
Please try using PowerShell to update content type hub subscribers per the link below:
http://blogs.msdn.com/b/aaronsaikovski/archive/2010/08/26/updating-content-hub-subscribers-using-powershell.aspx
If it still doesn’t work, please try alleviate the workload of timer job. You could update one web application one time, see if overburden causes the issue.
Or you could remove or unpublished most of the content types and see if that will make any difference. See the script below:
function f($ct)
try
$site = new-object Microsoft.SharePoint.SPSite "http://sps/sites/hub"
$ctpub = new-object Microsoft.SharePoint.Taxonomy.ContentTypeSync.ContentTypePublisher($site)
$site.rootweb.availablecontenttypes | foreach-object{if($_.name -eq $ct){$ctpub.unpublish($_);write-host $_.name; write-host $ctpub.IsPublished($_) }}
catch [Exception]
Write-Host "Issue"
Or you could turning off the subscription of the consuming site collection, i.e. because some site collections have many subsites. Test the command to disable the feature “disable-spfeature taxonomyfieldadded -url http://....” before.
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 -
Error after updating field and content type
Hi,
I have a feature with a custom list and content type.
I changed one field type from Text to Note, and made the same change in my Schema.xml file.
But after deploying I get an error when I visit my list.
"The file name you specified could not be used. It may be the name of an
existing file or directory, or you may not have permission to access
the file".
I have several sites with the same list, and all gives the same error.
What I understand from the ULS logs it can't find my schema file, but when I look at the 14 hive it is there.
ULS
Failed to open the file 'schema.xml'.
Failed to retrieve the list schema for feature {4D3315CB-7F20-4DB3-9CB3-258AC110F9BC}, list template 21973; expected to find it at: "".
Any ideas about how to fix this?
The text expected to find it at: "" can be the problem as I have my schema file in a folder named Correspondence List.
And in the 14 hive I find the schema at 14\TEMPLATE\FEATURES\my feature\Correspondence List\Schema.xml
This is from my manifest file:
<ElementManifest Location="Correspondence\Elements.xml" />
<ElementManifest Location="Correspondence List\Elements.xml" />
<ElementFile Location="Correspondence List\Schema.xml" />
Any help are appriciatedHi,
Any update?
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Hi
how to create a external content type for Read and Update data from two tables in sqlserver using sharepoint designer 2010
i created a bcs service using centraladministration site
i have two tables in sqlserver
1)Employee
-empno
-firstname
-lastname
2)EmpDepartment
-empno
-deptno
-location
i want to just create a list to display employee details from two tables
empid firstname deptno location
and same time update in two tables
adilWhen I try to create an external content type based on a view (AdventureWorks2012.vSalesPerson) - I can display the data in an external list. When I attempt to edit it, I get an error:
External List fails when attached to a SQL view
Sorry, something went wrong
Failed to update a list item for this external list based on the Entity (External Content Type) 'SalesForce' in EntityNamespace 'http://xxxxxxxx'. Details: The query against the database caused an error.
I can edit the view in SQL Manager, so it seems strange that it fails.
Any advice would be greatly GREATLY appreciated.
Thanks,
Randy
Maybe you are looking for
-
I purchased and install MAC from app store. How do I download Mac OS X lion that I purchased?, I purchased and install MAC from app store. How do I download Mac OS X lion that I purchased?
-
I have a af:table with editingMode="eitAll' or even "clickToEdit" but it does not let me edit the cell in the Table. Any Thoughts please
-
Canon 350d cr2 supported?
Hi all. I have Aperture 1.5 currently shipping but noticed something odd in the 'supported camera raw' page. Within it has an asterix next to Canon XT that's supposed to meaning 'providing optimized support' but not the 350d. Anyone know exactly what
-
Hello Forum, in the cf8-Administrator I can configure a SMTP-Server with Username and Password for sending Mails via CF. Is there a way to connect to a simple Mail-Account with pop..... and smtp.... , because I don't want to administrate a mailserver
-
Following recent Firefox update, I keep getting the following Java message each time I attempt to download a file, - Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWindowsRegKey.op. Following a click on the off cross, it then allo