SOLVED

Sharepoint 2010 Workflow error: Access Denied

%3CLINGO-SUB%20id%3D%22lingo-sub-728130%22%20slang%3D%22en-US%22%3ESharepoint%202010%20Workflow%20error%3A%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-728130%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20Publish%20or%20Save%20a%20new%20Sharepoint%202010%20Workflow.%20It%20warning%20me%20%22%3CSTRONG%3EServer%20Error%3A%20Access%20Denied%22.%26nbsp%3B%3C%2FSTRONG%3EThe%20Sharepoint%202013%20Workflow%20work%20fine.%3C%2FP%3E%3CP%3EI'm%20an%20administrator%20account%20of%20my%20tenant%20and%20I%20have%20full%20control%20on%20this%20site.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121588iF5C44D283FDEB038%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Server%20error%20access%20denied.png%22%20title%3D%22Server%20error%20access%20denied.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EServer%20error%3A%20Access%20Denied%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHow%20could%20I%20fix%20that%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-728130%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-967295%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%202010%20Workflow%20error%3A%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-967295%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F343214%22%20target%3D%22_blank%22%3E%40ca_rem%3C%2FA%3Edid%20you%20find%20a%20solution%20for%20this%3F%20We%20are%20seeing%20the%20same%20thing%20happen.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-968850%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%202010%20Workflow%20error%3A%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-968850%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F343214%22%20target%3D%22_blank%22%3E%40ca_rem%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20couple%20thoughts.%26nbsp%3B%20Have%20you%20installed%20the%20SPD%20Service%20Pack%3F%3C%2FP%3E%3CP%3ETake%20a%20look%20at%20this%3A%26nbsp%3B%3CA%20title%3D%22Receiving%20Server%20Error%3A%20Access%20Denied%20When%20I%20Publish%202010%20Platform%20Workflow.%22%20href%3D%22https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Flync%2Fen-US%2F97df03dd-bcdc-4bd7-a5b6-770a04aaf5ff%2Freceiving-server-error-access-denied-when-i-publish-2010-platform-workflow-help%3Fforum%3Dsharepointcustomization%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EReceiving%20Server%20Error%3A%20Access%20Denied%20When%20I%20Publish%202010%20Platform%20Workflow.%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-968978%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%202010%20Workflow%20error%3A%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-968978%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F343214%22%20target%3D%22_blank%22%3E%40ca_rem%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20if%20this%20is%20the%20first%20time%20you've%20tried%20a%202010%20workflow%20for%20a%20site%20collection%20in%20SPO%2C%20you%20have%20to%20make%20sure%20the%20DenyAddAndCustomizePages%20is%20turned%20off.%20You%20can%20tell%20if%20you%20look%20at%20your%20security%20on%20the%20site%20through%20the%20advanced%20settings%2C%20you'll%20see%20a%20'Deny'%20section.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPowershell%20to%20do%20that%3A%3C%2FP%3E%3CDIV%3E%3CPRE%3E%3CSPAN%3E%23%26nbsp%3Bset%26nbsp%3Bsecurity%26nbsp%3Bso%26nbsp%3Bcan%26nbsp%3Buse%26nbsp%3B2010%26nbsp%3Bworkflows%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%23%26nbsp%3Bhave%26nbsp%3Bto%26nbsp%3Bdo%26nbsp%3Bthis%26nbsp%3Bto%26nbsp%3Bevery%26nbsp%3Bsite%26nbsp%3Bwe%26nbsp%3Bwant%26nbsp%3Bto%26nbsp%3Buse%26nbsp%3B2010%26nbsp%3Bworkflows%26nbsp%3Bo%2C%26nbsp%3Bincluding%26nbsp%3Ball%26nbsp%3Bclass%26nbsp%3Bistes%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%23%26nbsp%3Balso%2C%26nbsp%3Bthis%26nbsp%3Bis%26nbsp%3Bwhat%26nbsp%3Bgives%26nbsp%3Bus%26nbsp%3Bthe%26nbsp%3Bcontent%26nb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C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3EDenyAddAndCustomizePages%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3Efalse%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%23%20double%20check%20the%20settings%20is%20correct%3CBR%20%2F%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3Esite%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EGet-SPOSite%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3EIdentity%26nbsp%3Bhttps%3A%3C%2FSPAN%3E%3CSPAN%3E%2F%2F%3C%2FSPAN%3E%3CSPAN%3ENAMEOFTENANT.sharepoint.com%3C%2FSPAN%3E%3CSPAN%3E%2F%3C%2FSPAN%3E%3CSPAN%3Esites%3C%2FSPAN%3E%3CSPAN%3E%2F%3C%2FSPAN%3E%3CSPAN%3ENAMEOFSITE%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3Esite.DenyAddAndCustomizePages%3CBR%20%2F%3EDisconnect-SPOService%3C%2FSPAN%3E%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-975824%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%202010%20Workflow%20error%3A%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-975824%22%20slang%3D%22en-US%22%3EYes%2C%20I%20have%20it.%20Thanks%20you!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1014028%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%202010%20Workflow%20error%3A%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1014028%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20still%20having%20this%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20tried%20the%20powershell%20stuff%20and%20it%20hasn't%20resolved.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20only%20on%20one%20Sharepoint%20site%20in%20Office%20365.%20All%20other%20site%20collections%20we%20can%20use%20this%20on%20fine.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1014040%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%202010%20Workflow%20error%3A%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1014040%22%20slang%3D%22en-US%22%3EFound%20a%20resolution%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%24adminUPN%3D%22%5BREPLACE%5D%22%3CBR%20%2F%3E%3CBR%20%2F%3E%24orgName%3D%22%5BREPLACE%5D%22%3CBR%20%2F%3E%3CBR%20%2F%3E%24userCredential%20%3D%20Get-Credential%20-UserName%20%24adminUPN%20-Message%20%22Type%20the%20password.%22%3CBR%20%2F%3E%3CBR%20%2F%3EConnect-SPOService%20-Url%20https%3A%2F%2F%24orgName-admin.sharepoint.com%20-Credential%20%24userCredential%3CBR%20%2F%3E%3CBR%20%2F%3ESet-SPOsite%20%3CA%20href%3D%22https%3A%2F%2Fcclcvic.sharepoint.com%2Fsites%2FIntranet%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcclcvic.sharepoint.com%2Fsites%2FIntranet%3C%2FA%3E%20-DenyAddAndCustomizePages%200%3C%2FLINGO-BODY%3E
Highlighted
Contributor

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 DeniedServer error: Access Denied

How could I fix that?

6 Replies
Highlighted

@ca_remdid you find a solution for this? We are seeing the same thing happen.

Highlighted

@ca_rem 

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

Take a look at this: Receiving Server Error: Access Denied When I Publish 2010 Platform Workflow. 

Highlighted
Best Response confirmed by ca_rem (Contributor)
Solution

@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
Highlighted
Yes, I have it. Thanks you!
Highlighted

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.

Highlighted
Found a resolution;

$adminUPN="[REPLACE]"

$orgName="[REPLACE]"

$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."

Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential

Set-SPOsite https://cclcvic.sharepoint.com/sites/Intranet -DenyAddAndCustomizePages 0