Problem with publishin project on GroupShare after calling GetProjectStatistics on project

Hi,

I have noticed that after getting project statistics with GetProjectStatistics, publishing the project on GS is not possible netiher via PublishProject, nor in the Studio GUI.

The error message is this:

The Execution Server failed to publish the project: The element 'PackageProject' in namespace 'http://sdl.com/projectserver/2010' has invalid child element 'WordCountStatistics' in namespace 'http://sdl.com/projectserver/2010'. List of possible elements expected: any element in namespace '##other'.. Check the Execution Server log for more information.

I have noticed, that calling GetProjectStatistics adds this tag to the project file:

<WordCountStatistics WordCountStatus="None">
<Total Words="0" Characters="0" Segments="0" Placeables="0" Tags="0" />
<Repetitions Words="0" Characters="0" Segments="0" Placeables="0" Tags="0" />
</WordCountStatistics>

If I remove this tag manually, the upload works. I'm not sure if this is a bug, or I'm doing something wrong. I can remove this tag programatically, but probably this is not the best solution.

Do you have an idea?

Thanks in advance,

Tamas

(Studio 2014 SP2, GS2014)

Parents
  • In case you're not already doing so, PublishProject(...) accepts an event handler which is updated with details of the publish progress. In the past I've found this useful for debugging:

    var sb = new System.Text.StringBuilder();
    (obj, evt) =>
    {
    sb.Append(evt.StatusMessage);
    sb.Append(" ");
    sb.Append(evt.PercentComplete);
    sb.AppendLine("% complete");
    }
Reply
  • In case you're not already doing so, PublishProject(...) accepts an event handler which is updated with details of the publish progress. In the past I've found this useful for debugging:

    var sb = new System.Text.StringBuilder();
    (obj, evt) =>
    {
    sb.Append(evt.StatusMessage);
    sb.Append(" ");
    sb.Append(evt.PercentComplete);
    sb.AppendLine("% complete");
    }
Children
  • Thank you! I forgot to mention that I'm not getting the error as a result of using the API, but during regular use of Studio, after I ran an analysis just before publishing the project. This page was the only search result in Google and deleting the offensive code in the project file worked like a charm. So I was wondering if anyone knew more about how to avoid the error. I do realize I'm not completely in the right forum for this.