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] Creating new Element with same Protocol

Solved330 views20th September 2024Scripted Connectors
1
Ömer Eryaman [DevOps Advocate]520 20th September 2024 0 Comments

Hello,

I created an element with Scripted Connectors with these Header Parameters,

header_params = {
    “identifier”: ‘DWH’,
    “type”: ‘DWH Traffic’,
}

Now I modified the Code and deleted a column.

The element keep the delete column and write not initialized.

How to delete the column in the Dataminer ?

I tried to delete the element, but it won’t appear / created again from the Scripted Connectors.

from datetime import datetime, timedelta
import time
import requests

session = requests.Session()
data = “”
header_params = ”

header_paramss = {
“identifier”: ‘Rest’,
“type”: ‘DWH Traffic’,
}

json_string = ”’
{
“People”: [
{
“Id”: 1,
“Name”: “John”,
“Age”: 25
},
{
“Id”: 2,
“Name”: “Alice”,
“Age”: 30
},
{
“Id”: 3,
“Name”: “Bob”,
“Age”: 28
}
{
“Id”: 4,
“Name”: “Frank”,
“Age”: 18
}
]
}
”’

time.sleep(2)
end_time = datetime.now()
fend_time = end_time.strftime(“%d/%m/%Y, %H:%M:%S”)
duration = end_time – start_time
sec = duration.total_seconds()
print(f’Duration for the process took: {sec:.2f} seconds’)
print(“End Timestamp:”, fend_time)
request_body = json_string
header_params = header_paramss
print(request_body)
session.put(“http://localhost:34567/api/data/parameters”, json=request_body, headers=header_params)

Ömer Eryaman [DevOps Advocate] Selected answer as best 20th September 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
João Severino [SLC] [DevOps Catalyst]13.02K Posted 20th September 2024 5 Comments

Hi,

Data API and Scripted Connectors do not support at present the removal of parameters or columns.

It is something that is in our roadmap but for now, the only option to have those parameters removed is to delete the element and the associated auto-generated connector in the Protocols & Templates module in Cube.

Then, the next time your Scripted Connector executes, a new element will be created and will no longer have the old parameters.

Ömer Eryaman [DevOps Advocate] Posted new comment 20th September 2024
Ömer Eryaman [DevOps Advocate] commented 20th September 2024

Do I need to delete the protocol too ?

DWH Traffic ?

João Severino [SLC] [DevOps Catalyst] commented 20th September 2024

Yes, that is the case currently and it is a limitation we will address in an upcoming release.

Ömer Eryaman [DevOps Advocate] commented 20th September 2024

After deleting the protocol, the data source don’t create an element anymore ?
do I need to refresh something ?

João Severino [SLC] [DevOps Catalyst] commented 20th September 2024

After deleting, the data source should create a new element the next time you execute it.
There was an issue associated with this in an earlier version of DataAPI but in the latest one it should be addressed so if that is not the case then there could be an issue in your system.

Ömer Eryaman [DevOps Advocate] commented 20th September 2024

I see,
I need always rename the Header parameter, so the system create new element

I will check on our system
thank you

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