Skip to main content
OneStream Employee
January 15, 2025
Solved

Having issues running service factory assembly across maintenance units within the same Workspace

  • January 15, 2025
  • 2 replies
  • 0 views

I am trying to configure a data adapter through the service factory. The assembly containing the services factory is on another maintenance unit. The assembly is WsasFactory and when attempting to bring the data set into an adapter it can't seem to find that object reference to the assembly. 

The assembly and service factory are configured on each maintenance unit and workspace as shown: MyAssembly.WsasFactory

When attempting to bring it into the data adapter I have tried using...

{WSMU}{MyDataSet}{}

{WS}{MyDataSet}{}

{Workspace.Current.WS}{MyDataSet}

Yet, I keep getting this error for each reference shown above - Error processing DataSet 'MenuNavPM'. Unable to find the Workspace Assembly Service Factory class for name 'WSMU' in Workspace

 

Is there a reference special for using the service factory between maintenance units I am missing?

 

Best answer by WernerN

Sorry Community, Wrote to soon.  My adapter worked finally when 
a) ServiceFactory defined at the workspace level
b) Adapter rule definition:
{Workspace.Current.WS}{GetGraphDT}{Layout=[~!LayoutNum!~]}
GetGraphDT is my function name in the DataSetService.

2 replies

OneStream Employee
January 16, 2025

Hi Samwise,

I'm not sure I fully understood your use case but one thing that did not sound right to me was this part:

"The assembly containing the services factory is on another maintenance unit.

...

The assembly and service factory are configured on each maintenance unit and workspace as shown: MyAssembly.WsasFactory"

If you have a Maintenance Unit called MU_1 with an Assembly named "MyAssembly" that contains a Service Factory type file named "WsasFactory" and this Service Factory should apply at Workpace level (across all MUs) then you should only be configuring it at the WS level (i.e.:  Workspace Assembly Service = MyAssembly.WsasFactory).

You should not be assigning this Service Factory to a different Maintenance Unit as that assembly will not exist there and I'd expect it to result in an error.

If I understood it right and this mirrors you current set up I'd start by leaving the Workspace Assembly Service setting blank at MU level and only configure it at Workspace level and try again.

If this is not your case apologies for the confusion and you might want to share some print screens of your config and code so we can try and help further.

 

Contributor
January 16, 2025

Haven't time to read your post in detail now but just thought I'd share this since I had it open. Syntax for calling data set BR in a workspace

From the "Workspace & Assemblies" webinar

Contributor
May 26, 2025

Thanks for your post Daniel,
in your assembly example, what would filename be? the assembly name or the service name? I have tried both and neither seems to work.  

WernerNAnswer
Contributor
May 26, 2025

Sorry Community, Wrote to soon.  My adapter worked finally when 
a) ServiceFactory defined at the workspace level
b) Adapter rule definition:
{Workspace.Current.WS}{GetGraphDT}{Layout=[~!LayoutNum!~]}
GetGraphDT is my function name in the DataSetService.