This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hello,
I had created a Variable library with guid type , but when I am using that same variable in pipeline dynamically , it is being used as String. Basically , I have inserted my connection string in variable of type GUID , which when I am trying to access dynamically in connections , it is giving me below error
Failed to resolve the connection.
Error Message: {
"hasFirewallBypassToken": false,
"errorResponse": {
"error": {
"code": "400",
"message": "Failed to resolve connection 'pipeline().libraryVariables[\n concat('WorkspaceVariables_', pipeline().parameters.p_connection_name, '_connection')\n]\n' referenced in activity run '343d1e31-6125-44b4-bf17-4d28a3cf4078'. ErrorCode: 'InvalidExternalReferenceConnection'. ErrorMessage: 'Invalid datasourceObjectId: pipeline().libraryVariables[\n concat('WorkspaceVariables_', pipeline().parameters.p_connection_name, '_connection')\n]\n passed. It should be a valid Guid.'."
}
}
}
Below are screenshots
Hi @Krrish12 ,
Thanks for using Fabric Community.
Currently, parameterization support for connections is not available in Fabric Data Factory. However, this capability is expected in future releases. You can follow the Fabric roadmap: Microsoft Fabric Roadmap for upcoming enhancements.
As a workaround, instead of dynamically resolving the connection GUID through libraryVariables, you can consider the following approaches:
Use If/Switch activities and assign static connections.
Store the connection GUID in a pipeline parameter and pass the actual GUID value directly.
Best Regards.
Check out the April 2026 Fabric update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
| User | Count |
|---|---|
| 10 | |
| 10 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 20 | |
| 14 | |
| 13 | |
| 8 | |
| 6 |