You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to https://www.yammer.com/dynamicsaxfeedbackprograms/threads/2228926546395136, when a database sync is executed on a sandbox (T2+) environment (probably as part of a deployable package deployment), a field SYSSHARINGDATAAREAID is added to multiple tables and views are created with that field (e.g. VENDLEDGER_SHARINGVIEW).
When the sandbox database is then exported and imported to a T1 environment, the fields are removed from the tables, but the views with the now invalid field remain.
This causes an error when a .bacpac is exported from the T1 environment.
A workaround described in the Yammer thread is to drop the views before exporting the .bacpac. The views get recreated when the .bacpac is restored on a T2+ environment.
This could be accomplished with the -CustomSqlFile parameter of New-D365Bacpac. To make this more user friendly, we should consider adding the dropping of views with _SHARING in their name to Clear-SqlBacpacDatabase.sql, which gets called by New-D365Bacpac via the internal function Invoke-ClearSqlSpecificObjects
The text was updated successfully, but these errors were encountered:
A cmdlet like: Get-D365BacpacTable, but only for objects.
Should be possible, to have it extract ALL objects of a specific type - and then filter on the name afterwards, to output the ones that matches the wildcard pattern.
I think a Get-D365BacpacObject cmdlet in general would be useful.
In this case, I was more thinking of an option that would resolve the issue "automagically" in the background, without the user ever having to bother with it. Running Get/Clear-D365BackpacObject probably requires a similar power user knowledge as the -CustomSqlFile parameter of New-D365Bacpac.
I haven't heard here or in the Yammer thread of any further issues with this. It might have been a one time thing with a specific version of D365FO. Unless there is more interest, I consider it low priority.
According to https://www.yammer.com/dynamicsaxfeedbackprograms/threads/2228926546395136, when a database sync is executed on a sandbox (T2+) environment (probably as part of a deployable package deployment), a field
SYSSHARINGDATAAREAID
is added to multiple tables and views are created with that field (e.g.VENDLEDGER_SHARINGVIEW
).When the sandbox database is then exported and imported to a T1 environment, the fields are removed from the tables, but the views with the now invalid field remain.
This causes an error when a .bacpac is exported from the T1 environment.
A workaround described in the Yammer thread is to drop the views before exporting the .bacpac. The views get recreated when the .bacpac is restored on a T2+ environment.
This could be accomplished with the
-CustomSqlFile
parameter of New-D365Bacpac. To make this more user friendly, we should consider adding the dropping of views with_SHARING
in their name to Clear-SqlBacpacDatabase.sql, which gets called byNew-D365Bacpac
via the internal function Invoke-ClearSqlSpecificObjectsThe text was updated successfully, but these errors were encountered: