FileBasedProject publishing from Studio 2021 to GroupShare 2017

We currently have a platform where we have developed a Trados Studio API based system which creates and publishes projects to GroupShare.  In the process of trying to migrate to the cloud platform we are trying to make our application work with Studio 2021 (currently works with Studio 2019) and publish projects to GroupShare 2017.  Everything works fine until the FileBasedProject.PublishProject() call.  The status result message is "Failed to publish" but we don't see any error details returned and no exception thrown.

Is Studio 2021 SR2 allowed to publish to GroupShare 2017?  We realize this is a little out of sync but we need this to transition our processing from GroupShare to the cloud-based platform with Studio 2021.

emoji
Parents Reply
  • Hi , ,

    I was able to reproduce the failed attempt to publish the project, with a null exception.  The full message returned from the server was: "Failed to publish the project".  This occurred when I included an additional path separator (e.g. /) at the end of the organizational path parameter.

    Excluding the separator from the end of the organizational path parameter resolved the issue. 
    Note: if the path is at the root, there should exist one forward slash.

    Example of working solution:

    var result = project.PublishProject(
    new Uri("http://gs2017dev.sdl.com"),
    false,
    "USERNAME",
    "PASSWORD",
    "/Test API",
    (obj, evt) =>
    {
    	Console.WriteLine(evt.StatusMessage + " " + evt.PercentComplete + "% complete");
    });

    Patrick Andrew Hartnett | Developer Experience | Team Lead | RWS Group

    emoji
Children