I’ve detected that if you have the same table in DSA and MDW. let say DSA.Invoices and MDW.Invoices for example, and you define partition for that, both tables share the same partition schemas and partition functions in the SQL Server database.
It’s a problem when you try to add or remove field from whatever table.
The currency tables above have the same template and partition settings, and both deployed and executed successfully. However, once I deleted the “currencytype” field in the Sales data area (i.e. a field from the source table), I received the following error upon deployment of the Sales data area.
In order to resolve the error, I went back into table settings and set the table partition template to “None” on both tables. Then I was able to deploy successfully again.
I then changed the table partitioning back to the previous settings and it worked again. So as a workaround, can you please try setting the template to “None” on both tables, and deploy, before enabling the table partition template again?
I’ve two tables with the same name in diferent schemas:
The partition configuration it’s the same in both tables:
Now, I’m not be able to reproduce the error, but in the SQL Server both tables share the same partition schemas and partition functions and if one deploy & execute proccess try to drop and recreate one of the tables it gets an error.
Are your databases for DSA and MDW separate or the same one? If the latter, do you have a default schema behaviour for all items in DSA and MDW? If not, I guess it may be that TX overwrites the DSA objects with MDW ones if you deploy the latter.
OK - could it be that some central objects for partitioning end up in the aux schema and then have the same name? I usually put the layer name in all schemas, especially when I am sharing a database. So dsa_etl, dsa, mdw_etl, mdw, etc.
Hi @rory.smith the problem isn’t in the schema name, it’s in the object name, it cannot be the same because in SQL server the partition schema and the function are created using the object name, without the schema.
The currency tables above have the same template and partition settings, and both deployed and executed successfully. However, once I deleted the “currencytype” field in the Sales data area (i.e. a field from the source table), I received the following error upon deployment of the Sales data area.
In order to resolve the error, I went back into table settings and set the table partition template to “None” on both tables. Then I was able to deploy successfully again.
I then changed the table partitioning back to the previous settings and it worked again. So as a workaround, can you please try setting the template to “None” on both tables, and deploy, before enabling the table partition template again?
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.