Unable to create a page content type
Add-PSSnapin -Name Microsoft.Sharepoint.Powershell
#$SiteURL = get-SPSite "http://srvr1:123/sites/ENGG/"
$w = get-spweb "http://sRVR1:123/sites/ENGG/"
$web = get-spweb "http://sRVR1:123/sites/ENGG/"
try
$cts = $w.ContentTypes
Write-Host "inside content types try block"
$spId = new-object Microsoft.SharePoint.SPContentTypeId("0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900DCED8380ADA44ABB8411D56976A5F491")
$spId
$ct = new-object Microsoft.SharePoint.SPContentType($spId,$cts,"BIFPageCT")
catch
Write-Host "error occured in creation"
Write-Host "going2 update web"
$w.Update();
#get all the ctypes from site collec
ForEach($ctype in $w.ContentTypes)
{ #write-host $ctype.Name": "$ctype.ID
if($ctype.Name -eq "BIFPageCT")
{ write-host $ctype.Name": "$ctype.ID }else { Write-Host "ctype not found" }}
I tried to create a new content type in my new site collec in my portal. but it failed to create.i have taken the content type id from my another site collc. where this content type is successfully created!
please help why i am getting content type not found error.
Hi,
We can use the following PowerShell script to create a page content type.
$spWeb = Get-SPWeb http://sRVR1:123/sites/ENGG/
$spWeb.AvailableContentTypes | Select Name
$parent = $spWeb.AvailableContentTypes["Page"]
$contentType = New-Object Microsoft.SharePoint.SPContentType -ArgumentList @($parent, $spWeb.ContentTypes, "BIFPageCT")
$contentType.Group = "My Content Type"
$contentType.Description = "BIF Page Content Type"
$spWeb.ContentTypes.Add($contentType)
$spWeb.Update()
$spWeb.Dispose()
Here is a blog for your reference:
http://www.microsofttechnology.net/2012/03/how-to-create-content-type-site-column.html
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]
Similar Messages
-
Rename columns of list created by external content type in share point 2010
Hi,
I want to rename columns of list created by external content type.
Please help to solve the issue.
Thanks in advance!
Regards
RajniHi,
Steps to rename column name:
Open external content type in SharePoint designer
click on “Operations Design View” from ribbon
select corresponding external content type operations
click on edit operation from ribbon
click next button to get the Return parameter configuration page
select the parameter and change the display name from the properties
Anandhan.S Remember to 'mark or propose as answer' or 'vote as helpful' as appropriate. -
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? -
Hi,
I'm new to SharePoint 2013 I want to be able to query a MSSQL database from a SharePoint App I have tried to create an External Content Type (ECT) which is produced from a MSSQL stored Procedure, this procedure has several parameters which are needed to
filter the data correctly. From here I want to produce an external list which I can then query from a c# SharePoint app. If I leave the filters in the ECT null then the list is of course empty or if enter a default values the results are limited
for the app to query so are no good.
I want to dynamically pass values to the ECT when querying from the app, is this not possible. Should I just be returning everything in an external list and then letting the query in the app filter the data, this seems inefficient?
Is this the best way to do this or should I be doing this differently?
Please can someone point me in the right direction.
ThanksHi Pandra801,
When you create a the external content type, please try to add a filter based on your select statement.
http://arsalkhatri.wordpress.com/2012/01/07/external-list-with-bcs-search-filters-finders/
Or, try to create a stored procedure based on your select statement, then create ECT using the SQL stored procedure.
A step by step guide in designing BCS entities by using a SQL stored procedure
http://blogs.msdn.com/b/sharepointdev/archive/2011/02/10/173-a-step-by-step-guide-in-designing-bcs-entities-by-using-a-sql-stored-procedure.aspx
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
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 -
File created with Document Content Type will not be saved back to Sharepoint library
Recently some of our users, after upgrading to Windows 8.1 with Office 2013, intermittantly are not able to save files created using document content types template back to sharepoint library. Instead the location is set
to their local storage. The same templates used by Windows 7 users with Office 2010 are working fine. Setting the SP sites as Trusted location in IE and Clearing IE Cache did not help. Adding the SP site in Word Trusted Location did
not help. Any suggestions how this can be resolved is appreciated. Thanks.Hi,
According to your post, my understanding is that you could not save office file back to the SharePoint Document library.
It may have to something with your Word Settings. When you click new and it opens in MS Word, word treats it as unsafe because perhaps it is not saved. To make it work:
Go to Word (2013) -> File Menu -> Options -> Trust Center -> Trust Center Settings
-> Protected View Tab -> Uncheck "Enable Protected View for files located in potentially unsafe locations" (2nd option)
Here is the similar post, you can take a look at:
http://blogs.interfacett.com/word-2010-not-saving-back-to-sharepoint-2010-by-default
If the issue persist, 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
Best Regards,
Lisa Chen
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] -
SP 2013 ECT - Created an External Content Type in SPD But Not Appearing in BCS
Hello Community,
I have created an External Content Type in SP Designer 2013, and the connection and operations all seem to work fine, but the ECT List throws an access error, and when I check the BCS Service Application the ECT doesn't even appear in the list. Has
anyone else ever seen this kind of problem and if so please brovide guidance and examples for resolving it.
Thanks!
Tom
Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award -
Linked-In - SharePoint GypsyHi Tom,
Have you created external content type from SharePoint designer 2013 successfully prevously?
And was it displayed in BCS service applicaiton previously?
Have you executed "External Content Type Operations" and saved it back successfully in SharPoint Designer like the following article?
Please check if it is related to the permission issue by using SharePoint Farm Administrator account to create this external content type.
If all above don't solve the issue, please check the ULS log for more information for troubleshooting when create the external content type.
http://www.c-sharpcorner.com/UploadFile/anavijai/create-external-content-type-using-sharepoint-designer-2013/
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 -
I am trying to create an external content type for a specific list. The problem is that there are so many columns (more than 200) that I get the error:
The operation(s) generation creates an SQL query which exceeds the length limit in Business Data
Connectivity Metadata Store. The operation(s) will not be generated. Recreate
the operation(s) with less number of columns in the configuration.
I tried turning off a dozen columns and I am still getting this error. I am nearing the limit of the "extra" columns I can eliminate.
What is the actual limit on number of columns?
Thank you.Hi,
From my research, it seems to be the limitation in response TTL and response size. To confirm
it, would you please check the detailed errors logged in ULS log? <o:p></o:p>
If you identified the threshold has be reached, you may follow this link to increase
the threshold according to your business requirement.<o:p></o:p>
http://blogs.msdn.com/b/bcs/archive/2010/02/16/bcs-powershell-introduction-and-throttle-management.aspx
Miles LI TechNet Community Support -
Meaning of "Map To Identifier " while creating an External Content Type
In SharePoint 2010 Desginer, I created an External Content Type that retrieves data from a VIEW in SQL Server. In the wizard, I see "Map To Identifier." What is the purpose of that. I want to understand the meaning of Map To Identifier? Thank you.
MayankHi Mayank,
When we create database-based external content type, we could map the data source element to an identifier of the related external content type as input to the association.
In the Data Source Elements pane on the left side, select the data source element in the list. In the
Properties pane on the right side, select the Map to Identifier check box. In the
Identifier list, select the appropriate identifier.
The database object name is referred to as its identifier. An object identifier is created when the object is defined. The identifier is then used to reference the object.
http://msdn.microsoft.com/en-IN/library/ms175874.aspx
We map the field of the external content type to the identifier of the external content type.
http://msdn.microsoft.com/en-us/library/office/ee558417(v=office.14).aspx
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 -
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?
-
Unable to create a Site Content in Web Page Composer
Hi All,
I am new to WPC and would like to explore more on the same. I tried following some blogs inorder to create and publish Web Pages.
I was stuck at a point where we need to create a site content. I guess all the permissions required to access each folder is properly set.
When I tried to create a content like for example an article... A window pops up which says please select a document type and I dont have any option to select whereas I have a cancel and next button at the bottom of the screen. When I click next nothing happens.
Did anyone went through this issue? What am I doing wrong? Did I fail to set some role to the author creating content?? Author has wpc_editor_role though.
Regards,
Rekha MalavathuHi Sandeep,
The popup window (which I suppose is an XML Editor) doesnt have any UI Element to select when I try to create any content... may it be an Article, Linklist, etc...
I am using WAS 2004S SP 14. As I mentioned, all the xml and xsl files are available in the folder and even in the KM Configuration.
My problem is, I am unable to create a content as the popup window is blank... No UI Element to select or enter.
Regards,
Rekha Malavathu -
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
ThanksHello 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. -
Error while creating an external content type using wcf service.
Hi!
I have been asked to create a wcf service to expose sql data and populate them in a list using external content type.i have created the service but while creating the content type it gives me error. Can anyone suggest me about which url should
be used in service metadata url and service endpoint url.
Thanks in advance.You can refer these links, may be helpful
https://msdn.microsoft.com/en-us/library/office/jj163810.aspx
https://msdn.microsoft.com/en-us/library/office/gg318615(v=office.14).aspx
http://www.dotnetcurry.com/showarticle.aspx?ID=799
http://www.c-sharpcorner.com/UploadFile/Roji.Joy/connecting-to-a-web-service-using-business-connectivity-serv/
Thanks
Ganesh Jat [My Blog |
LinkedIn | Twitter ]
Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful. -
i m trying to create login page for oracle adf (HTML) but while compile the application i am getting below error message
[01:58:01 PM] ERROR: Unable to create user "oracleadf". Reason: MBean invoke failed: weblogic.management.utils.InvalidParameterException: [Security:090282]password cannot be null
i m using below reference
http://www.youtube.com/watch?v=C14FmuhTt8I
please help me out.Hi arun,
yes i provided but i found one strange this,
when i entered my password in password then in the confirm password field.
then confirm password field get frezzed then i click on save button after that both the password field get null automatically. -
Create BCS External Content Type or a list based on a WCF Web Service using Visual Studio
Hi ,
How to create a BCS External Content Type or a list Based on a WCF Web Service using Visual Studio.
The link provided here shows the requirement through Designer. http://msdn.microsoft.com/en-us/library/office/ee556431(v=office.14).aspx but I want this to be through VS code..
Please help ..Appreciate your help..
Thanks,
SatheeshHI Sateeshlt,
You can see the below link also;
http://www.fabiangwilliams.com/2013/10/14/part-2-of-3-blog-update-on-sharepoint-bcs-with-full-crud/
Best Regards,
Brij K
Maybe you are looking for
-
I used to be able to drag the video clips in to my external hard drive once importing them with the older version of iMovie. Now I'm unable to do so with the newest version. How do I backup my video clips with the newest version of iMovie?
-
Trace the variable in the peoplecode called by iScripts
Hi, Do you have the experience on tracing the variable value of the peoplcode in iScript ? Which peoplecode trace setting options i need to select ? I want to trace the some HTML variable in the method called by the iScript method. I used most of t
-
I want to replace my classic with a touch.
I am pretty much useless with tech. I have a 80g ipod classic and want to buy a new 64g touch. When I do this will I just be able to hook up my new ipod to itunes and sync my existing library. Also will my old itunes purchases of music and video be a
-
All, Can someone guide me the best practices test scenarios for a Tyipcal BW on HANA projects ?. I need some information like why do we need to testing ? How does it help executing testing for BW on HANA ? What are the test scenarios ? Thanks, HA
-
Song I bought off I-tunes has a skip in it.
I bought a song off itunes that had a skip in it can someone help me to figure out how to get a refund on it?