Using API to Successfully Start Activity Then Errors

I am able to successfully start an activity on multiple jobs from a web app I have created, but only once. If I try a second time to select a couple more jobs I get the following back from /api/v2/odata/t300/Erp.BO.LaborSvc/SelectForWork

  1. ErrorMessage: “Employee ID must be unique.”
  2. ErrorType: “Ice.BLException”
  3. HttpStatus: 400
  4. ReasonPhrase: “REST API Exception”

I can refresh the page which causes me to log in again and those same job numbers I just tried a second time will now work when I select them and start activity.

Any ideas, thoughts, questions, or concerns?

Need to bring up the dev tools and look at what you are sending when it errors out.

I needed to clear the LaborDtl array after Update is called otherwise I was just appending new LaborDtl object to one that had already been created.

So all good now?

Appears so, thanks for the tip