Forum Discussion

ca_rem's avatar
ca_rem
Brass Contributor
Jun 28, 2019
Solved

Sharepoint 2010 Workflow error: Access Denied

When I Publish or Save a new Sharepoint 2010 Workflow. It warning me "Server Error: Access Denied". The Sharepoint 2013 Workflow work fine.

I'm an administrator account of my tenant and I have full control on this site.

Server error: Access Denied

How could I fix that?

  • ca_rem 

    And if this is the first time you've tried a 2010 workflow for a site collection in SPO, you have to make sure the DenyAddAndCustomizePages is turned off. You can tell if you look at your security on the site through the advanced settings, you'll see a 'Deny' section.

     

    Powershell to do that:

    # set security so can use 2010 workflows
    # have to do this to every site we want to use 2010 workflows o, including all class istes
    # also, this is what gives us the content editor web part. We don't have to turn on publishing.
    $cred = Get-Credential 
    Connect-SPOService -Url https://NAMEOFTENANT-admin.sharepoint.com -credential $cred
    Set-SPOSite -Identity https://NAMEOFTENANT.sharepoint.com/sites/NAMEOFSITE -DenyAddAndCustomizePages $false

    # double check the settings is correct
    $site = Get-SPOSite -Identity https://NAMEOFTENANT.sharepoint.com/sites/NAMEOFSITE
    $site.DenyAddAndCustomizePages
    Disconnect-SPOService

6 Replies

  • Robin Nilsson's avatar
    Robin Nilsson
    Bronze Contributor

    ca_rem 

    And if this is the first time you've tried a 2010 workflow for a site collection in SPO, you have to make sure the DenyAddAndCustomizePages is turned off. You can tell if you look at your security on the site through the advanced settings, you'll see a 'Deny' section.

     

    Powershell to do that:

    # set security so can use 2010 workflows
    # have to do this to every site we want to use 2010 workflows o, including all class istes
    # also, this is what gives us the content editor web part. We don't have to turn on publishing.
    $cred = Get-Credential 
    Connect-SPOService -Url https://NAMEOFTENANT-admin.sharepoint.com -credential $cred
    Set-SPOSite -Identity https://NAMEOFTENANT.sharepoint.com/sites/NAMEOFSITE -DenyAddAndCustomizePages $false

    # double check the settings is correct
    $site = Get-SPOSite -Identity https://NAMEOFTENANT.sharepoint.com/sites/NAMEOFSITE
    $site.DenyAddAndCustomizePages
    Disconnect-SPOService
  • Rusty Dane's avatar
    Rusty Dane
    Brass Contributor

    ca_rem 

    A couple thoughts.  Have you installed the SPD Service Pack?

    Take a look at this: https://social.msdn.microsoft.com/Forums/lync/en-US/97df03dd-bcdc-4bd7-a5b6-770a04aaf5ff/receiving-server-error-access-denied-when-i-publish-2010-platform-workflow-help?forum=sharepointcustomization 

      • CCLDaniel's avatar
        CCLDaniel
        Copper Contributor

        We are still having this issue.

         

        We have tried the powershell stuff and it hasn't resolved.

         

        This is only on one Sharepoint site in Office 365. All other site collections we can use this on fine.

Resources