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
    • 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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about 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)
      • Book your Agile Fundamentals training
      • Book your Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

How should the column array be structured for NotifyProtocol(193) if primary key is not at idx=”0″?

24 views3 hours agoFillarray
1
Jason Wan [SLC] [DevOps Advocate]368 7 hours ago 0 Comments

Hi everyone,

I am working on a connector where a table's primary key was changed from index="0" to another column index in <ArrayOptions> (while keeping the existing <ColumnOption idx="..."> order unchanged).
For example, suppose a table (PID 1000) has 4 columns, and the primary key is changed from idx="0" to idx="2":

<ArrayOptions index="2">
<ColumnOption idx="0" pid="1001" type="retrieved" options="" />
<ColumnOption idx="1" pid="1002" type="retrieved" options="" />
<ColumnOption idx="2" pid="1003" type="retrieved" options="" /> <!-- Primary Key -->
<ColumnOption idx="3" pid="1004" type="retrieved" options="" />
</ArrayOptions>

When filling this table using protocol.NotifyProtocol(193 /*NT_FILL_ARRAY*/, new object[] { 1000, true }, tableContent):

What should the tableContent object[] look like so that both the primary key (idx="2", PID 1003) and the column at idx="0" (PID 1001) are populated into their respective columns?

1. If I pass [col1001, col1002, col1003_PK, col1004], NotifyProtocol(193) treats the first element (tableContent[0]) as the primary key (PID 1003), which in the current situation is wrong, as the primary key should be col1003.

2. If I pass [col1003_PK, col1001, col1002, col1004], it also seems incorrect, as the position is wrong right now. (now col1001 is in col1002's position and col1002 is in col1003 position...)

3. Another option will be [col1003_PK, col1001, col1002, col1003_PK, col1004]

I tried the 3rd option, and it seems to work. What is the correct way to fill the table in this situation?

Thanks in advance!

Tiago Pina [SLC] [DevOps Member] Answered question 3 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Tiago Pina [SLC] [DevOps Member]526 Posted 3 hours ago 0 Comments

Hi Jason

This question has come up before. Check this out Is it possible to use an ArrayOptions tag with an index different than 0? - DataMiner Dojo

Regards

Tiago Pina [SLC] [DevOps Member] Answered question 3 hours ago
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)
Privacy Policy • Terms & Conditions • Contact

© 2026 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