{"id":2154,"date":"2016-04-04T09:08:19","date_gmt":"2016-04-04T09:08:19","guid":{"rendered":"https:\/\/poiseddevelopers.com\/reality-tech\/?p=2154"},"modified":"2024-05-02T07:21:53","modified_gmt":"2024-05-02T07:21:53","slug":"workflow-error-in-sp2013-related-to-app-step","status":"publish","type":"post","link":"https:\/\/poiseddevelopers.com\/reality-tech\/workflow-error-in-sp2013-related-to-app-step\/","title":{"rendered":"Workflow error in SP2013 related to App Step"},"content":{"rendered":"<p>I had a situation when my workflows went to \u201cSuspended\u201d after a few minutes. I noticed this occured when I used the \u201cApp Step\u201d. Looking at the \u201cSuspended\u201d state, there was an \u201ci\u201d icon, when clicked, showed this error:<\/p>\n<p><em>Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 {\u201cerror_description\u201d:\u201dThe server was unable to process the request due to an internal error<\/em><\/p>\n<p>Here is how the error actually consistently appears:<\/p>\n<div class=\"d-lg-flex\">\n<div><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2157 size-medium aligncenter\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/wf-suspended-300x163.png\" alt=\"img-01\" width=\"300\" height=\"163\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/wf-suspended-300x163.png 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/wf-suspended-768x418.png 768w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/wf-suspended.png 850w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/div>\n<div>\n<p>It turns out the App Step will not work, without specific configuration to grant the App Step rights.So of course some permission issue was most probable. And I was suspicious of App Step, as I mentioned yesterday as the proximate cause.<\/p>\n<\/div>\n<\/div>\n<p>It turns out the App Step will not work, without specific configuration to grant the App Step rights.<\/p>\n<p>So of course some permission issue was most probable. And I was suspicious of App Step, as I mentioned yesterday as the proximate cause.<\/p>\n<p>So configured the permission as below link:<br \/>\nhttps:\/\/www.dmcinfo.com\/latest-thinking\/blog\/id\/8661\/create-site-from-template-using-SharePoint-2013-workflow<br \/>\nOne more thing, we need specify the Scope URL as below<\/p>\n<p>On the subweb, you will find the configuration setting for app permission: http :[SPWeb URL] \/_layouts\/15\/appinv.aspx<\/p>\n<p>You can see it set up from here:<br \/>\n[site URL] \/_layouts\/15\/appprincipals.aspx?Scope=Web<br \/>\nHere is the feature to enable:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2165\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/wfappstepfeaturetoenable-1-300x31.webp\" alt=\"img-02\" width=\"300\" height=\"31\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/wfappstepfeaturetoenable-1-300x31.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/wfappstepfeaturetoenable-1.webp 631w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>For App Step Permissions, it is the 3rd link under permissions from Site Settings.<\/p>\n<p>Here is how the specific App Step Permission appears when viewed from Site Settings App Step Permissions:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2166 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/specificappsteppermissiondefinition.png\" alt=\"img-03\" width=\"630\" height=\"178\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/specificappsteppermissiondefinition.png 630w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/specificappsteppermissiondefinition-300x85.png 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>With the permissions granted, the workflows should then work on retry. You can retry from the workflow summary page shown on top. Let\u2019s understood\u00a0<strong>SharePoint Online Infrastructure Services.<\/strong><\/p>\n<p><strong>Additional Read<\/strong><br role=\"presentation\" data-uw-rm-sr=\"\" \/><a href=\"https:\/\/reality-tech.com\/fixing-bad-sharepoint-taxonomy-term-references\/\" target=\"_blank\" rel=\"noopener\" aria-label=\"How to Fix Bad Taxonomy Terms in Sharepoint Automatically - open in a new tab\" data-uw-rm-ext-link=\"\">How to Fix Bad Taxonomy Terms in Sharepoint Automatically<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a situation when my workflows went to \u201cSuspended\u201d after a few minutes. I noticed this occured when I used the \u201cApp Step\u201d. Looking at the \u201cSuspended\u201d state, there was an \u201ci\u201d icon, when clicked, showed this error: Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":2156,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[50,36],"tags":[],"class_list":["post-2154","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sp2013","category-workflow"],"acf":[],"_links":{"self":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/2154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/comments?post=2154"}],"version-history":[{"count":11,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/2154\/revisions"}],"predecessor-version":[{"id":2222,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/2154\/revisions\/2222"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media\/2156"}],"wp:attachment":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media?parent=2154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/categories?post=2154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/tags?post=2154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}