Tried it out with the Pause for 5 minutes action and still receiving these "Failed to invoke web service." errors:
1/26/2017 3:35 PM | Workflow Comment | Failed to invoke web service. Error returned from server: <soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. | |
1/26/2017 3:35 PM | Workflow Comment | Failed to invoke web service. Error returned from server: <soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. | |
1/26/2017 3:35 PM | Workflow Comment | Failed to invoke web service. Error returned from server: <soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. | |
1/26/2017 3:35 PM | Error | An error has occurred in PBC Delivery - Project Request Sub-Site Creation Workflow. |
Try to do them one at a time rather than in parallel. I have ours setup sequential actions.
In each action set I am creating the group and then applying the group.
Have you tested the web service by doing a Run now within the web service action? Does that work?
I ran into some issues around my variables and the way I was pushing through the URL.
When I try run now, Test Connection returns OK in results, but executing the Web method gets me a 500 Internal Server Error.
Hmmm... so it looks like it is the method that is failing. This is the tedious part, checking that the request is setup properly and that the variables are all in the right format.
First, I would validate all your variables (send them to yourself in an email via the workflow or output them with log history action) and try to see if they are what you expect. After that, you may need to step through the service call to ensure it is setup properly with the variables. I created a test site and created and added the permissions there to see that it would work.
Here is an example of one of my web service calls (usergroup.asmx AddGroup 😞
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/directory/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:AddGroup>
<m:groupName>{WorkflowVariable:siteOwnersGroup}</m:groupName>
<m:ownerIdentifier>{WorkflowVariable:newSiteOWNER}</m:ownerIdentifier>
<m:ownerType>user</m:ownerType>
<m:defaultUserLoginName>{WorkflowVariable:newSiteOWNER}</m:defaultUserLoginName>
<m:description>
</m:description>
</m:AddGroup>
</soap:Body>
</soap:Envelope>
And then to add the group to the site (permissions.asmx AddPermission 😞
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/directory/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:AddPermission>
<m:objectName>{WorkflowVariable:newSiteURL}</m:objectName>
<m:objectType>Web</m:objectType>
<m:permissionIdentifier>{WorkflowVariable:siteOwnersGroup}</m:permissionIdentifier>
<m:permissionType>group</m:permissionType>
<m:permissionMask>-1</m:permissionMask>
</m:AddPermission>
</soap:Body>
</soap:Envelope>
Also, I am not sure why I did not mention this before, but I created an asset in for this awhile back. Check out Site Creation Workflow if you want to see how I did mine.
Hope this helps!
Yea, I think I may need to get my server team involved and see what's going on. My setup is almost identical as yours.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/directory/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:AddGroup>
<m:groupName>{WorkflowVariable:siteOwnersGroup}</m:groupName>
<m:ownerIdentifier>{WorkflowVariable:newSiteOwner}</m:ownerIdentifier>
<m:ownerType>user</m:ownerType>
<m:defaultUserLoginName>{WorkflowVariable:newSiteOwner}</m:defaultUserLoginName>
<m:description>
</m:description>
</m:AddGroup>
</soap:Body>
</soap:Envelope>
Well best of luck! It can be done so you just need to pinpoint the issue. I think you are close!
Let me know if you need anything else or have any questions.
Hey Jessie. I would love to see how that works. Hope all is well at Nintex.
Dean Virag