Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more

Reply
Krrish12
New Member

About dtype changes to String automatically even defined as GUID in Variable Library

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

Krrish12_0-1779190986251.png

 

Krrish12_1-1779191137515.png

 

1 ACCEPTED SOLUTION
v-echaithra
Community Support
Community Support

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.

View solution in original post

1 REPLY 1
v-echaithra
Community Support
Community Support

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.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.