Developer forum

Forum » CMS - Standard features » Cannot sort scheduled tasks when there are too many

Cannot sort scheduled tasks when there are too many

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

When  you have many scheduled tasks, sorting no longer works as the sort page returns a 404. For example, when I have just a few tasks, the URL is like this:

http://swift.localtest.me/Admin/Content/Management/Pages/ScheduledTask_Sort.aspx?sort=%2C0%2C5%2C2%2C4%2C3%2C1&sortNames=%3BTest%20-%202%3BCleanup%20logs%3BNetwork%20Load%20Balancing%3BBuild%20Ecommerce%20Assortment%20Items%3BCalculate%20users%20smart%20search%20results%3BRepository%20task%20handler&dt=1684503324987

and everything works just fine. When I have many tasks, the URL looks like this:

http://swift.localtest.me/Admin/Content/Management/Pages/ScheduledTask_Sort.aspx?sort=%2C0%2C0%2C5%2C0%2C2%2C4%2C3%2C1%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0%2C0&sortNames=%3BFetch%20Customer%20Data%20from%20AX%20H01%3BTest%20-%202%3BCleanup%20logs%3BFetch%20Customer%20Data%20from%20AX%20H02%3BNetwork%20Load%20Balancing%3BBuild%20Ecommerce%20Assortment%20Items%3BCalculate%20users%20smart%20search%20results%3BRepository%20task%20handler%3BFetch%20Customer%20Data%20from%20AX%20H03%3BFetch%20Customer%20Data%20from%20AX%20H04%3BFetch%20Customer%20Data%20from%20AX%20H05%3BFetch%20Customer%20Data%20from%20AX%20H08%3BFetch%20Customer%20Data%20from%20AX%20H09%3BFetch%20Customer%20Data%20From%20AX%20H10%3BFetch%20Customer%20Data%20from%20AX%20H12%3BFetch%20Customer%20Data%20from%20AX%20H16%3BFetch%20Customer%20Data%20from%20AX%20H18%3BFetch%20Customer%20Data%20from%20AX%20H19%3BFetch%20Shipping%20methods%20H01%3BFetch%20Shipping%20methods%20H02%3BFetch%20Shipping%20methods%20H03%3BFetch%20Shipping%20methods%20H04%3BFetch%20Shipping%20methods%20H05%3BFetch%20Shipping%20methods%20H08%3BFetch%20Shipping%20methods%20H09%3BFetch%20Shipping%20methods%20H10%3BFetch%20Shipping%20methods%20H12%3BFetch%20Shipping%20methods%20H13%3BFetch%20Shipping%20methods%20H16%3BFetch%20Shipping%20methods%20H18%3BFetch%20Shipping%20methods%20H19%3BFetch%20Shop%20Data%20from%20AX%20H01%20-%20Delta%3BFetch%20Shop%20Data%20from%20AX%20H01%3BFetch%20Shop%20Data%20from%20AX%20H02%20-%20Delta%3BFetch%20Shop%20Data%20from%20AX%20H02%3BFetch%20Shop%20Data%20from%20AX%20H03%20-%20Delta%3BFetch%20Shop%20Data%20from%20AX%20H03%3BFetch%20Shop%20Data%20from%20AX%20H04%20-%20Delta%3BFetch%20Shop%20Data%20from%20AX%20H04%3BFetch%20Shop%20Data%20from%20AX%20H05%20-%20Delta%3BFetch%20Shop%20Data%20from%20AX%20H05%3BFetch%20Shop%20Data%20from%20AX%20H08%20-%20Delta%3BFetch%20Shop%20Data%20from%20AX%20H08%3BFetch%20Shop%20Data%20from%20AX%20H09%20-%20Delta%3BFetch%20Shop%20Data%20from%20AX%20H09%3BFetch%20Shop%20Data%20from%20AX%20H10%20-%20Delta%3BFetch%20Shop%20Data%20from%20AX%20H10%3BFetch%20Shop%20Data%20from%20AX%20H12%20-%20Delta%3BFetch%20Shop%20Data%20from%20AX%20H12%3BFetch%20Shop%20Data%20from%20AX%20H13%20-%20Delta&dt=1684503426028

which then returns a 404.

Sorting becomes more important when you have many tasks so I would love to see this fixed.

Thanks!

Imar


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

how many tasks do you have in the example failed? Please, specify.

BR, Oleg QA

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

I have about 60 of them, but I have seen it break from 20 on or so. I think it's hitting the maximum URL length (because all the data is appended to the query string, not posted to the page) so it also depends on the length of your task names. We have tasks like "Fetch Shop Data from AX H01 - Delta" so that adds up quickly :-)

Imar

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
This post has been marked as an answer

reproduced, new task #13706 has been created.Thanks.

BR, Oleg QA

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Great, thanks!

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Imar

Bug #13706 Sorting Scheduled Tasks
Has now been fixed in Dynamicweb version 9.15.10
Get this from the download section: https://doc.dynamicweb.dk/downloads/dynamicweb-9

Sorry for any inconvenience this may have caused

Kind Regards
Dynamicweb Care Support
Kristian Kirkholt

 

You must be logged in to post in the forum