<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CopyJob → Snowflake: Database name is hard‑coded in activity JSON and cannot be parameterised in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/CopyJob-Snowflake-Database-name-is-hard-coded-in-activity-JSON/m-p/5144069#M9293</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1574313" data-lia-user-login="MashfiqueFahim" class="lia-mention lia-mention-user"&gt;MashfiqueFahim&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for submitting your question to the Microsoft Fabric Community Forum, and thanks to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1357760" data-lia-user-login="Tamanchu" class="lia-mention lia-mention-user"&gt;Tamanchu&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1385263" data-lia-user-login="rizalard0684" class="lia-mention lia-mention-user"&gt;rizalard0684&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;for offering helpful suggestions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you let us know if the suggested solution resolved your issue?If you still need help, please share more details so we can assist you further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2026 08:49:29 GMT</pubDate>
    <dc:creator>v-karpurapud</dc:creator>
    <dc:date>2026-04-06T08:49:29Z</dc:date>
    <item>
      <title>CopyJob → Snowflake: Database name is hard‑coded in activity JSON and cannot be parameterised</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/CopyJob-Snowflake-Database-name-is-hard-coded-in-activity-JSON/m-p/5142954#M9285</link>
      <description>&lt;P&gt;When using CopyJob in Microsoft Fabric to load data into Snowflake, the selected Database becomes permanently embedded inside the CopyJob’s internal JSON definition. Unlike the connection (server, user, warehouse), the Database is not part of the connection object and is not exposed to dynamic content or environment variables.&lt;/P&gt;&lt;P&gt;As a result, when deploying pipelines from Dev → SIT → UAT using Deployment Pipelines, the CopyJob in SIT/UAT continues to write to the Dev Snowflake database, even though the connection has been correctly parameterised and switched to SIT/UAT.&lt;/P&gt;&lt;P&gt;The CopyJob JSON shows the database name hard‑coded, and this JSON is not editable in the UI or via dynamic content.&lt;/P&gt;&lt;P&gt;This prevents environment‑agnostic pipelines and breaks standard Dev→Test→Prod deployment patterns.&lt;/P&gt;&lt;P&gt;Detailed Problem Description&lt;BR /&gt;1. Fabric Snowflake connections do not include a Database field&lt;BR /&gt;The Snowflake connector only supports:&lt;/P&gt;&lt;P&gt;Server (account URL)&lt;/P&gt;&lt;P&gt;Username&lt;/P&gt;&lt;P&gt;Password&lt;/P&gt;&lt;P&gt;Warehouse&lt;/P&gt;&lt;P&gt;There is no field for Database or Schema.&lt;/P&gt;&lt;P&gt;2. CopyJob stores the Database inside the activity JSON, not the connection&lt;BR /&gt;When configuring a CopyJob in Dev:&lt;/P&gt;&lt;P&gt;The user selects a Snowflake database (e.g., DATA_LAKE_DEV)&lt;/P&gt;&lt;P&gt;Fabric stores this value inside the CopyJob JSON&lt;/P&gt;&lt;P&gt;This value is not parameterisable&lt;/P&gt;&lt;P&gt;This value is not editable after deployment&lt;/P&gt;&lt;P&gt;Dynamic content is not supported for this field&lt;/P&gt;&lt;P&gt;3. The hard‑coded JSON looks like this&lt;BR /&gt;Inside the CopyJob definition, the destination section contains:&lt;BR /&gt;"destination": {&lt;BR /&gt;"type": "SnowflakeTable",&lt;BR /&gt;"connectionSettings": {&lt;BR /&gt;"type": "Snowflake",&lt;BR /&gt;"typeProperties": {&lt;BR /&gt;"database": "DATA_LAKE_DEV"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;This JSON is not exposed in the UI, not editable, and not overridable via variable libraries.&lt;/P&gt;&lt;P&gt;4. Deployment Pipelines cannot adjust the Snowflake database&lt;BR /&gt;After deploying to SIT:&lt;/P&gt;&lt;P&gt;The connection correctly switches to SIT&lt;/P&gt;&lt;P&gt;But the CopyJob still contains "database": "DATA_LAKE_DEV"&lt;/P&gt;&lt;P&gt;The UI does not allow changing the database&lt;/P&gt;&lt;P&gt;Dynamic content is not supported&lt;/P&gt;&lt;P&gt;Incremental CopyJob mode does not support Query mode (so no workaround)&lt;/P&gt;&lt;P&gt;5. Result: SIT and UAT pipelines write into the Dev database&lt;BR /&gt;This breaks:&lt;/P&gt;&lt;P&gt;Environment isolation&lt;/P&gt;&lt;P&gt;Data governance&lt;/P&gt;&lt;P&gt;CI/CD deployment patterns&lt;/P&gt;&lt;P&gt;Automated promotion workflows&lt;/P&gt;&lt;P&gt;Impact&lt;BR /&gt;CopyJobs cannot be made environment‑aware.&lt;/P&gt;&lt;P&gt;Pipelines deployed to SIT/UAT continue writing into Dev Snowflake databases.&lt;/P&gt;&lt;P&gt;Incremental loads cannot be parameterised.&lt;/P&gt;&lt;P&gt;Deployment Pipelines lose their value for Snowflake workloads.&lt;/P&gt;&lt;P&gt;Teams must manually recreate CopyJobs in each environment, which is error‑prone and not scalable.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Requested Enhancements&lt;BR /&gt;1. Add Database and Schema fields to the Snowflake connection object&lt;BR /&gt;This would align Fabric with ADF and allow environment‑specific connections.&lt;/P&gt;&lt;P&gt;2. Allow Database and Schema to be parameterised in CopyJob&lt;BR /&gt;Expose these fields to dynamic content so variable libraries can control them.&lt;/P&gt;&lt;P&gt;3. Allow editing the Database/Schema in CopyJob after deployment&lt;BR /&gt;This would allow SIT/UAT to rebind the target database without recreating the activity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 09:56:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/CopyJob-Snowflake-Database-name-is-hard-coded-in-activity-JSON/m-p/5142954#M9285</guid>
      <dc:creator>MashfiqueFahim</dc:creator>
      <dc:date>2026-04-02T09:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: CopyJob → Snowflake: Database name is hard‑coded in activity JSON and cannot be parameterised</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/CopyJob-Snowflake-Database-name-is-hard-coded-in-activity-JSON/m-p/5142965#M9286</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1574313" data-lia-user-login="MashfiqueFahim" class="lia-mention lia-mention-user"&gt;MashfiqueFahim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great catch this is a real pain point when building environment-agnostic pipelines with Snowflake as a destination. You're right that the database name gets hard-coded in the CopyJob activity JSON, making it impossible to parameterize across Dev → SIT → UAT.&lt;/P&gt;&lt;P&gt;Why this happens:&lt;/P&gt;&lt;P&gt;The Snowflake connection in Fabric only stores server, username, password, and warehouse. The database and schema are set at the activity level inside the CopyJob JSON definition, not in the connection object. Since CopyJob doesn't support dynamic content for these fields, you're stuck with whatever value was selected at design time.&lt;/P&gt;&lt;P&gt;Workarounds until Microsoft adds native support:&lt;/P&gt;&lt;P&gt;1. Use a Data Pipeline with Copy Activity instead of CopyJob&lt;/P&gt;&lt;P&gt;Copy Activity in Data Factory pipelines supports parameterization. You can create pipeline parameters for the database and schema, then use dynamic content:&lt;BR /&gt;@pipeline().parameters.SnowflakeDatabase&lt;BR /&gt;This way, you configure different parameter values per deployment stage using Deployment Rules.&lt;/P&gt;&lt;P&gt;2. Use a Notebook with Snowflake Spark connector&lt;/P&gt;&lt;P&gt;If you need full control, bypass CopyJob entirely and use PySpark with the Snowflake connector:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can then set spark.snowflake.database differently per environment using %%configure or environment variables.&lt;/P&gt;&lt;P&gt;3. Use Deployment Rules to swap connections&lt;/P&gt;&lt;P&gt;As a partial workaround, create separate Snowflake connections per environment (e.g., Snowflake_DEV, Snowflake_SIT, Snowflake_UAT) where each connection points to a different default database. Then configure Deployment Rules in your deployment pipeline to swap the connection at each stage.&lt;/P&gt;&lt;P&gt;This doesn't solve the hard-coded database issue directly, but it ensures the right database is used per environment.&lt;/P&gt;&lt;P&gt;Recommendation:&lt;/P&gt;&lt;P&gt;I'd suggest submitting this as a&amp;nbsp;Feature Request&amp;nbsp;on&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/idb-p/fbc_ideas" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Fabric-Ideas/idb-p/fbc_ideas&lt;/A&gt;&amp;nbsp;exposing database/schema as parameterizable fields in CopyJob would benefit everyone building multi-environment pipelines with Snowflake. I'd upvote it!&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/create-rules?tabs=new-ui" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/create-rules?tabs=new-ui&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps! Let me know which approach works best for your setup.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 10:07:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/CopyJob-Snowflake-Database-name-is-hard-coded-in-activity-JSON/m-p/5142965#M9286</guid>
      <dc:creator>Tamanchu</dc:creator>
      <dc:date>2026-04-02T10:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: CopyJob → Snowflake: Database name is hard‑coded in activity JSON and cannot be parameterised</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/CopyJob-Snowflake-Database-name-is-hard-coded-in-activity-JSON/m-p/5143396#M9291</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1574313" data-lia-user-login="MashfiqueFahim" class="lia-mention lia-mention-user"&gt;MashfiqueFahim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe&amp;nbsp;this is a limitation in Fabric today.&lt;/P&gt;&lt;P&gt;What’s happening:&lt;/P&gt;&lt;P&gt;- Snowflake connection in Fabric doesn’t include Database / Schema&lt;BR /&gt;- When you pick a database in CopyJob, Fabric hard‑codes it inside the activity JSON&lt;BR /&gt;That hardcoded value can’t be parameterised, can’t be changed after deployment and&amp;nbsp;is NOT updated by deployment pipelines.&lt;BR /&gt;So when you deploy Dev → SIT → UAT, the connection swaps correctly, but the CopyJob still writes to the Dev database.&amp;nbsp;This breaks environment "agnostic" pipelines and CI/CD.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Some workarounds in my opinion:&lt;BR /&gt;1. Use a Notebook + Snowflake Spark connector&lt;/P&gt;&lt;P&gt;(+) Full control over database per environment&lt;BR /&gt;(-) Heavier than CopyJob, but reliable&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/fabric/data-engineering/spark-connectors-snowflake" target="_blank"&gt;https://learn.microsoft.com/fabric/data-engineering/spark-connectors-snowflake&lt;/A&gt;&lt;BR /&gt;2. Separate connections per environment&lt;/P&gt;&lt;P&gt;(+) Helps reduce risk&lt;BR /&gt;(-) Still doesn’t truly fix the hard‑coded database issue&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/fabric/data-factory/create-snowflake-connection" target="_blank"&gt;https://learn.microsoft.com/fabric/data-factory/create-snowflake-connection&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Suggest you&amp;nbsp;raise this as a Fabric Ideas request, this will affect pretty much every enterprise Snowflake setup.&lt;BR /&gt;Link here: &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/idb-p/fbc_ideas" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Fabric-Ideas/idb-p/fbc_ideas&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2026 12:11:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/CopyJob-Snowflake-Database-name-is-hard-coded-in-activity-JSON/m-p/5143396#M9291</guid>
      <dc:creator>rizalard0684</dc:creator>
      <dc:date>2026-04-03T12:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: CopyJob → Snowflake: Database name is hard‑coded in activity JSON and cannot be parameterised</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/CopyJob-Snowflake-Database-name-is-hard-coded-in-activity-JSON/m-p/5144069#M9293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1574313" data-lia-user-login="MashfiqueFahim" class="lia-mention lia-mention-user"&gt;MashfiqueFahim&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for submitting your question to the Microsoft Fabric Community Forum, and thanks to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1357760" data-lia-user-login="Tamanchu" class="lia-mention lia-mention-user"&gt;Tamanchu&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1385263" data-lia-user-login="rizalard0684" class="lia-mention lia-mention-user"&gt;rizalard0684&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;for offering helpful suggestions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you let us know if the suggested solution resolved your issue?If you still need help, please share more details so we can assist you further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 08:49:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/CopyJob-Snowflake-Database-name-is-hard-coded-in-activity-JSON/m-p/5144069#M9293</guid>
      <dc:creator>v-karpurapud</dc:creator>
      <dc:date>2026-04-06T08:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: CopyJob → Snowflake: Database name is hard‑coded in activity JSON and cannot be parameterised</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/CopyJob-Snowflake-Database-name-is-hard-coded-in-activity-JSON/m-p/5145814#M9297</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1574313" data-lia-user-login="MashfiqueFahim" class="lia-mention lia-mention-user"&gt;MashfiqueFahim&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We have not received a response from you regarding the query and were following up to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 11:53:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/CopyJob-Snowflake-Database-name-is-hard-coded-in-activity-JSON/m-p/5145814#M9297</guid>
      <dc:creator>v-karpurapud</dc:creator>
      <dc:date>2026-04-09T11:53:57Z</dc:date>
    </item>
  </channel>
</rss>

