Hi,
On my development environment (SharePoint 2013 server), I have a web site that contains a documenbt list. This document list is linked to some Business Data Connectivity Objects. (I have some external data columns plugged on my BDC objects).
Now, I need to import this web site and these BDC objects on another environment.
I need to do it with power shell commands, so I do like this :
$MetadataStore = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType "Catalog" -ServiceContext http://localhost
Import-SPBusinessDataCatalogModel -Path "<path>\BDCmodel.bdcm" -Identity $MetadataStore
New-SPWeb http://localhost/MyWebSite -Template "STS#0"
Import-SPWeb -Identity http://localhost/MyWebSite -path MyWebSite.cmp -Confirm:$false -Force -ErrorVariable errors -UpdateVersions Overwrite
The two importations are OK but my document list does not find my BDC model. The link is broken.
Is there something special to do to manage and keep the link between my document list and my BDC objects ?
Thanks for your help.