cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lohitha Occasional Visitor
Occasional Visitor

Error while creating a new datasource on a gateway using REST API

Request Body:

{

"datasourceType": "File",
"connectionDetails": "{\"path\":\"D:\\\\temp\\\\folderName\\\\dataFolder\\\\custPayData.xlsx\"}",
"datasourceName": "data_source_test_1_api",

"credentialDetails": {
"credentialType": "Windows",
"credentials":"{\"credentialData\":[{\"name\":\"username\", \"value\":\"DomainName\\UserName\"},{\"name\":\"password\", \"value\":\"password\"}]}",
"useEndUserOAuth2Credentials": false,
"encryptedConnection": "NotEncrypted",
"encryptionAlgorithm": "None",
"privacyLevel": "None"
}

}

Response :

{
"error": {
"code": "DMTS_InvalidEncryptionAlgorithmError",
"pbi.error": {
"code": "DMTS_InvalidEncryptionAlgorithmError",
"parameters": {},
"details": [],
"exceptionCulprit": 1
}
}
}

Headers:


header.PNG

 

 

 

1 REPLY 1
geskes Frequent Visitor
Frequent Visitor

Re: Error while creating a new datasource on a gateway using REST API

Joining in on the party. I have the same error when trying to add azure sql db's as datasources.

 

I can set the encryptionalgorithm to RSA-OAEP to avoid this error but then I get a 

 

{'error': {'code': 'UnknownError', 'pbi.error': {'code': 'UnknownError'}}}

 

Possibly because for cloud datasources it needs to be set to none according to the docs. But maybe it can help you to set EncryptionAlgorithm to RSA-OAEP (only accepted value according to docs) and see what happens.