07-19-2023 02:33 AM
Hi All,
Is it possible to change snaplex for scheduled task via “Snaplogic update” snap?
Pipeline:
mapper looks like this:
but unfortunately Snaplogic Update snap throws an error:
Failed with status code: 400 [error: {“error_list”:[{“message”:“:Additional properties are not allowed (‘snaplex_path’ was unexpected)”}]}]
Thank you for your help
Solved! Go to Solution.
07-20-2023 01:33 AM
Here is what you can try to do:
1.Read a task that uses the wanted Snaplex, and retrieve the runtime_path_id from there.
2.Use that value to update the task using the Mapper above.
I’ve tried on my own and it works fine, but keep in mind that the Snaplex Name from the Drop Down Menu in the Manager is different that the runtime_path_id.
Let me know if you need further clarification.
Regards,
Aleksandar.
07-19-2023 03:49 AM
Hello @SL12345,
Yes it is possible to update the Snaplex on a scheduled task, but you should use $parameters.runtime_path_id parameter.
Let me know if this helps you.
Regards,
Aleksandar.
07-20-2023 01:28 AM
Hi Alexandar,
Unfortunately, it doesn’t work
my mapper looks like this:
i will get an error:
Reason: Failed with status code: 400 [error: {“error_list”:[{“message”:“runtime_path_id:‘out-Snaplex’ does not match ‘[1]+/rt/\\w+/[\\w\\-+.]+$’”}]}]
‘out-Snaplex’ is the name of our snaplex which can be set in scheduled task manually via manager
\\w\\.- ↩︎
07-20-2023 01:33 AM
Here is what you can try to do:
1.Read a task that uses the wanted Snaplex, and retrieve the runtime_path_id from there.
2.Use that value to update the task using the Mapper above.
I’ve tried on my own and it works fine, but keep in mind that the Snaplex Name from the Drop Down Menu in the Manager is different that the runtime_path_id.
Let me know if you need further clarification.
Regards,
Aleksandar.
07-20-2023 01:48 AM
Thank you Aleksandar.
Now it works … value from dropdown menu is not the same as value in runtime_path_id, now it works