I am getting I am getting nativehr 0x80070057 /nativehr nativestack /nativestack error when I change my publishing page layout in SharePoint 2010.

Hello All,
I am getting the following error when I tried to change the page layout of a publishing page in my site collection using SharePoint 2010.
  Here I am just trying to change the page layout to "Four Item Grid" page layout. But i am not sure why this error is coming up.
I tried to search in the internet but no one has this kind of issue it seems.
 Can anybody help me in resolving this issue.

I had this same problem when trying to change the layout on a publishing page.
What I found by running some powershell script against the pages library is that the ows_PublishingPageLayout field actually referenced a layout url from another site. What had happend is that an author downloaded a copy of a page from one site and
uploaded it to another site. Evidently when you do this the url reference to the page layout file does not get corrected (it's fully qualified)
To fix this problem I wrote some powershell script to update the ows_PublishingPageLayout url so the site host url was corrected and did not have the old/original site's url.
    $SiteUrl = "http://your.site.url.here"
    $SPSite = New-Object Microsoft.SharePoint.SPSite($SiteUrl); 
    $OpenWeb = $SpSite.OpenWeb(); 
    $publishingWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($OpenWeb)    
    $AllPubLayouts = $publishingWeb.GetAvailablePageLayouts()
    $pages = $OpenWeb.Lists["Pages"]
   #view all page layouts
   foreach ($page in $pages.Items)
        if (!$page["ows_PublishingPageLayout"].ToString().Contains($SiteUrl))
            write-host $page.url
            write-host $page["ows_PublishingPageLayout"]    

Similar Messages

  • Everytime I open lightroom I get a pop up message saying "Lightroom encountered an error when reading from its preview cache and needs to quit" and it closes. Ive already tried reinstalling, nothing seems to work. Help please!

    Every time I open lightroom I get a pop up message saying "Lightroom encountered an error when reading from its preview cache and needs to quit" and it closes. Ive already tried reinstalling, nothing seems to work. Help please!

    Open the folder containing your catalog. In that folder you will find another folder with the extension .lrdata, and you need to delete that folder. After you do that, Lightroom should start normally and will create a new preview cache.

  • I am getting an error when I try to publish that says "Can't create the file "Mod_footer_bg.jpg."  How do I fix this?

    I was previously getting the droppedimage.png error, but I deleted all of my PNG's and I looked up how to fix that one.  The problem is that now I am getting a "Mod_footer_bg.jpg" error when I attempt to publish my site (both the the FTP Server as well as to a local folder).  I checked out the HTML using cyberduck, and I see that the Mod_footer_bg.jpg's are the footers of each of my pages.  I went through all of my pages and made the "footer height" zero.  This did not work, so what do I need to do to fix this?  Thanks!

    I can offer a shotgun effect fix but don't know if any a definite fix for this. Try the following:
    close iWeb.
    delete the iWeb preference file, com.apple.iWeb.plist, that resides in your Home/Library/Preferences folder.
    go to your Home/Library/Caches/com.apple.iWeb folder and delete its contents.
    reboot.
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • How do I get my iphone to remember a different password in safari when I change a password for a secure site that was already changed

    How do I get my iphone to remember a different password in safari when I change a password for a secure site that was already changed

    Click here and use Apple's iForgot service; if it doesn't work, contact Apple.
    (120917)

  • I keep getting script errors when accessing Amazon Seller merchant pages. I get the following A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script

    I keep getting script errors when accessing Amazon Seller merchant pages. I get the following A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: chrome://spautofill/content/spOverlay.js:150, I also get js210 as well. I have cleared all cookies and history and unistalled Firefaox and reinstalled. Been thru my AVS and set the site as trusted in every possible place. Still get the problem. Do not get it with IE on same PC.
    == URL of affected sites ==
    https://sellercentral.amazon.co.uk

    Same problem but with a different vendor site:
    https://www.webvitamins.com/myfavorites.aspx
    Not only does the page hang, but the other tabs also hang.
    I contacted the vendor and their reply was "we were told that this looks like a script that is used by "Sticky Password", third-party software that must have been installed on your browser. However, our website did not install it and does not have anything to do with it." As far as I can tell, "Sticky Password" is not installed on my Firefox.
    Same problem as above occurs, but with IE 8.0.6001.18702. Therefore, it is not unique to Firefox.
    CAUSE DETERMINED: Have determined that this problem only occurs when Kaspersky Password Manager is installed. In Firefox, if the "Password Manager Autofill Engine" add-on is disabled, the problem goes away.

  • LR 5.5 upgrade. I only get the the 32 bit set up and an error when the 64 bit set up should be created. It says not enough disk space and no access to write. The disk space is ok and the 32 bit file was indeed created.

    LR 5.5 upgrade. I only get the the 32 bit set up and an error when the 64 bit set up should be created. It says not enough disk space and no access to write. The disk space is okay and the 32 bit file was indeed created. I have Windows 7 Home edition.

    Hi Rob, Thanks for your input. The temp location is on the C drive with 228 GB free space. My other drives have 123 GB and 204 GB of free space. I can see how the 32 bit set up is perfectly extracted when it stops when coming to the 64 bit set up. I have done the exercise several times and also made new downloads. I am using Norton 360 and Malwarebytes anti-malware but the dowload from Adobe should be trusted.

  • I could not get ExportPDF to work. Something about a network error when trying to sign in.

    I could not get ExportPDF to work. Trying to convert a pdf to a Word document. Got an error message. Something about a network error when attempting to sign in.

    Try the following:
    1. Reset
    Hold the Sleep and Home button down until you see the Apple logo
    2. Restore:
    http://support.apple.com/kb/HT1414
    3. Recovery:
    http://support.apple.com/kb/HT1808

  • I get scrip error when trying to print web pages.

    I get a scrip error message when trying to print web pages and it will not print.

    FreddieP,
    You may want to download and run the HP Print and Scan Doctor. It helps diagnose and resolve printing issues. You can click on the link below to go right to it.
    Let us know if this works for your issue or not.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=oj-106151-2&cc=us&dlc=en&lc=en...
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • Getting Error In Item Added Event In Event Receiver in SharePoint 2010

    Hi Guys,
    I have written Event Receiver in SharePoint 2010 On ItemAdded event of Document Library. Wants to increment a col value by reading maximum value first. I wrote below code but sometime it works correctly but some time I got below error: Document Set
    enabled on this document library and weh we added any document in any document set then this event occurred. I mentioned Code block and Error description both.
    Please see and suggest right solution.
    Code:
    public override void ItemAdded(SPItemEventProperties properties)
                    base.ItemAdded(properties);
                    SPListItem _currentItem = properties.ListItem;
                    string _QUERY = @"<Where><Eq><FieldRef Name='DocumentId'/><Value Type='Text'>21</Value></Eq></Where><OrderBy><FieldRef
    Name='RevisionReference' Ascending='False' /></OrderBy><ViewFields><FieldRef Name='RevisionReference' /></ViewFields><QueryOptions><Folder>DocumentLIBB/</Folder></QueryOptions>";
                    int maxID = 0;
                    string revisionreferencee = string.Empty;
                    using (SPWeb web = properties.OpenWeb())
                        SPList list = web.Lists["DocumentLIBB"];
                        SPQuery query = new SPQuery();
                        query.ViewAttributes = "Scope=\"Recursive\"";
                        query.Query = (_QUERY);
                        SPListItemCollection results = list.GetItems(query);
                     if (results.Count > 0)
                            SPListItem item = results[0];
                            revisionreferencee = item["RevisionReference"].ToString();
                            bool result = Int32.TryParse(revisionreferencee, out maxID);
                            _currentItem["RevisionReference"] = maxID + 1;
                            _currentItem["DocumentId"] = item["DocumentId"].ToString();
                    properties.ListItem.File.Update();
                    _currentItem.Update();
    Error Desc:
    <nativehr>0x81020015</nativehr><nativestack></nativestack>The file EKENg LIBB/QA_DOC_044/05-22 Emirates Engineering Occurrence_Error Investigation - MEDA Process - 27 AUG 2009-921.doc has been modified by SHAREPOINT\system
    on 27 Aug 2012 12:10:13 +0400.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Runtime.InteropServices.COMException: <nativehr>0x81020015</nativehr><nativestack></nativestack>The file EKENg LIBB/QA_DOC_044/05-22 Emirates Engineering Occurrence_Error Investigation - MEDA
    Process - 27 AUG 2009-921.doc has been modified by SHAREPOINT\system on 27 Aug 2012 12:10:13 +0400.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

    Making the event synchronous (rather than the default) eliminates this error. If such a change suits your requirements you should consider it. You just have to tweak the elements.xml in your feature receiver project;
    http://blogs.msdn.com/b/unsharepoint/archive/2010/11/10/sharepoint-event-receivers-making-asynchronous-event-synchronous-to-avoid-save-conflict-error.aspx
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | c: http://www.b-i.com

  • I keep getting a Validation Error when I try to publish my site

    I continually update my site and every time I've done it before I just click Publish and it updates all the changes I've made; but now when I click publish it tries to log in to sign in to Business Catalyst for a bit and then I get a Validation Error that says "Access using your AdobeID has timed out. Check your network connection and try again." My network connection is fine and I can log in using my AdobeID no problem so I have no idea why it's not working.

    Hello,
    Please try the following steps:-
    1)Sign out of muse using Help-->Sign out.
    2)Close all the adobe apps.
    3)Sign out of CC app by expanding the top right gear like symbol-->Preferences-->Account-->Sign Out.
    4)Sign in back to CC app.
    5)Launch muse and try publishing again.
    Regards,
    Neha

  • I keep getting an internal server error when I try to load pages in live preview in edge code...

    I keep getting this message every time I try to laod a page using live preview in Edge Code with Google chrome...
    "The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log."
    I'm using google chrome Version 33.0.1750.152. I'm running mac osx 10.9.2. I've installed Apache.
    in the project settings I have this url... http://127.0.0.1/~spencer/butterville_website/
    I had this working flawlessly with an earlier version of a website I was working on. I haven't changed any settings, the only thing that has changed is that I'm working with a new sub folder in the root directory. Every time I try to load the page, I get that error message. I can't figure out what I'm doing wrong. Please help! Thanks.

    This query seems to be related to Edge Code. you can get help from this forum.
    Also EdgeCode doesn't have troubleshooting page but you can get help from Brackets trouble shooting page.

  • Keep getting download error when trying to load apps page in creative cloud

    I keep getting a download error every time i click on the app icon in creative cloud so i can access any of my apps is there anyone that can help? I've tried refreshing and reloading the page but nothing seems to be working.

    Hi Holli94,
    Can you please check the permissions on the following folders and confirm if you have full Read & Write permission or not. If not, please give full permission and that should fix the problem.
    1) /Library/ApplicationSupport/Adobe
    2) ~/Library/ApplicationSupport/Adobe
    3)/Utilities/Adobe Application Manager
    4) /Utilities/Creative Cloud Desktop Application.
    Cheers,
    Kartikay Sharma

  • When editing a PDF document with fillable forms, I get an unhandled exception error when scrolling past the first page

    The first error is "An unhandled Win32 exception occurred in Acrobat.exe [4644]"
    A debug window comes up after this and I open Visual Studio (not my area of expertise), and a couple more messages come up that may be helpful.
    Unhandled exception at 0x625628db in Acrobat.exe: 0xC0000005: Access violation reading location 0x00000044.
    Then
    [Frames below may be incorrect and/or missing, no symbols loaded for AcroForm.api]
    This is on Windows 7, running Acrobat Pro version 9.5.5
    No new updates are available either.
    Any ideas where to start? This happens with a couple of documents, but not all that are being edited.

    I am also getting the same error for fill-able PDFs. Were you able to find an answer/solution for this problem?
    I am using Acrobat X Pro on Windows 7
    Any help would be appreciated..

  • I keep getting a Subscript Out of Range: 'Chart Month Index' error when running my data in Diadem 2012. I have Excel 07

    Can someone send me an email so I can get some help with this? I cannot post my data here as it is confidential, but I would email it to someone from support for assistance.

    Hi,
    In order to work directly with a support engineer, I would recommend creating a service request at http://www.ni.com/support/
    Regards,
    Lindsey W. | Applications Engineer | National Instruments

  • I am getting "The contents cannot be displayed in a frame" error when tried to acces an external URL configured through launchpad(ESS). How to rectify it?

    Hi Guys,
    We have configured ESS role through launchpad. For viewing payslips we are using an external URL configured through launchpad.
    But when we try to access the configured link in ESS role, it displays "The contents cannot be displayed in a frame" .
    Should I need to change some parameters/settings in Launchpad so that I could overcome this issue.
    Guidance required,
    Regards,
    Ajeeth Kumar S

    Hi Shankar Reddy Chamala,
    Thanks for the alternate solution.
    But the solution you have provided also ended up with the same error
    "The content cannot be displayed in a frame" error.
    Some additional information so that you could help me out,
    The following is the test report .
    HTTP/1.1 200 OK
    Server: TIN-AppServer
    Strict-Transport-Security: max-age=15552000
    Cache-Control: no-cache, no-store, must-revalidate
    Pragma: no-cache
    Expires: Thu, 01 Jan 1970 00:00:00 GMT
    x-frame-options: DENY
    Content-Type: text/html; charset=UTF-8
    Content-Encoding: gzip
    Content-Length: 2421
    Date: Thu, 15 May 2014 14:23:14 GMT
    Connection: keep-alive
    Vary: Accept-Encoding
    The tester has mentioned the yellow highlighted property may be a cause for this issue.
    I googled that the highlighted property is set by the website owners for security reasons.
    Shankar I have another doubt..
    Is it feasible to create an HTML document to open the external link and link the HTML document to the iview and then configure the custom iview with launchpad.?
    -->If yes can you please elaborate the steps for it.
    Thanks and Regards,
    Ajeeth Kumar S

Maybe you are looking for

  • SQL server express 2012 with Local db database creation

    Dear all, Until now I was using for our application SQLSErver 2008 express R2 and when creating a database from SQL admin studio with Windows admin right file was created inside the DATA folder of SQL server installation. Then form my .NET applicatio

  • How to use JavaScript Calendar with ADF Faces ?

    Hi All, Our application is running under limited bandwidth so that we want to use clientside/javascript calendar instead of the ADF Faces calendar (server side). I already have the javascript that will pop-up calendar selection dialog when invoked. U

  • Problem With The Query

    Hi gurus, I have a problem in a query I have a lot of records that are the same and I don’t want to sum the value of them more than once. How can this be done?? The following table should illustrate my problem: DEPT--MONTHCFBID----SCORE ALST--APR100-

  • Mjpeg stream freezes after seconds in safari 6.0

    Hi Just installed Mountain Lion together with Safari 6.0. All looks ok but now i notice that the MJPEG streaming videos are freezing after a few seconds. Tried several sites and all with the same result. Any clues?

  • Quick Time installation - language

    Hello, I live in Brazil and I downloaded the Quicktime installer while on holidays in Las Vegas and stored in a pen-drive as I wanted to install the software in English language. However, when I try to install the software (in my computer in Brazil)