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

Duplicating a element in another dma with C#

Solved711 views22nd April 2025Automation IDma
0
João Azevedo237 3rd October 2024 3 Comments

Hello everyone, can someone help with the following error?

(Code: 0x80004003) Skyline.DataMiner.Net.Exceptions.DataMinerException: Array cannot be null.
Parameter name: bytes ---> System.ArgumentNullException: Array cannot be null.

The code i'm using is this:

public void Run(Engine engine)
{
try
{
var dms = engine.GetDms();
var newElement = dms.GetElement("SmartWifi Alarm Collector");
IDma dma = dms.GetAgent(agentid);
newElement.Duplicate("SmartWifi Alarm Collector - BKP2", dma);
}
catch
{
throw;
}
}

With this code i can access the agent, get all the info, but when i try to duplicate a element from another agent into it, i get the error listed above.

João Azevedo Selected answer as best 22nd April 2025
Davor Joleski [DevOps Enabler] commented 4th October 2024

Duplication Method Parameters: Check the Duplicate method’s implementation. Ensure that the parameters you are passing (“SmartWifi Alarm Collector – BKP2″ and dma) are valid and that there’s no underlying assumption that might lead to a null reference.

catch (Exception ex)
{
Console.WriteLine($”Error: {ex.Message}”);
throw; // Optionally rethrow or handle it differently
}

try this to your code where ever is stoped i think

João Azevedo commented 4th October 2024

Hello Davor, i think everything is right, the Duplicate method requires a (string name, IDma dma), i’m passing that IDma and if i try to access the data inside it i can and i can see the data, but if i try to use that IDma to set as a value needed by Duplicate method, i get the error above. Maybe it’s a bug?

Marieke Goethals [SLC] [DevOps Catalyst] commented 18th April 2025

Hi João,
I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer that has been most helpful for you (using the ✓ icon)?

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Pedro Debevere [SLC] [DevOps Enabler]1.80K Posted 9th October 2024 4 Comments

Hi João, can you take an export of the element you're trying to duplicaate and send the resulting dmimport package to support.data-acquisition@skyline.be (together with the full stack trace) so we can have a look at what the issue might be?

João Azevedo Selected answer as best 22nd April 2025
João Azevedo commented 9th October 2024

Hi Pedro, im trying send a email to that address with the required information but im getting the following error: “550 5.0.350 One or more of the attachments in your email is of a file type that is NOT allowed by the recipient’s organization.” and the only attachment in the email is the export file of the element, i have tried put it in a .zip file but still getting the same error. Would there be a specific way to send that information?

Pedro Debevere [SLC] [DevOps Enabler] commented 11th October 2024

Hi João, I see, in that case can you send an email to techsupport@skyline.be? Our support team will then provide a secure link where you can upload any necessary files for further analysis. When reaching out, please describe the issue in detail, including the steps taken and any error messages (like the ones you shared here). In the mail, you can also link to this Dojo question.

João Azevedo commented 11th October 2024

Hi Pedro, o have sent the email as per guidance. Thank you!

Marieke Goethals [SLC] [DevOps Catalyst] commented 28th January 2025

A quick update on this: This issue has been resolved, and the fix will be included in the next update of the class library.

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