Project Server and TFS 2012 - synchronization RRS feed

  • Question

  • I get these errors using the /GetSyncMessages command:

    C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE>TfsAdmin Project
    Server /GetSyncMessages /collection:http://tfs2012:8080/tfs/projects/
    Date    Team Project Collection Name\Team Project Name  Enterprise Project Name

    10/16/2013 12:00:58 AM                  TF400797: Job extension had an unhandled
     error: System.Net.WebException: The operation has timed out;    at System.Web.S
    ervices.Protocols.WebClientProtocol.GetWebResponse(WebRequest request);    at Sy
    stem.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest requ
    est);    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String m
    ethodName, Object[] parameters);    at Microsoft.TeamFoundation.Sync.ProjectServ
    erAPI.CustomFieldsAPI.CustomFields.ReadCustomFields(String xmlFilter, Boolean au
    toCheckOut);    at Microsoft.TeamFoundation.Sync.Services.CustomFieldLoader.Load
    CustomFields(CustomFields customFieldsService, Boolean primaryId, Guid[] customF
    ieldsFilter);    at Microsoft.TeamFoundation.Sync.Services.CustomFieldService.Fe
    tchCustomFields(String projectServerUrl, Boolean primaryId, Guid[] customFieldFi
    lter);    at Microsoft.TeamFoundation.Sync.Services.CustomFieldService.BuildResu
    lt(Boolean primaryId, Guid[] customFieldIds);    at Microsoft.TeamFoundation.Syn
    c.Services.CustomFieldService.GetCustomField(Boolean primaryId, Guid customField
    Id);    at Microsoft.TeamFoundation.Sync.ProjectServer.Providers.ProjectChangeBa
    tchBuilder.InitializeServices(ServiceContext serviceContext);    at Microsoft.Te
    ncChangeBatch(UInt32 batchSize, ChangeLog`1 destinationKnowledge, ISourceDataPro
    vider& sourceDataProvider, IProcessingFeedback& processingFeedback);    at Micro
    nt32 batchSize, Object destinationKnowledge, ISourceDataProvider& sourceDataProv
    ider, IProcessingFeedback& processingFeedback);    at Microsoft.TeamFoundation.S
    ync.Framework.SyncOrchestrator.Sync();    at Microsoft.TeamFoundation.Sync.Sessi
    on.ProjectSyncExecutor.ExecuteSerial(IEnumerable`1 syncOrchestrators);    at Mic
    stContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime jo
    bQueueTime, String& resultMessage);    at Microsoft.TeamFoundation.Framework.Ser

    I'm reading on this forum post related to this topic and checked and followed the answer in it, but I still get the error.

    Can anyone please help me?

    Thanks you, Alex.

    Wednesday, October 16, 2013 10:39 PM

All replies

  • Looks like a custom field issue.  Can you confirm:

    1) The appropriate custom fields were provisioned when you ran the TFS connector?

    2) You haven't changed the field mapping from the default?  If yes, I'd think it is related to that.

    Andrew Lavinsky [MVP] Blog: Twitter: @alavinsky

    Thursday, October 17, 2013 2:03 AM

  • I didn't provide any custom field. I am in the process of configuring integration betwen tfs and project server:
    1. Assign Permissions
    2. Register the PWA with TFS - successfully
    3. Associate a Project Collection with a registered PWA- successfully
    4. Specify DEFAULT mappings (tfsadmin ProjectServer /UploadFieldMapping /collection:tpcUrl /useDefaultFieldMappings) - successfully
    5. Associate a Team Project with one (or more) Enterprise Projects(tfsadmin ProjectServer /MapPlanToTeamProject /collection:tpcUrl /enterpriseProject:epmProjectName /teamProject:teamProjectName /workItemTypes:typeList) - successfully
    6. Create resources on Project server - successfully

    And then:

    7. wanted to synchronize work items : TfsAdmin ProjectServer /GetSyncMessages /collection:<tpcUrl> - this produces error I described.

    So, regarding the steps I made, I didn't use any custom fields. Am I missed something maybe?

    • Edited by BBAlek Thursday, October 17, 2013 10:22 PM
    Thursday, October 17, 2013 10:21 PM