Calling analytics service within another service results in error
- July 21, 2021
- 1 reply
- 2526 views
Hi,
I'm trying to combine two analytics-related services- the first one ('createDataset2' in the attached images) creates an analytics dataset using the "AnalyticsDatasetRef" that outputs a dataset ID that I will later feed into the createJob() service under the Analytics Training_Thing.
However, before I train a model, I want to make sure that the Dataset creation job is 'completed', and I can check this using the getJobStatus() service under the Analytics Data_Thing. In my service, I first call 'createDataset2' to create the analytics dataset, and then have a while loop that calls the getJobStatus() service until I get a return value of 'COMPLETED', indicating that the dataset creation is complete.
I've tested both parts of the service individually and they work, but when I combine them I get an output error (attached) that I'm unsure of how to debug. I'm thinking that the while loop may be causing issues- any tips/ideas would be greatly appreciated! Thanks!
