I've been testing the scripted connector after attending Empower 2024 and noticed that while some JSON files work fine, others do not. The issue seems to occur with nested JSON files containing very little data. I haven't been able to pinpoint the cause of the failures.
Could anyone advise where I can check the logs to identify what's going wrong? Unfortunately, I can't share the JSON example as it contains sensitive data.
Thanks.
![](https://community.dataminer.services/wp-content/uploads/wp-user-manager-uploads/2020/10/nomnom.jpg)
Hi Lucas,
Thank you for attending Empower. It's great to see that you are continuing with Data API and scripted connectors!
Data API is provided by a DxM with the same name, and scripted connectors are executed by the DxM DataAggregator. For troubleshooting, I suggest you check the log files of these DxMs. You can find DxM logging at C:\ProgramData\Skyline Communications.
If you are using DaaS, you won't be able to access the log files because you need file access to the server. We know about this issue and are working on a solution.
You can also make the HTTP request to the Data API directly to get error messages. There is a swagger file available on the server at http://localhost:34567/swagger/index.html, but this also requires direct access to the server.
If you are using DaaS, you can run your HTTP call from an automation script and print out the error message.
Hi,
Without the JSON example it will be hard to understand where it is going wrong.
To be able to further help you, would it be an option to send an e-mail to our techsupport with the JSON? If the content is too sensitive to share with our techsupport, would it be an option to replace the values with something else of dummy data, e.g. "SensitiveProperty": "SensitiveValue" becomes "SensitiveProperty": "ABC"?
Regards,
Hello Lucas,
I have been working extensively on creating elements using a connector and/or Automation Scripts. So far, I have been using the IDms
class. Here is a short example:
IDms dms = engine.GetDms();
IDma agent = dms.GetAgents().FirstOrDefault();
DmsElementId id = agent.CreateElement();
To check the logs for errors, you can use the information event console inside Cube. There is a good chance you will find valuable information about any errors you might encounter.
I hope this answer was useful to you. If not, I apologize for any misunderstanding.
![](https://community.dataminer.services/wp-content/uploads/wp-user-manager-uploads/2020/07/ghost2.jpg)
Hi, to clarify: the question is about the Scripted Connectors which is a Python, or PowerShell script that is automatically running every minute to retrieve data and then push this to the Data API, which is going to automatically create a connector and element and will fill it with data. The solution provided in your answer is about an automation script, which is something different. More info about scripted connectors can be found here: https://docs.dataminer.services/user-guide/Advanced_Modules/Data_Sources/Data_Sources.html
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)?