TFPT - Is it possible to apply "projectreportsforceupload" functionality in tool ?

Locked TFPT - Is it possible to apply "projectreportsforceupload" functionality in tool ?

  • 2012年2月27日 上午 06:35
     
     

    Context - Existing TFS Project which has a project and a Sharepoint Site created.
    Unable to get dashboards working so deleted sharepoint site.

    Manually used

    tfpt addprojectportal
    and
    tfpt addprojectreports

    Unable to get all the dashboards added, tfpt tool text has :

    Exception Type: Microsoft.TeamFoundation.Client.PcwException
    Exception Message: TF218023: A report folder already exists and has items for th
    e following team project: /TfsReports/OOSA/Historian_Jupiter. SQL Server Reporti
    ng Services is configured for the following team project collection: http://syd-
    tfs01/Reports.
    Exception Details: A report folder already exists and has items for the followin
    g team project: /TfsReports/OOSA/Historian_Jupiter. SQL Server Reporting Service
    s is configured for the following team project collection: http://syd-tfs01/Repo
    rts. You must set the value for the following element in the XML file: ProjectRe
    portsForceUpload. Unless this element is configured, new reports will not be upl
    oaded to the folder that already contains other reports and folders for this tea
    m project.
    Stack Trace:

    So found http://msdn.microsoft.com/en-us/library/ff462695.aspx but this talks about an XML file..

    >> Is there a way to get tfpt to do this ? i.e. some XML file it is using that can be edited to set this ?

    Thanks

所有回覆

  • 2012年2月27日 上午 08:48
     
     

    Actully Ive hacked a tool like that together for internal use, Basicly it lists team projects, loops selected team projects, edits a template xml doc and fires the updates command...

    Its sadly not in a shape to be publicly released :(

  • 2012年2月28日 上午 02:36
    版主
     
     已答覆


    Hi Greg, 

    Thanks for your post.

    What’s the detailed option and argument information in your tfpt addprojectreports command line? 

    Did you add the /force option in your tfpt addprojectreports command line? If yes, but you still received
    that Exception, try to open your Reporting Service http://syd-tfs01/reports in IE, then go to TfsReports>>OOSA>>Historian_Jupiter, delete the report file under existed report folder.     

    For the dashboards can’t work normally issue, I’m discussing with our TFS experts, and will provide the
    better response in your previous post ASAP. So please avoid to cause other new or extend issues before we solve the dashboards issue.     



    John Qiao [MSFT]
    MSDN Community Support | Feedback to us

  • 2012年2月28日 上午 05:16
     
     

    The /force worked

    This must translate to setting  ProjectReportsForceUpload ?

    However it did not resonse the problem of default v5.0 content missing on the Sharepoint side (note: preciously this did have all the content, but we deleted the site to try to resolve other issues and re-create it again)

    I'll delete site and try again with a /force on the addproject action, NB: /force is not valid for adding a project

    Thanks



  • 2012年2月28日 上午 06:32
    版主
     
     已答覆


    Hi Greg, 

    Thanks for your reply.

    The /force option is available in Tfpt addprojectreports command line.  In the Tfpt addprojectportal command, there’s no the /force option.

    The ProjectReportsForceUpload element is used in the setting xml file, when we create the Team Project use the Tfpt createteamproject /settingsfile … command line. We can’t use the ProjectReportsForceUpload element or the setting xml file in Tfpt addprojectportal command. For more information about Tfpt createteamproject command, please click Star>>  All
    Programs
    >> MS TFS Power Tools>>Help
    >>Team Foundation Power Tool(TFPT.EXE)>>TFPT.EXE Commands>>createTeamProject.   



    John Qiao [MSFT]
    MSDN Community Support | Feedback to us

  • 2012年2月29日 上午 03:50
     
     

    For the scope of this issue of the /force, lets close this post.