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

Automation: error CS8179: Predefined type ‘System.ValueTuple`2’ is not defined or imported

Solved1.02K views21st January 2022Automation
2
Jeroen Geldhof [SLC] [DevOps Enabler]5.05K 20th January 2022 1 Comment

Suddenly an automation script has parsing errors, and I’m not quite sure why it’s suddenly giving this error or how to resolve it.

Message : Automation script ‘Sencore Video PID set’ failed to execute (ScriptErrorType: ErrorType) : (after retries) (Code: 0x80040251) Skyline.DataMiner.Net.Exceptions.DataMinerException: No Assembly found for cookie 5
(40,23): error CS8179: Predefined type ‘System.ValueTuple`2’ is not defined or imported
(40,72): error CS8179: Predefined type ‘System.ValueTuple`2’ is not defined or imported
(40,54): error CS8179: Predefined type ‘System.ValueTuple`2’ is not defined or imported
(46,17): error CS8179: Predefined type ‘System.ValueTuple`2’ is not defined or imported
(47,21): error CS8179: Predefined type ‘System.ValueTuple`2’ is not defined or imported
(67,62): error CS8179: Predefined type ‘System.ValueTuple`2’ is not defined or imported
(67,51): error CS8179: Predefined type ‘System.ValueTuple`2’ is not defined or imported
(99,8): error CS8137: Cannot define a class or member that utilizes tuples because the compiler required type ‘System.Runtime.CompilerServices.TupleElementNamesAttribute’ cannot be found. Are you missing a reference?
(99,8): error CS8179: Predefined type ‘System.ValueTuple`2’ is not defined or imported
(99,38): error CS8179: Predefined type ‘System.ValueTuple`2’ is not defined or imported
(99,38): error CS8179: Predefined type ‘System.ValueTuple`2’ is not defined or imported
(27,9): warning CS0219: The variable ‘valuesServiceId’ is assigned but its value is never used
(29,7): warning CS0219: The variable ‘tempId’ is assigned but its value is never used
(226,18): warning CS1701: Assuming assembly reference ‘mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ used by ‘Interop.SLDms’ matches identity ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ of ‘mscorlib’, you may need to supply runtime policy
(230,4): warning CS1701: Assuming assembly reference ‘mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ used by ‘Interop.SLDms’ matches identity ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ of ‘mscorlib’, you may need to supply runtime policy

The script has following imports

using Skyline.DataMiner.Automation;
using Skyline.DataMiner.Net.Messages;
using Interop.SLDMS;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;

It also has following dll references
System.Linq.dll
System.Core.dll
C:\Skyline DataMiner\Files\Interop.SLDMS.dll

Jeroen Geldhof [SLC] [DevOps Enabler] Selected answer as best 21st January 2022
Miguel Obregon [SLC] [DevOps Catalyst] commented 20th January 2022

Could it be the case that the .NET framework has been updated/patched?
I quickly checked a similar error in StackOverflow:
https://stackoverflow.com/questions/38382971/predefined-type-system-valuetuple´2´-is-not-defined-or-imported

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Matthias Declerck [SLC] [DevOps Advocate]2.75K Posted 21st January 2022 1 Comment

Hi,

This error log reminds me of a known issue, namely one of the files of the upgrade packages was not correctly updated. Most of the time, SLHelper is affected with this problem. I’m not sure if the same solution would help to resolve the problem in Automation.
Investigation: please do check the System.ValueTuple file in C:\Skyline DataMiner\Files\

Proposal: it must be replaced to version 4.6.26515.6 if it has a older version.
– you can change this file manually.
For Skyline users: I put a copy in S:\Public\DataMiner Software\Downloads\
– Upgrade DataMiner to a more recent version.
This issue is resolved in summer of 2021.

Hope this helps you further

Jeroen Geldhof [SLC] [DevOps Enabler] Selected answer as best 21st January 2022
Jeroen Geldhof [SLC] [DevOps Enabler] commented 21st January 2022

It’s indeed an older version. I’ll give it a try

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