Saturday, December 22, 2012

Enable BCS Content Type to be crawled

When tried to crawl my business data catalogs and select Business data from content source, You didn’t find my business data.
Check External Content Type information. You will find its property Crawlable is No you need to update it to Yes like Figure Below:

This occurs because I didn’t define properties RootFinder or UseClientCachingForSearch to my list Method.
To Solve this problem you have two options:

  1. You can add these properties to your list methodInstance in bdc file and deploy again.
  2. You can add these properties to your list method of entity using PowerShell:
    $entity = Get-SPBusinessDataCatalogMetadataObject  –BdcObjectType “Entity” –Name “EntityName” –Namespace “ModelNameSpace” -ServiceContext adminurl
    $methodinstance = $entity.MethodInstances | where {$_.Name –eq “ReadListName”}
    $methodinstance.Properties.Add(“RootFinder”, “”)
    $methodinstance.Properties.Add(“UseClientCachingForSearch”, “”)

No comments: