Thanks for reaching out.
The sliding window trigger in Logic Apps Standard can fail to find .csx files because it fires immediately, sometimes before the file system is fully initialized. This might cause a race condition where the script file isn't yet accessible. In contrast, the recurrence trigger waits for a scheduled interval, allowing the environment to fully load, which is why it works reliably with .csx files.
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer and Yes for "Was this answer helpful." And if you have any further questions, let us know.