Hi I have one workflow in that I have written Foreach which will update the list items based onitem in foreach.
I have "," sperate values, which I have spilt in colelction, Now I applied foreach on collection reading one by one value , and based upon the value I am updateing 1 item from diffrent list , for updating in where caluse I am giving value from varibale of foreach.
1st loop of foreach runs succefully but when loop runs 2nd time it fails and says updatiions fails. I have log the value from foreach, it is showing me correct value. I am not able o understand the issue.
Which method are you using on the Collection, "get" or "pop"? If you are using more than one collection and attempting to use pop, you have to be careful that your collections do not become unequal in length. Also can you post any errors that you might be getting?
Could you please try this.
This will let the SharePoint timer job time to process the Update items.
If the problem is still not resolved. Try this.