Dienstag, 7. September 2010

BDC not visible in central administration after deployment

Mir ist es passiert, dass ich mehrere BDC entwickelt habe, diese anschliessend deployen wollte. Mir sagte das Visual Studio bei jedem Deployment, dass es successful war. Jedoch konnte ich in der Central Administration die BDCs nicht finden bis auf einen. Was war passiert? Ich hatte vergessen die Namen zu ändern. Visual Studio hat somit versucht BDC mit dem Namespace BdcModel1 mehrmals zu deployen, was fehlschlug. Somit ging ich in jedes Projekt der BDC und habe dort mit der Suche nach BdcModel1 gesucht und alles umbenannt in einen eigenen Namen. Anschliessend auch FileName und FolderName geändert. Nichts in meinem Projekt war mehr BdcModel1. Weder in den Feature-, Package-XML noch im Namespace, etc. Wichtig ist, dass man alles umbenennt. Dies habe ich mit jedem Projekt gemacht, überall einen anderen Namen vergeben und voila, alle BDC wurden korrekt deployed. Komisch ist nur, dass das Deployment nicht gleich fehlschlägt.

Something happens to me. I was developing several BDC, that I wanted to deploy. Everytime I got the confirmation from Visual Studio, that the deployment was successful. But I could not find them in central administration except one BDC I developed. What happend? I had forgotten to change the naming. Visual Studio tried to deploy several BDC with the namespace BdcModel1, that did not work. Now I went in every BDC project and searched for the BdcModel1 and replaced it with an own name. Also file-name and folder-name had to be changed. Nothing in my project was left to BdcModel1. Not any feature-, package-xml, no namespace, etc. It is important to rename everything. I did that with every project and renamed with unique names and voila, I saw every BDC in the central administration after deployment. Strange thing is, that deployment does not fail, when this error happens.

Lassen Sie auch mal den ULS laufen während des Deployments.
Das ist die ULS Fehlermeldung (vssphost4.exe):
You can run the ULS during deployment.
That is the ULS error-message (vssphost4.exe):
Ignoring LobSystem (External System) with Name 'xy' (and its LobSystemInstances (External System Instances)) as it is already loaded in the current context. Entity (External Content Type) with Namespace 'xy.BdcModel1' and Name 'Entity1' and Version '1.0.0.11' already exists and will not be recreated.

Keine Kommentare:

Kommentar veröffentlichen