cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Is it possible to change snaplex for scheduled task via "Snaplogic update" snap?

SL12345
New Contributor III

Hi All,

Is it possible to change snaplex for scheduled task via โ€œSnaplogic updateโ€ snap?
Pipeline:

image

mapper looks like this:

image

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

1 ACCEPTED SOLUTION

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.

View solution in original post

5 REPLIES 5

AleksandarAngel
Contributor III

Hello @SL12345,

Yes it is possible to update the Snaplex on a scheduled task, but you should use $parameters.runtime_path_id parameter.

image

image

Let me know if this helps you.

Regards,
Aleksandar.

Hi Alexandar,

Unfortunately, it doesnโ€™t work

my mapper looks like this:

image

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


  1. \\w\\.- โ†ฉ๏ธŽ

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.

Thank you Aleksandar.

Now it works โ€ฆ value from dropdown menu is not the same as value in runtime_path_id, now it works