Forum Discussion
Backend Error when publishing a composite model through the pipeline
- 9 months ago
I ended up creating parameters in the pbix for each datasource for each environment. This allowed me to set the parameter in the Settings section after I promoted via pipeline but BEFORE before I applied the new parameters in the pipeline. This allowed me to set the parameters, apply them and then refresh.
Hi andy808,
We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.
anilgavhane, grazitti_sapna & lbendlin ,Thanks for your prompt response
Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support
- andy80810 months agoResolver I
I still need support. I am on GCC, Premium Capacity. I do not see anywhere in the settings or in the pipeline that allows me to switch the datasources manually (from Dev to Test). In the Gateway Connection settings - "the datasource connected to this model"is greyed out. I do not want to publish direct to Test/Prod - I want to promote through the pipeline. This is only happening with a model that has import and Direct Query tables. I do not have any refresh turned on and I have the credentials/gateway mapping all set. I get this error message:
- Backend ErrorFailed to save modifications to the server. Error returned: '{"error":{"code":"Premium_ASWL_Error","pbi.error":{"code":"Premium_ASWL_Error","parameters":{},"details":[{"code":"Premium_ASWL_Error_Details_Label","detail":{"type":1,"value":"We are unable to retrieve the credentials for the data source '<ccon>{\"address\":{\"kind\":\"SQL\"}}</ccon>'. This error might occur when a request attempts to add a new data source to a semantic model and perform a data refresh in a single transaction, which is not supported. In such cases, add new data sources in a separate transaction first and then separately perform the data refresh."}}],"exceptionCulprit":0}}} '.
- andy80810 months agoResolver I
Hi, checking in here to see if there is more quidance. It looks to be my lack of understanding on how to achieve STEP 2 in a GCC Premium Capacity. How do I do this when the data source is greyed out/not manually able to update:
- Backend Limitation: Power BI Premium does not support adding a new data source and refreshing the semantic model in the same transaction. This triggers the Premium_ASWL_Error.
How to Fix It
1. Split the Deployment into Two Steps
- Step 1: Deploy the model from Dev to Test using the pipeline without triggering a refresh.
- Step 2: After deployment, manually update the data source credentials in Test.
- Step 3: Perform a separate refresh after the credentials are saved.