Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Scheduler not working: Incorrect Function Error

Solved1.19K views23rd September 2024incorrect function Scheduler
1
Maria Correa [SLC] [DevOps Advocate]109 22nd August 2024 3 Comments

I keep getting error “Incorrect Function” in the Last Runtime Result column of the scheduled tasks.
I have tried tasks of various types, including simple information events to executing scripts with and without script configurations and nothing seems to be working, mind you that these same tasks work fine in another DMA. I have also tried restarting the DMA and the server and nothing.
From checking the logs and doing a follow in the Client Test Tool it seems that it doesn’t even get executed. There is also nothing on the logs.

Does anyone have an idea of how to fix this?

Thank you!

Maria Correa [SLC] [DevOps Advocate] Selected answer as best 23rd September 2024
Wale Oguntoyinbo [SLC] [DevOps Advocate] commented 22nd August 2024

For the affected agent:
1) Are you able to run any scheduled task ?
2) Is the agent standalone or part of a cluster ?
3) The tasks you are trying to execute should be listed in Windows task scheduler. Is that the case ?
4) The tasks should also be listed in Schedule.xml file of the agent. Is that the case ?
5) The other DMA where everything works fine, is it in a cluster with this agent ?

Miguel Obregon [SLC] [DevOps Catalyst] commented 23rd August 2024

Hi Maria,
Can you also check in system center if there are non-existing DMAs? You could end up with a non-existing DMA when the IP address of the DMA was updated.

Maria Correa [SLC] [DevOps Advocate] commented 23rd August 2024

@Wale
1. No, none of the scheduled tasks that I try to create work on that DMA
2. It’s part of a cluster.
3. Yes, they do appear in the windows task scheduler.
4. Yes they are also present in the schedule.xml
5. Scheduled tasks work well in the other DMA that is part of the same cluster.

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Wale Oguntoyinbo [SLC] [DevOps Advocate]3.38K Posted 29th August 2024 0 Comments

Had a chance to dig deeper on the affected agent,

Running the Scheduled task directly from Windows Scheduler also was not successful: This error was logged:

==
Task Scheduler successfully completed task “\Skyline Dataminer Scheduled Task 1” , instance “{32843a8f-c5d3-427b-ade7-b700d0a91f83}” , action “C:\Windows\system32\WScript.EXE” with return code 2147942401.

The error code 2147942401 in Windows Task Scheduler corresponds to 0x80070001, which means “Incorrect function.” This error typically indicates that the task failed due to a general problem with the script, program, or command that the task is trying to execute.
==

Issue was wrong file association of the ExecuteScheduledTask.js file which was seen as a Notepad++ document instead of a JavaScript file.

This file is located in ‘C:\Skyline DataMiner\Files’ and is responsible for executing the scheduled tasks.

Fixing the file association solved the problem. From Command prompt ran the following command:

<assoc  .js=JSFile>

Maria Correa [SLC] [DevOps Advocate] Selected answer as best 23rd September 2024
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs