none
Playbooks does not set MD_PROP_ID - PSI or other variants available? RRS feed

  • Question

  • Hey all.

    We are in the process of migration from devloper to production server (Project 2010 SP1).

    Latest Playbooks is used to migrate custom fields - no errors in the process of import/export reported.

    After using the ogranizer to migrate project professional views to production we found out that some fields are missing in the views (another interesting theme is why the Playbooks does not handle the project prfessional views and corresponding objects in Enterprise Global).

    Digging around the problem i found out that while MD_PROP_UIDs are the same in both systems after Playbooks - MD_PROP_IDs differ (Playbooks file contains both MD_PROP_UID and MD_PROP_ID values - so the import is missing something).

    So

    Аre there other ways to set MD_PROP_ID of the fields (does it works?) or any workarounds with the Playbooks?

    Appreciate any help. Thanks in advance.

    Sergey.

    sereyavdovin.ru


    Sergey Vdovin


    Friday, July 6, 2012 4:03 PM

Answers

  • So answers to my question

    >>>>  (does it works?)

    it is not working - while runnig the powershell script:

    $svcPSProxy = New-WebServiceProxy -uri "http://project.contoso.com/pwa/_vti_bin/PSI/CustomFields.asmx?wsdl" -useDefaultCredential
    $cfs=$svcPSProxy.ReadCustomFields("",$true)
    ($cfs.CustomFields|?{$_.MD_PROP_NAME -like "*ПКЗ*"}).MD_PROP_ID=188776484
    $svcPSProxy.UpdateCustomFields($cfs.GetChanges(),$false,$true)

    getting an error: 

    Exception calling "UpdateCustomFields" with "3" argument(s): "ProjectServerError(s) LastError=CustomFieldCannotModifyCe
    rtainValuesOnceDefined Instructions: Pass this into PSClientError constructor to access all error information"
    At line:1 char:31
    + $svcPSProxy.UpdateCustomFields <<<< ($cfs,$false,$true)
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : DotNetMethodException

    if to change 

    MD_PROP_ID

    with 

    MD_PROP_NAME

    the script is working

    ________________________________

    as for now i consider the following way to migrate + manually transfer new customfields to production in the future with all properties

    Migrate a Project Web App instance in Project Server 2010

    Migrate Project Server data from one farm to another


    Sergey Vdovin

    Tuesday, July 10, 2012 10:58 AM

All replies

  • I don't whether its design like that or not but, would like to know why you want the exact MD_PROP_ID? Any specific reason?


    Thanks, Kashif

    Saturday, July 7, 2012 6:12 AM
  • Kashif, would you be so kind to reread the problem about views once again - 4th paragraph - right above the paragraph with the first mention of the MD_PROP_ID you have read about. To clarify what is written there: view definition contains one of the identifiers - as far as the UIDs are equal that probably the IDs

    Sergey Vdovin

    Saturday, July 7, 2012 7:11 AM
  • So answers to my question

    >>>>  (does it works?)

    it is not working - while runnig the powershell script:

    $svcPSProxy = New-WebServiceProxy -uri "http://project.contoso.com/pwa/_vti_bin/PSI/CustomFields.asmx?wsdl" -useDefaultCredential
    $cfs=$svcPSProxy.ReadCustomFields("",$true)
    ($cfs.CustomFields|?{$_.MD_PROP_NAME -like "*ПКЗ*"}).MD_PROP_ID=188776484
    $svcPSProxy.UpdateCustomFields($cfs.GetChanges(),$false,$true)

    getting an error: 

    Exception calling "UpdateCustomFields" with "3" argument(s): "ProjectServerError(s) LastError=CustomFieldCannotModifyCe
    rtainValuesOnceDefined Instructions: Pass this into PSClientError constructor to access all error information"
    At line:1 char:31
    + $svcPSProxy.UpdateCustomFields <<<< ($cfs,$false,$true)
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : DotNetMethodException

    if to change 

    MD_PROP_ID

    with 

    MD_PROP_NAME

    the script is working

    ________________________________

    as for now i consider the following way to migrate + manually transfer new customfields to production in the future with all properties

    Migrate a Project Web App instance in Project Server 2010

    Migrate Project Server data from one farm to another


    Sergey Vdovin

    Tuesday, July 10, 2012 10:58 AM