Publish Module To Server
  • 21 Dec 2022
  • 1 Minute to read
  • Dark
    Light

Publish Module To Server

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.0.0
LocationSystem > Advanced > Import-Export

The Publish Module To Server step allows a user to publish a module to the Decisions instance. 



Properties

Inputs

PropertyDescriptionData Type
Confirm ConfigurationAllows the user to determine if the configurations are valid
Boolean
Instance NameName of the InstanceString
Module NameName of the Module to publish to serverString
PasswordThe password of the user
String
Server AddressThe server address
String
User IdId of the user account
String



Common Errors

Value cannot be null 

If an input value is null, an error will occur.

To correct this, ensure that each input is correctly mapped or a value is entered. 

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Publish Module To Server 1[PublishModuleToServer] in flow [Flow 2]: Exception invoking method PublishModuleToServer on class ImportExportSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method PublishModuleToServer on class ImportExportSteps
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'input'
 at System.Text.RegularExpressions.ThrowHelper.ThrowArgumentNullException(ExceptionArgument arg
 at System.Text.RegularExpressions.Regex.Replace(String input, String replacement
 at DecisionsServiceHost.Modules.ModulesHelper.RemoveReservedFileChars(String filename
 at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.ExportModule(String moduleName, Boolean onlyChanged
 at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.ExportModuleIntoZipFileReturnPath(String moduleName
 at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.ExportModuleIntoZip(String moduleName
 at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.PublishModuleToServer(String moduleName, String serverAddress, String instanceName, String userId, String password, Boolean confirmConfiguration)
   --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data
 at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
 at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
   --- End of inner exception stack trace ---

System.Exception: sourcePath: 'C:\....' folder not found

If the module name provided is not found, an error will occur.

To correct this, ensure that the folder exists in the Instance.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Publish Module To Server 1[PublishModuleToServer] in flow [Flow 2]: Exception invoking method PublishModuleToServer on class ImportExportSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method PublishModuleToServer on class ImportExportSteps
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'input'
 at System.Text.RegularExpressions.ThrowHelper.ThrowArgumentNullException(ExceptionArgument arg
 at System.Text.RegularExpressions.Regex.Replace(String input, String replacement
 at DecisionsServiceHost.Modules.ModulesHelper.RemoveReservedFileChars(String filename
 at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.ExportModule(String moduleName, Boolean onlyChanged
 at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.ExportModuleIntoZipFileReturnPath(String moduleName
 at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.ExportModuleIntoZip(String moduleName
 at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.PublishModuleToServer(String moduleName, String serverAddress, String instanceName, String userId, String password, Boolean confirmConfiguration)
   --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data
 at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
 at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
   --- End of inner exception stack trace ---

Was this article helpful?