Hi all,
I am trying to create a BPM which will update the average material cost if a user is doing a quantity adjustment and the average material cost is 0. I created a Pre Processing Method Directive to fire before the quantity adjustment happens. First I started out with it just making a message appear and that worked great. Next I wanted to call the CostAdjustment Service to actually update the cost. I am not getting any syntax errors, but when the BPM fires on a quantity adjustment I do.
Code In Question:
Error: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter ‘index’)
I must be missing something here.
What tools can I use to debug this? How do I get more information on what needs passed to the services? This is my first time trying to call a BO from a BPM in custom code. I have been using the developer tools on the browser to see what services are being called and what parameters are being passed through and what the indexes are of the ds.
Thanks for the help!