Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
#786179
We are currently using community v.3.0.1.8 and are upgrading to the enterprise version.

We are using web services and they are executing fine except for the executeTrigger() call which returns the error "Invalid argument supplied for foreach()". This php error usually includes an "... in <filename>" bit but our error shows nothing. We've reduced the code in the trigger down to the basics which works fine in another trigger. There are no foreach() loops in the original trigger nor in the pared down trigger.

Has anyone had this issue or know the cause? We're stumped!

CODE IN TRIGGER
@@Action_Type = 'INSERT COMPLETE';

SOAPUI REQUEST
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:proc="http://www.processmaker.com">
<soap:Header/>
<soap:Body>
<proc:executeTriggerRequest>
<proc:sessionId>7277332395791884a404c78080314699</proc:sessionId>
<proc:caseId>9794459145758f1d60edb79042327992</proc:caseId>
<proc:triggerIndex>886819751576330604e4288055297494</proc:triggerIndex>
<proc:delIndex>39</proc:delIndex>
</proc:executeTriggerRequest>
</soap:Body>
</soap:Envelope>

SOAPUI RESPONSE
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://www.processmaker.com">
<env:Body>
<ns1:pmResponse>
<ns1:status_code>100</ns1:status_code>
<ns1:message>Invalid argument supplied for foreach()</ns1:message>
<ns1:timestamp>2016-07-22 12:44:23</ns1:timestamp>
</ns1:pmResponse>
</env:Body>
</env:Envelope>

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]