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
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

[Scripted connectors] “Task was canceled”

Solved387 views4th October 2024Data Aggregator DxM Scripted Connectors
1
Ömer Eryaman [DevOps Advocate]520 2nd October 2024 0 Comments

Hello,

I wrote a scripted connector and I don’t know what the error message mean.

[2024-10-02 16:15:42.099 ERR]ScriptExecutor#201027357 failed to run script ‘Data Sources\Scripted Connectors\8413128f-ef3a-4141-a989-129235c8415d.py’ A task was canceled.[DataAggregator.Application.Services.Scheduler.Jobs.Executors.ScriptExecutor]

This is my python script : 8413128f-ef3a-4141-a989-129235c8415d.py

It appears a lot in the SLDataAggregator_042.txt

Local, my script work fine without any issues.
The output is a JSON.

At the end of the code, I execute these command:

session = requests.Session()
header_params = {
    “identifier”: ‘Link Coverage’,
    “type”: ‘APi Call’
}
session.put(“http://localhost:34567/api/data/parameters”, json=json_string, headers=header_params)

Thanks in advance.

Ömer Eryaman [DevOps Advocate] Selected answer as best 4th October 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
João Severino [SLC] [DevOps Catalyst]13.02K Posted 2nd October 2024 5 Comments

Hi,

Could you check that log file to see if you see any entry close to that one indicating that the Scripted Connector has started?

If you find one, please let us know if the time between the 2 is roughly 1 minute.

Because if that is the case you are likely running into one of the limitations mentioned here Limitations | DataMiner Docs where Scripted Connectors run at a fixed frequency of 1 minute and to prevent launching multiple instances to do the same the running one gets canceled after 1 minute.

João Severino [SLC] [DevOps Catalyst] Posted new comment 7th October 2024
Ömer Eryaman [DevOps Advocate] commented 2nd October 2024

hi thanks for your answer
where can i find the log file ?

is the SLDataAggregator_042.txt the log file you describe ?

João Severino [SLC] [DevOps Catalyst] commented 2nd October 2024

Hi, it is indeed that file, it should be near where you find those error logs.
Alternatively, you could check how long the script takes to run locally to compare and see if it is likely to exceed the 1-minute threshold.

Ömer Eryaman [DevOps Advocate] commented 4th October 2024

okay thanks i will check my script

Ömer Eryaman [DevOps Advocate] commented 7th October 2024

The script run locally around 25–30 seconds. max 40 sec

It can be possible that my JSON requested is too long ?

João Severino [SLC] [DevOps Catalyst] commented 7th October 2024

There is a limitation where Data API rejects requests with payloads exceeding 1 MB, however, it should return an HTTP error code and not have a message indicating cancellations.

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