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
  • Blog
  • 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
    • DataMiner Insights
      • Security
      • System Architecture
      • DataMiner Releases & Updates
    • 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
    • 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

Data Sources element not showing any data

Solved362 views8th January 2025#datasources #scripted connector Data API
2
Apurva Tandon [DevOps Advocate]1.61K 7th January 2025 0 Comments

Hi,
I have datasources script in python which runs fine and also I can see the element also got created, but when I click on that element it shows that no visible data pages available.
in http://localhost:34567/swagger/index.html when test on api/parameters I see that I get "Sequence contains no element" what can be the reason?

Apurva Tandon [DevOps Advocate] Selected answer as best 8th January 2025

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
José Silva [SLC] [DevOps Catalyst]1.32K Posted 8th January 2025 1 Comment

Hi Apurva,

I’m not sure if this will help with your debugging, but the error "Sequence contains no element" typically occurs when LINQ methods like .First(), .Single(), etc., are used on a collection that is either empty or null. These methods assume the collection contains at least one element and will throw this error if none are found.

To avoid this, it’s better to use .FirstOrDefault() or .SingleOrDefault(). These methods return null when no elements are present, allowing you to handle such cases more gracefully. After retrieving the result, you can add a check to see if it’s null or empty before proceeding with the logic.

Using this approach can help ensure your code is more robust and avoids unexpected exceptions when dealing with empty collections.

Apurva Tandon [DevOps Advocate] Posted new comment 8th January 2025
Apurva Tandon [DevOps Advocate] commented 8th January 2025

Hi,
In API on swagger I pass this type of JSON and still get Sequence contains no element cant figure out what issue
{ "components": [
{
"AlarmId": 3614501,
"ElementId": 290,
"ElementName": "Sky-News-TXCore",
"Severity": "Critical",
"ParameterDescription": "Memory Usage (Servers Info) sky-news-pi-ams",
"ParameterValue": "70.000000",
"StartTime": "/Date(1736263098000)/",
"ServiceInvolved": [
"TX Core"
],
"ClusterName": "Contribution"
},
{
"AlarmId": 3614481,
"ElementId": 312,
"ElementName": "MUN-X20-FRM-003_1_2_4_19",
"Severity": "Critical",
"ParameterDescription": "Signal Loss (Decoder Services) 3/Auto First Service [239.202.1.4:5000] 3G-1BD",
"ParameterValue": "BLACK_FRAME",
"StartTime": "/Date(1736262135000)/",
"ServiceInvolved": [

],
"ClusterName": "Contribution"
}
]
}

You are viewing 1 out of 2 answers, click here to view all answers.
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin