Cannot import ADF using BDC
- Hi,
I'm trying to import and ADF using using business Data Catalog but when I click "Import application definition" and chose my file bdc.adworks.hr; I can read "Start" on the page.
But it ramain on the step Start and import never finish ; I've no errors
Sometimes I have : Validating application definition ,
Why ?
My server name is TOCANE (MOSS is intalled on it) and my database name is AdventureWorks
Here is my File ADF :
<?
xml version="1.0" encoding="utf-8"?>
<
LobSystem xmlns="http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog" Type="Database" Version="1.0.0.0" Name="AdventureWorksHumanResources">
<
LobSystemInstances>
<
LobSystemInstance Name="AdventureWorksHumanResourcesWebInstance">
<
Properties>
<
Property Name="AuthenticationMode" Type="Microsoft.Office.Server.ApplicationRegistry.SystemSpecific.Db.DbAuthenticationMode">
PassThrough
</
Property>
<
Property Name="DatabaseAccessProvider" Type="Microsoft.Office.Server.ApplicationRegistry.SystemSpecific.Db.DbAccessProvider">
SqlServer
</
Property>
<
Property Name="RdbConnection Data Source" Type="System.String">TOCANE</Property>
<
Property Name="RdbConnection Initial Catalog" Type="System.String">AdventureWorks</Property>
<
Property Name="RdbConnection Integrated Security" Type="System.String">SSPI</Property>
</
Properties>
</
LobSystemInstance>
</
LobSystemInstances>
<
Entities>
<
Entity Name="Department">
<
Methods>
<
Method Name="GetDepartments">
<
Properties>
<
Property Name="RdbCommandText" Type="System.String">
select DepartmentID, [Name] as [Service], GroupName as
Department, ModifiedDate
from HumanResources.Department
</
Property>
<
Property Name="RdbCommandType" Type="System.Data.CommandType">Text</Property>
</
Properties>
<
Parameters>
<
Parameter Direction="Return" Name="Departments">
<
TypeDescriptor TypeName="System.Data.IDataReader, System.Data, Version=2.0.3600.0, Culture=neutral,PublicKeyToken=b77a5c561934e089" IsCollection="true" Name="DepartmentDataReader">
<
TypeDescriptors>
<
TypeDescriptor TypeName="System.Data.IDataRecord, System.Data, Version=2.0.3600.0, Culture=neutral,PublicKeyToken=b77a5c561934e089" Name="DepartmentDataRecord">
<
TypeDescriptors>
<
TypeDescriptor TypeName="System.Int16" Name="DepartmentID"/>
<
TypeDescriptor TypeName="System.String" Name="Service"/>
<
TypeDescriptor TypeName="System.String" Name="Department"/>
<
TypeDescriptor TypeName="System.DateTime" Name="ModifiedDate"/>
</
TypeDescriptors>
</
TypeDescriptor>
</
TypeDescriptors>
</
TypeDescriptor>
</
Parameter>
</
Parameters>
<
MethodInstances>
<
MethodInstance Name="DepartmentFinderInstance" Type="Finder" ReturnParameterName="Departments" />
</
MethodInstances>
</
Method>
</
Methods>
</
Entity>
</
Entities>
</
LobSystem>
All Replies
- Can you check if there is any JavaScript error on the browser ?
http://jardalu.blogspot.com Your sql statement doesn't look right:
select DepartmentID, [Name] as [Service], GroupName as
Department, ModifiedDate
from HumanResources.Department
Because your Initial Catalog is AdventureWorks not HumanResources.
Also you really should define an Identifer property.
Since you chose PassThrough, make sure the logged in user can access this database when you use web parts or code against this Entity.
Not sure why your ADF is not parsing unless its because of all that whitespace.