Rainu_Ittycheriah | 2021-01-15 17:55:36 UTC | #1
Hi all, I'm working through a data integration utilizing the Python SDK, and while I can successfully post a job and get a jobId, the job status every time is "FAILED" with the broad error message of "The executed query encountered an unexpected error". Is there a way to gain more insight into what might be going wrong? Thanks!
Best, Rainu
anon90596342 | 2021-01-15 22:59:18 UTC | #2
Hi Rainu,
Thanks for the question. You mentioned that you received the jobId, then you can try to use GET /api/v2/analytics/conversations/details/jobs/{jobId} to get the status of the job. Perhaps you can find useful information from the results.
Rainu_Ittycheriah | 2021-01-15 23:06:34 UTC | #3
Hi Weite Li, Thanks for your quick response. I have used that endpoint in the SDK to gain the information above from here https://github.com/MyPureCloud/platform-client-sdk-python/blob/b3dd79d7e2a7a1b927348cf32e62728bdf2dd8f2/build/PureCloudPlatformClientV2/apis/analytics_api.py#L436. I was wondering if there was any more context around how to resolve those failed status jobs? What other options do I have in order to gain context about an unexpected error?
anon90596342 | 2021-01-17 02:00:17 UTC | #4
Hi Rainu,
No problems! As for how to resolve failed jobs, most of the time that depends on what type of error you are getting. You should get some details, including error messages, from the response of the request suggesting what is causing the problem.
Thanks!
Rainu_Ittycheriah | 2021-01-19 14:42:04 UTC | #5
Hi Weite Li, The entire response that I get back from the endpoint looks like this:
{'completiondate': None, 'errormessage': 'The executed query encountered an unexpected error', 'expirationdate': None, 'state': 'FAILED', 'submissiondate': datetime.datetime(2021, 1, 19, 14, 34, 31, 816000, tzinfo=tzutc())}
There isn't any further details around why the job failed. The form above is linked to this model: https://github.com/MyPureCloud/platform-client-sdk-python/blob/0cca208956301a5b22517c9b8adca6af8979b74f/build/PureCloudPlatformClientV2/models/async_query_status.py#L33. What other ways can I get further details on what the root cause of the failure is?
tim.smith | 2021-01-19 16:31:11 UTC | #6
Please open a case with Genesys Cloud Care to investigate the unexpected error.
system | 2021-02-18 16:36:25 UTC | #7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 9713