We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Issue in calling Create datasource API method

Hi Team,

I am trying to call create datasource API method and I am using postman for the same. Please find the details below -

Url used - https://syncfusionreportserver.ftmaintenance.net/api/v2.0/reports/data-sources

Request -
{ "Name":"DDS", "Description":"", "DataSourceDefinition":{ "ConnectString":"Data Source=WIN-O10PR71H7SE\\FTMAINTENANCEDB;Initial Catalog=Maintman", "CredentialRetrieval":"None", "ImpersonateUser":true, "Password":"somevalue", "Prompt":"None", "UserName":"somevalue", "WindowsCredentials":false, "ServerType":"SQL" } }

Body -
    "Message": "Connection string is empty.",
    "StatusCode": 3008

Cache-Control →no-cache
Content-Length →59
Content-Type →application/json; charset=utf-8
Date →Thu, 08 Nov 2018 23:08:17 GMT
Expires →-1
Pragma →no-cache
Server →Microsoft-IIS/8.5
X-AspNet-Version →4.0.30319
X-Powered-By →ASP.NET
x-error →Connection string is empty.
Can you please let me know why I am getting connection string as empty error message.
Looking forward to see your response.

2 Replies

MM Mageshyadav M Syncfusion Team November 9, 2018 08:24 AM

Hi Amanpreet,  
We are able to reproduce the reported issue when we send data in raw JSON format, but it works fine when we send data in x-www-form-urlencoded format as shown in the image below   
We are validating this issue now, and we will update details asap. 

MM Mageshyadav M Syncfusion Team November 12, 2018 05:38 AM

Hi Amanpreet,  
We were able to reproduce the reported issue and hence a support incident has been created under your account to deliver patch. Please log on to our support website to check for further updates.   

Live Chat Icon For mobile
Up arrow icon