Create Project Macro - Ambiguous componentId Error
Hi,
I have a Create Project Macro, which will give me the following error when I have a dynamic select parameter in runnable.json. If I changed the param to static select, it will work.
What am I missing?
Thanks,
Error Message:
"message": {
"callPath": "/api/plugins/call-python-do",
"auditTopic": "generic",
"msgType": "plugin-python-do",
"componentId": "template-odf",
"authSource": "USER_FROM_UI",
"pluginId": "odf-template",
"errorType": "com.dataiku.dip.CodedRuntimeException",
"errorMsg": "Ambiguous componentId template-odf matches 2 components",
},
Code fragments:
runnable.json:
Best Answer
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,215 Dataiker
Hi @Dominic-S
,
The error :Ambiguous componentId template-odf matches 2 components", suggests you have multiple component with the same ID "template-odf". Based on the code snippets provided alone, I can't see where this is occurring you may have other component types with the same id.
As I am unable to create 2 components with the same ID of the same type from the UI.
Could you please create a support ticket with a zip of the plugin so we can debug further?
Thanks,
Answers
-
Hi Alex,
Thanks for your reply.
What puzzles me is that if I hard-coded the select's choices, instead of using "getChoicesFromPython", I will not get that error.
Thanks,
-
Hi Alex,
How can I find out the componentId, I am able to find the pluginId from plugin.json, but I don't know where I can find the component Id from either runnable.json or connector.json
Thanks
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,215 Dataiker
The component ID is the one defined blow it create a folder with that id
As mentioned I thin it would be easiest if you can submit a support ticket with the current export of the plugin and your confirming your DSS, to help us understand and reproduce this.
-
Hi Alex,
I will submit a support ticket as you suggested.
Thanks