Forum Discussion
Dynamically set source connection in copy activity and connection in lookup, script activity
- 1 year ago
Unfortunately, that is not possible yet. One workaround is to create a switch on the workspace id and duplicate your activity with the correct connection for that environment. I'm fully aware that that is not maintainable in the long run, but could be a short term workaround until parameters are possible.
I personnaly solved this problem by creating a dummy connection to "https://" (nothing else). This is accepted by Fabric.
I can then set the dynamic url using the relative url part.
Can you please expand with an example? I am looking to do this same thing
- AngryFabricUser1 year agoNew Member
Hello.
I answered too fast about this one... Fabric does accept to create a "dummy" connection for url "https://" , and it does accept you to add a dynamic relative url to fill the missing part.... BUT this does NOT work .... configuration is "accepted", but when you run the pipeline with the copy data activity it just fails... with a cryptic error.. so.. non.. no way to do that for now.... (was soooo easy in ADF or synapse... Fabric is a dramatic rollback 5 years ago for us...)
- javito4 months agoNew Member
I solved this creating a REST connection source (I tested with an HTTP connection and it also works) type with a regular url like https://google.com then, in the relative URL driection, I used the URL I want to connect, in my case I tested an API that gives a JSON, the destiny I used was a lakehouse file. When I run the pipeline, my empty file was full of the JSON I wanted to.