โ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