BiBlend Workflow Import Step automation - no valid data keys
I have a workflow step that loads to BiBlend. Workflow Name set to Blend.
I am trying to use a DM Job to call a Extender Business Rule to execute the load, so I can schedule a DM Sequence.
I call the Business Rule from a DM Job and pass in osPeriod = 2026M8 and wfName=Labor_Actual.HC_Load_BIBlend.
Scenario is currently hardcoded into the rule and is set to “Actual”
I think I have narrowed my issue to a missing scenario key. I am using this command in the rule BRApi.ErrorLog.LogMessage(si, "Cluster ScenarioKey=" & wfClusterPk.ScenarioKey.ToString) and it is writing a 0 to the log.
The time and wfprofile keys are writing to log.
Here is a section of my rule.
The three parameters are listed in the text above, I did not want to lengthen this post unnecessarily.
----------------------------------
Dim wfClusterPk As WorkflowUnitClusterPk =
BRApi.Workflow.General.GetWorkflowUnitClusterPk(si, wfName, scenarioName, osPeriod)
BRApi.ErrorLog.LogMessage(si, "Cluster ProfileKey=" & wfClusterPk.ProfileKey.ToString)
BRApi.ErrorLog.LogMessage(si, "Cluster ScenarioKey=" & wfClusterPk.ScenarioKey.ToString)
BRApi.ErrorLog.LogMessage(si, "Cluster TimeKey=" & wfClusterPk.TimeKey.ToString)
BRApi.ErrorLog.LogMessage(si, "Cluster TimeName=" & BRApi.Finance.Time.GetNameFromId(si, wfClusterPk.TimeKey))
Dim importInfo As LoadTransformProcessInfo = BRApi.Import.Process.ExecuteParseAndTransform(si, wfClusterPk,String.Empty,Nothing, TransformLoadMethodTypes.ReplaceBiBlendTable, SourceDataOriginTypes.FromDirectConnection, False)
Any help would be greatly appreciated.
