Forum Discussion
error connecting to data source for custom connector
- 2 years ago
I figured out the problem. My function was made to accept optional parameter and I was not passing it in test connection.. I just started passing something dummy there and it started working
Hi, pbipoweruser123
I checked your error and you can check if your custom connector is correct in parameter passing.
You are currently passing a parameter to a function that expects a value of zero. You should check your function to make sure it is implemented correctly, e.g. if it really doesn't need to accept parameters, you should either accept your parameter in the right place or pass in a 0 parameter for the current function to run properly.
To further confirm the problem, you can keep a copy of your custom connector and then try to simplify the connector code to isolate the problem. For example, use authorization validation as one unit of test and request data as another, and then test separately in which unit the problem occurs. Perform further testing within the unit.
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I figured out the problem. My function was made to accept optional parameter and I was not passing it in test connection.. I just started passing something dummy there and it started working
- Anonymous2 years agoNot applicable
Hi, pbipoweruser123
Thank you very much for your reply. You can mark your reply as a solution so that others in the community can quickly find an answer if they have a similar problem with a custom connector.
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.