Error on creating a subsite from custom template with full control

I have a site collection and a subsites A and B on it, there is a group 'Managers' that has Read permissions on
site A. This group has Full control permissions on site B, and I have a solution with custom site definition, lists and feature event receiver that breaks permissions for certain list and sets Read permissions for group 'Visitors'. This list
is being created when site was created by my custom site definition. But when I try to create a site from this template I get 'Access denied'.  I checked logs, and they say that site was created, every method in my receiver is executed without errors
but later I see messages about deleting this site. But if I am a
site collection admin everything works. And another fact is that if I create site without activating feature with event receiver and after creating site I
manually activate the feature everything works fine. Any ideas?

Hi,
For a better troubleshooting, I suggest to do as follows:
1. Rescope your features so that web application related activity are performed by a web application scoped feature.
2. Disable the security setting  via PowerShell or a console app.
function Set-RemoteAdministratorAccessDenied-False()
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") > $null
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") > $null
# get content web service
$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
# turn off remote administration security
$contentService.RemoteAdministratorAccessDenied = $false
$contentService.Update()
Set-RemoteAdministratorAccessDenied-False
Best regards
Dennis Guo
TechNet Community Support

Similar Messages

  • Occurs error when create purchase req. from product order with 'PP02'

    hi,friends.
    when i add a route with 'co02', and select control key 'pp02',
    then it leave to the view of 'Ext. Processing',
    i input the values of 'Cost Element' 、'Purchasing Group' 、'Material Group'....
    and the value of 'Res./Purc. req.'  is  '3',
    but when i return,it shows the error:
    Error occurred during creation of purchase requisition for operation 0050
    Message no. C2325
    Diagnosis
    During automatic creation of the purchase requisition to operation 0050, an error (ME 673) occurred.
    System Response
    The system cannot create the corresponding purchase requisition.
    Procedure
    For further proceedings, read the long text of error message (ME 673) in transaction SE91. Check the operation affected and change or complete any missing data that led to the error message.
    double click the route,goto the view of 'Ext. Processing',
    and the value of 'Res./Purc. req.'  changed  to  '2',
    why?
    and the purchase request isn't be created.

    thanks for K.Madhu Kumar
    the value of Res./Purc. req. be changed to '2'
    so the purchase requisition con't be created.
    if i Release the production order,it will be created,
    and the item cat. is null, the acct assgt cat. is 'F'
    Edited by: tizo lee on Jul 20, 2010 5:11 AM

  • Error while creating subsite from site template

    Hi,
    I am getting below error while creating subsite from existing site template .
    Sachin Bhosale

    There must be a duplicate Email field created in any list/library. The cause can be identified by renaming the site template to sitename.cab > extact the cab file > open the manifest file search for email and see where it is associated. Refer
    to the following blog post for more information
    http://sharepointserved.blogspot.com/2012/11/a-duplicate-name-was-found.html
    http://sharepoint.stackexchange.com/questions/11944/error-when-creating-a-site-from-custom-template-a-duplicate-field-name-name
    Cheers,

  • Getting error while creating subsite using custom template in sharepoint2013

    Hi,
    I am getting the following error while creating subsite using custom template in sharpoint2013. even publish features are enabled.
    Please suggest me on this.
    Thanks in advance.

    You need to enable the PerformancePoint Service Site Collection Features(PPSMonDatasourceCtype)
    on the target site collection. go to site action > site settings> site collections features > and enable it and now try again.
    Similar case: http://imughal.wordpress.com/2012/09/20/dependency-feature-ppsmondatasourcectype-id-05891451-f0c4-4d4e-81b1-0dabd840bad4-for-feature-bicenterdataconnections-id-3d8210e9-1e89-4f12-98ef-643995339ed4-is-not-activated-at-this-scop/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • Error in creating the Domain from template in WLS 10.3.2

    Hi All,
    I am using WLS 10.3.2 and I need to create a domain from the template of my existing domain.
    I followed these steps while creating my existing domain:
    I chose these 2 while creating my existing domain
    ** WebLogic Portal - 10.3.2.0*
    ** Weblogic Portal Collaboration Repository - 10.3.2.0 [wlportal_10.3]*
    after Test JDBC Data Sources step where all my tests fail and in the next step
    Run Database Scripts: here I am running the Scripts by clicking on Run Scripts button and I get the message Database Load Successful!
    everything goes fine and my domain works fine.
    Now I am trying to create the domain template based on this domain which I created.
    After this step I am trying to create a new domain from the newly created template. I follow the steps given and at the end
    Creating Domain: Here it shows the progress and once it reaches 100% it displays the info in a popup window saying CFGFWK-60600: Before booting this domain, it is necessary to run the SQL file located at C:\bea\user_projects\domains\base_domain\security\SQLAuthenticator.sql in order to initialize a domain security admin user in the database.
    I assume this message is because while creating the domain from template I did not get the step Run Database Scripts and that is why I get that msg at the end.
    So I executed the create_db.cmd file wich is in domain home now I get the msg
    +[java] Files=+
    +[java] file:/C:/bea/user_projects/domains/local_domain_frm_tmpl/security/SQLAuthenticator.sql+
    +[java] Load was succesful+
    +[echo] ***** output written to logfile=create_db.log+
    so that says DB load was successful now when I tried to start the domain wich is created from the template.....it doesn't start and throws this error:
    +<Jun 18, 2010 5:24:07 PM PDT> <Error> <Management> <BEA-141244> <Schema validation errors while parsing C:\bea\user_projects\domains\local_domain_frm_tmpl\config\config.xml - Inval+
    id xsi:type qname: 'wsrp:wsrp-identity-asserterType' in element realm@http://xmlns.oracle.com/weblogic/domain>
    +<Jun 18, 2010 5:24:07 PM PDT> <Error> <Management> <BEA-141244> <Schema validation errors while parsing C:\bea\user_projects\domains\local_domain_frm_tmpl\config\config.xml - C:\be+
    a\user_projects\domains\local_domain_frm_tmpl\<unknown>:11:9: error: failed to load java type corresponding to t=wsrp-identity-asserterType@http://www.bea.com/ns/wlp/90/security/ws
    rp>
    +<Jun 18, 2010 5:24:07 PM PDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: [Management:141245]Schema Validation Error in C:\bea\user_projects\domains\local_doma+
    in_frm_tmpl\config\config.xml see log for details. Schema validation can be disabled by starting the server with the command line option: -Dweblogic.configuration.schemaValidationE
    nabled=false>
    +<Jun 18, 2010 5:24:07 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>+
    +<Jun 18, 2010 5:24:07 PM PDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>+
    +<Jun 18, 2010 5:24:07 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>+
    Stopping PointBase server...
    PointBase server stopped.
    seems that this error now has something to do with config.xml........
    Any suggestions.......???
    Thanks,
    Win

    Hi Win35,
    Your Error Indicates that ...may be u are trying to Manually Edit the "config.xml" Security Realm Part.. There something is wrong...
    <Jun 18, 2010 5:24:07 PM PDT> <Error> <Management> <BEA-141244> <Schema validation errors while parsing C:\bea\user_projects\domains\local_domain_frm_tmpl\config\config.xml - Invalid xsi:type qname: 'wsrp:wsrp-identity-asserterType' in element realm@http://xmlns.oracle.com/weblogic/domain>
    <Jun 18, 2010 5:24:07 PM PDT> <Error> <Management> <BEA-141244> <Schema validation errors while parsing C:\bea\user_projects\domains\local_domain_frm_tmpl\config\config.xml - C:\bea\user_projects\domains\local_domain_frm_tmpl\<unknown>:11:9: error: failed to load java type corresponding to t=<font color=maroon>wsrp-identity-asserterType@http://www.bea.com/ns/wlp90/security/wsrp</font>>
    *This specially happens when working in Nopepad/TextPad ...in the Schema declaration  (At the top 2-3 Lines) of "config.xml" file some Spaces or Special Characters OR a Line Break occurs gets included...*
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic (WebLogic Wonders Are here)

  • Heap space error while creating XML document from Resultset

    I am getting Heap space error while creating XML document from Resultset.
    It was working fine from small result set object but when the size of resultset was more than 25,000, heap space error
    I am already using -Xms32m -Xmx1024m
    Is there a way to directly write to xml file from resultset instead of creating the whole document first and then writing it to file? Code examples please?
    here is my code:
    stmt = conn.prepareStatement(sql);
    result = stmt.executeQuery();
    result.setFetchSize(999);
    Document doc = JDBCUtil.toDocument(result, Application.BANK_ID, interfaceType, Application.VERSION);
    JDBCUtil.write(doc, fileName);
    public static Document toDocument(ResultSet rs, String bankId, String interfaceFileType, String version)
        throws ParserConfigurationException, SQLException {
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            DocumentBuilder builder = factory.newDocumentBuilder();
            Document doc = builder.newDocument();
            Element results = doc.createElement("sims");
            results.setAttribute("bank", bankId);
            results.setAttribute("record_type", "HEADER");
            results.setAttribute("file_type", interfaceFileType);
            results.setAttribute("version", version);
            doc.appendChild(results);
            ResultSetMetaData rsmd = rs.getMetaData();
            int colCount = rsmd.getColumnCount();
            String columnName="";
            Object value;
            while (rs.next()) {
                Element row = doc.createElement("rec");
                results.appendChild(row);
                for (int i = 1; i <= colCount; i++) {
                    columnName = rsmd.getColumnLabel(i);
                    value = rs.getObject(i);
                    Element node = doc.createElement(columnName);
                    if(value != null)
                        node.appendChild(doc.createTextNode(value.toString()));
                    else
                        node.appendChild(doc.createTextNode(""));
                    row.appendChild(node);
            return doc;
    public static void write(Document document, String filename) {
            //long start = System.currentTimeMillis();
            // lets write to a file
            OutputFormat format = new OutputFormat(document); // Serialize DOM
            format.setIndent(2);
            format.setLineSeparator(System.getProperty("line.separator"));
            format.setLineWidth(80);
            try {
                FileWriter writer = new FileWriter(filename);
                BufferedWriter buf = new BufferedWriter(writer);
                XMLSerializer FileSerial = new XMLSerializer(writer, format);
                FileSerial.asDOMSerializer(); // As a DOM Serializer
                FileSerial.serialize(document);
                writer.close();
            } catch (IOException ioe) {
                ioe.printStackTrace();
            //long end = System.currentTimeMillis();
            //System.err.println("W3C File write time :" + (end - start) + "  " + filename);
        }

    you can increase your heap size..... try setting this as your environment variable.....
    variable: JAVA_OPTS
    value: -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m

  • Getting error "Cannot create a BACPAC from a file that does not contain exported data." from SqlManagementClient.Dac.ImportAsync

    We're trying to import a dacpac to azure via the new SqlManagementClient DacOperations ImportAsync api I get an exception with the error: "Cannot create a BACPAC from a file that does not contain exported data."
    This same dacpac imports fine using an alternate but less friendly API from sql server's tooling. We'd like to use the new management SDK instead for various reasons.

    Hi Kyle A Wilt,
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • HELP with Problem creating a page from a template Suggestions PLS.

    Nadia was kind enough to give me step by step in creating a template the right way.
    Problem is why won't it work?
    1) I create a page exactily like I want the templete to look.
    2) I save the child page as a template.
    3) I go to FILE>NEW>Page from template, look at the template on the insert on the right and it is just as I would expect it to be. The update is checked on change. I say ok and what appears on screen is I have lost all my formatting. When I look at the code, creating a page from the template causes the process to change the location of (for instance) the background image gif file from ...images/background.gif to the full location name starting the string at the C:/ all the way to ...background.gif. Therefore, the created page from the template loses all of its formatting.
    How do I fix this problem????

    Okay, here I go again with this problem step by step.
    1) Created a basic page that has a header, body and footer: www.goodimage.com and saved it as maintemp.html .
    2) I saved maintemp.html in the normal place where all the html are stored because as I was creating the template it told me I needed to save the page I was working on. So I decided to store it as an html until as it was layed out. Then I went to FILE/SAVE AS TEMPLATE storing it as maintemp.dwt.
    3) Then I created an edItable area called BODY.
    4) Then I did a FILE/SAVE AS TEMPLATE or tried to. As part of this process it wants to know if I want to UPDATE LINKS. If I do then the links will reference the template folder (but it is the DW default - hmmm what do I do) When in doubt take the default. So I did.
    5) So now I have a nice looking template called maintemp.dwt with one editablel region. So I feel pretty good until I suspect the next problem I have been fighting all along will appear. I select FILE/NEW PAGE FROM TEMPLATE and I see goodimage site, and my template called maintemp and a nice picture of it on the right screen part. Also update page when template changes is checked. Then I select to do the action.
    6)  Upcomes an unformatted screen caused by the links not being correct. I save the page as index.html to see if it will correct itself. I does not correct itself. So the index.html page is not formatted even after I closed down DW to see if that would help. It didn't. So I could go in and manually update the page but what a mess that would be.
    7) So I will go back to create a page from the maintemp.html with the UPDATE LINKS turned off. Using maintemp.html to create a template just like in step 2). When UPDATE LINKS is not selected then the template falls apart and is unusable.
    I HAVE WASTE ABOUT THREE DAYS ON THIS ONE PROBLEM AND I HAVE BUT A FEW MORE HOURS TO GET IT DONE. ONCE THIS WORKS IT WILL GO FAST. I AM TIRED OF BEING TIRED BUT MAYBE THAT IS CAUSING MY PROBLEM. ANYWAY, PLEASE HELP AS I AM AT A LOSE.
    HLOWER

  • Generate documents(word,Excel,PowerPoint) from Document Templates with Security Markings programmatically

    Hi
    It is required to create office document (can be word, Excel, PowerPoint etc) from predefined template with security markings programmatically within SharePoint Document libraries..
    help with example source and references appreciated.
    Best

    Hi,
    According to your post, my understanding is that you want to create a document based on a predefined template.
    When we create a predefined template, actually the template is bound to the content type, we can retrieve it using its url.
    web.Lists[YourList].ContentTypes[yourContentTypeId].DocumentTemplateUrl
    Then we can retrieve the predefined template as an SPFile, and use the
    OpenBinary() method to get the byte[].
    There is an article about this topic, you can refer to it.
    http://nickgrattan.wordpress.com/2008/12/08/code-for-creating-new-documents-based-on-a-content-type-and-template/
    More reference:
    http://sharepoint.stackexchange.com/questions/22253/how-do-i-create-a-new-document-in-a-document-library-according-to-a-template-in
    http://sharepoint.stackexchange.com/questions/60506/programmatically-create-a-new-document-based-on-a-content-type-template
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • ASSOCIATE A CUSTOM TEMPLATE WITH A NOTIFICATION?

    Could some one help who knows or have experience in this kind of issue.(please don't reply with oracle document reference).
    How can we associate a custom template with a particular notification.
    i 've created a custom template in system Mailer item type. (ie created a new message in system Mailer item type and include only some attributes, exluded some unwanted attributes), i want to associate this new custom template with my notification.
    please help. (oracle documentation is not showing any of this, including admin guide and developer guide)

    Could some one help who knows or have experience in this kind of issue.(please don't reply with oracle document reference).
    How can we associate a custom template with a particular notification.
    i 've created a custom template in system Mailer item type. (ie created a new message in system Mailer item type and include only some attributes, exluded some unwanted attributes), i want to associate this new custom template with my notification.
    please help. (oracle documentation is not showing any of this, including admin guide and developer guide)

  • "Sorry, you don't have access to this page" when creating a sub site. I am in the owners group with full control access

    cannot provisioning a SharePoint 2013 site with full control access, I get the page with the "Sorry, you don’t have access to this page”. Any help will be greatly appreciated.

    Hi,
    Which template did you use for the parent site?
    Please check whether the site collection administrator could create a subsite.
    Please grant permissions on the Device Channels list
    http://sitecollection_URL/DeviceChannels/AllItems.aspx -> List -> List Settings -> Permissions for this list -> granted Read rights for the Everyone group, compare the result as
    it.
    Please navigated to the hidden list "TaxonomyHiddenList" on the site collection i.e.
    http://somdnetsp/lists/TaxonomyHiddenList/AllItems.aspx and check permissions on this list. Check whether the list has unique permissions and there were no users added to the list. If yes,
    add "authenticated users" in the list permissions.
    Then, try to create sub site, compare the result.
    If this issue still exists, please check the log file to find whether there are some message about this issue.
    Best Regards,
    Wendy
    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]
    Wendy Li
    TechNet Community Support

  • List all users with full control on a SharePoint 2013 Sub site from SharePoint Object Model in C#

    If I have a sub site URL and a user with Site Admin, can I list all users in that sub site that have Full Control at that level?
    Any C# code sample?

    Still you can do that, just pass the subsites to your code and from their you can find the users dynamically.
    You could also use SPWeb.Users property to get users assigned to a subsite
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.users(v=office.15).aspx
    alternatively you can also use SPWeb.SiteUsers to get all users
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.siteusers(v=office.15).aspx
    other APIs of help-
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.associatedmembergroup(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.associatedownergroup(v=office.15).aspx
    http://sharepoint.stackexchange.com/questions/101671/object-model-list-all-users-with-full-control-on-a-sub-site-in-sharepoint-2013
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • I have a iPad 1 (first one)  I downloaded some movies from iTunes and with full volume I can barely hear them, but the apps I have downloaded are much louder.  Any suggestions

    I have a iPad 1 (first one)  I downloaded some movies from iTunes and with full volume I can barely hear them, but the apps I have downloaded are much louder.  Any suggestions

    She must have signed into her own Apple ID on your iPad in order to sync her content from iTunes so try this and see if it works.
    Settings>Store>Apple ID. See if your ID is showing in there and if it isn't - tap on her ID, sign out and then sign in with yours.
    You should not be syncing to to different iTunes libraries. The iPad can only sync with one iTunes library without erasing the the content on it if you decide to sync to another iTunes library.

  • ORA-01152 error while creating db from custom template

    I have a database based on the "general purpose/transaction processing" db, but with a custom tablespace/data added. I have attempted to clone this database by using dbca to create a custom template (including data) from this database. The template creation appears to be successful -- however, when I use dbca to try to create a new db from this custom template, I get the following error when dbca attempts to initialize the instance:
    ORA-01152: file 5 was not restored from a sufficiently old backup
    ORA-01110: data file 5: <path to my custom tablespace .dbf>
    If I select "ignore" at this point, I get further errors, the next error is
    ORA-06550: line 1, column 7: PLS-00201: Identifier 'DBMS_SERVICE.DELETE_SERVICE' must be declared
    I'm using 11gR2, and am relatively inexperienced on the dba side, any help appreciated.
    Thanks,
    Ben

    Update: I had unintentionally left my custom tablespace in READONLY state after an earlier experiment with transportable tablespaces. After putting the tablespace back into READ WRITE mode and creating a new template, I was successfully able to create a new db from the template.
    I'm still a little curious why this procedure wouldn't work properly with a READONLY tablespace, however.
    Ben

Maybe you are looking for