I’m creating a custom CData REST RSD for the Cynet API and consuming it through Incorta.
The RSD performs two calls: first a POST to obtain the access token, then a GET to the Alerts endpoint using the Bearer token.
The login works and the token is populated (length is 857 characters). I also confirmed that httpGet retrieves the raw response body from the Alerts endpoint. However, jsonproviderGet returns 0 rows.
The response from the Alerts endpoint is structured like:
{ "SyncTimeUtc": "2026-09-28T06:28:02.0628506Z", "Entities": [ { "ClientDbId": 166, "Uniqueness": "...", "IncidentName": "Host Was Not Scanned", "IncidentDescription": "..." } ]}
I am not seeing any issues with the Alert block so that should be good. For the authentication block, it can be simplified further to get down to a cleaner script but other than that it does look functional. The main issue is the XPath has not been defined correctly. Because for the JSONPath repeat element, that wildcard is *, whereas the wildcard is % for the column other:xPath values. Can you try making the changes below?
Ethem’s % change is the important part: once JSONPath selects the repeating array, the column other:xPath should use % for the repeated item, not the literal Entities segment. Also use <api:push item="alertsout" />; a bare push can emit the current input rather than the named output. If it still yields zero rows, temporarily set JSONPath=$ and compare the raw row count—that will tell you whether the issue is the repeat path or the response/auth layer.
Result: 1 row with the full JSON, starting with {"SyncTimeUtc":"...","Entities":[{"ClientDbId":1198,.... That’s 288 entities, about 2.7 MB.
What this shows
Login works and the token is passed correctly. The same token and headers work with httpGet.
The endpoint returns valid JSON with a top-level Entities array.
The problem is only in jsonproviderGet: it returns 0 rows even with JSONPath=$ and a column that definitely exists.
Current workaround
For now, I’m loading the raw response with httpGet as a single RawJson column. Then I parse it in Incorta with a PySpark Materialized View: from_json with a schema for theEntities array, then explode to get one row per alert. This works, and I get the alerts as a normal table.
I’d much rather have jsonproviderGet return proper rows directly, so I don’t need the extra step or have to load the whole response as one large string.
My questions
Is there a known reason jsonproviderGet would return 0 rows when httpGet with the same request returns the body?
Does jsonproviderGet need the default _input item, instead of a named in="alertsin" item, for the api:info column mappings to apply?
If jsonproviderGet can’t be made to work here, is there a supported way to parse the httpGet response into rows inside the RSD?
We are glad to hear you have a workaround. In the meantime regarding the issues you are seeing with jsonproviderGet it should definitely be related to a missing piece in your RSDscript. With that said find your questions addressed below:
I had one of our REST components specialists take a look at the script that you have shared above and they believe the issue is with paging logic not being enabled in your script. Would you be able to add the following line in your script and give it another try?
As for the reason why you keep getting 0 rows, what is likely happening here is that since jsonproviderGet is assuming paging is disabled by default, it is thereby permitting only one request to happen, which is the authentication one. This means the flow is not even reaching to the data request. Switching to httpGet gets around that block, but at the cost of ability to parse the JSON content.
There does not seem to be an issue with the way in=“alertsin” item has been defined. The column mapping should not be stalling unless there is an issue with how the JsonPath in the api info block has been declared or the most important one the data request is not being sent at all.
The httpGet method outputs a content attribute that contains the full response body from the API. I don’t believe we have a built in approach to support that when using only httpGet. You will need to make use of the jsonProviderGet method in order to make that work either way.
If the above does not help you still, please submit a support ticket in the CData Portal and one of our support specialists will further assist.
This website stores cookies on your computer. These cookies are used to collect information about how you interact with our website and allow us to remember you. We use this information in order to improve and customize your browsing experience and for analytics and metrics about our visitors both on this website and other media.
Review section III of our Privacy Policy for more information on cookies.
To opt out of “sale” or “sharing” of non-cookie data, visit our Privacy Rights Request Form.