Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

Import WebSite and Business Data Connectivty Services together

$
0
0

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.


Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>