Skip to main content
Nintex Community Menu Bar

Call web service workflow error cannot find list

  • December 30, 2019
  • 3 replies
  • 37 views

Forum|alt.badge.img+1

Hi all, I am new here, asking for help.

I read the "How to design a workflow that cycles through all items within a list and starts a child workflow" and create a partent site workflow as below.

The purpose of the workflow is to pick up items in list based on the conditions(I have set them in the "query list" and tested) and call for child workflow on the list to send emails to the item creators.

 

Below is the code of call web services in partent site workflow:

 

<?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://nintex.com">
<soap:Header>
</soap:Header>
<soap:Body>
  <m:StartWorkflowOnListItem>
    <m:itemId>{WorkflowVariable:ListItemID}</m:itemId>
    <m:listName>OPS Internal Event</m:listName>
    <m:workflowName>Reminder for Open Cases</m:workflowName>
    <m:associationData>
    </m:associationData>
  </m:StartWorkflowOnListItem>
</soap:Body>
</soap:Envelope>

 

Child workflow is only a sending email function then pause for 5 minutes.

 

I manual run the site workflow, but I cannot receive the email, then I find the errors status as below, please help to advise me what the problem is, and how to solve it. Thanks a lot.

 

The error message is:

 

Failed to invoke web service. Error returned from server: <soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request. ---&gt; Cannot find list.
Parameter name: li

3 replies

Forum|alt.badge.img+12
  • Scholar
  • December 30, 2019

@Cloudclli ....instead of using child workflow to send email notification, why you're not using the data which you've collected using query list?

 

  • Query your list and get IDs and store it in collections
  • Apply your filters and sorting
  • You can get values from other columns (which you need in your email) too and store them in collections
  • Now using For Each loop, num_Index variable and ID collections
    • Get respective values from other collections using collection operations
    • Once you have all the values, send email notifications

 


Forum|alt.badge.img+1
  • Author
  • Rookie
  • December 31, 2019

Thanks for the advise.

Let me try.


Forum|alt.badge.img+1
  • Author
  • Rookie
  • December 31, 2019
Thanks. It works!