Performing assignment in spinoff flow causes error
I have a very simple spinoff flow that creates one assignment. Once that assignment is performed, the spinoff flow should end.
When I perform the assignment and click 'submit', I get the error "The reference .pxFlow() is not valid. Reason: contains empty subscript(s)”. The logfile confirms this is an InvalidReferenceException.
The tracer shows the exception happening in step 24 of activity Assign-.CompleteAssignment, which is a Java step that uses the final function StartFlow, which has the further potential to call other final functions. This step and the functions use the local parameter refFlowName to form the correct reference to .pxFlow(). I have confirmed refFlowName has the correct value at the time StartFlow is called, such that the reference should be .pxFlow(QualityCheck). However, since all the functions called are final, I cannot determine where or why the invalid reference is being formed.
Any ideas how I can get rid of this error so my spinoff assignment completes properly?
***Edited by Moderator: Lochan to update platform capability tags***
I appreciate the suggestion, but it would be difficult to simplify the process further. In fact, this flow was intended as a demo to my client about how I could spin off an assignment. It is purely proof-of-concept, and doesn't actually do anything. The main flow has 2 very simple assignments, and this spin-off has one. There is no pre or post processing of any kind. When I call the flow as a normal flow (not a spin-off) it works fine. However, I need the spin-off functionality when I begin to build out the real process.
An exception I can see in the Tracer XML seems to indicate the RemoveFlow function might be throwing the exception. However, as all functions called from step #24 of CompleteAssignment are final, I cannot determine where or why the flow name is not getting passed.
I did have the main flow and spin-off in draft mode, but this is a development system where I am showing the concept, and then need to begin development to implement it. I have taken both flows out of draft mode with the same results, however. I think I'll need to raise an SR for this issue.