08-18-2023 12:09 PM
I had a failure in my agent update python script. Here is the XML I got back.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><apiErrors><ap
iError><errorMessage>400 Bad Request - javax.xml.bind.UnmarshalException: unexpe
cted element (uri:"", local:"agent"). Expected elements are
<{}department></errorMessage></apiError></apiErrors>
I think what is really going on here is I exceeded the number of skills assigned to the agent because my code worked for 30 of the 32 agents I was processing. I didn't need to change the department on the user, and I don't think there was a department assigned. I googled around for the limit of skills for an agent, but I couldn't find it. This user already had a bunch of skill and I was using the 'skillGroupsAdded' block in the XML update.
08-23-2023 04:34 AM
Yes, it works if I do it through the SPOG. That makes it even more maddening since whatever this restriction is that I am hitting, it only seems to apply to updates made via the API.
08-23-2023 06:35 AM
Yes that is very annoying that you can do it via SPOG, but not API. I would say a bug for sure, not sure if you can open a TAC case and just send them this link to speed up the process.
david
08-24-2023 05:22 AM
Thanks for your efforts @david.macias . I certainly appreciate them!
08-24-2023 06:25 AM
SPOG uses the API as well?
Have you tried looking at the Browser Network Logs - when using SPOG and seeing if you can spot the difference?
Gerry
08-24-2023 06:38 AM
You know, I never checked if SPOG uses the API. I suspect it's using ConAPI though if I had to guess. If someone checks it out please report back.
david
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide