Interoperability Business Process (Less) Known Limitation (which could cause a difficult to interpret error)
Some of you might not be aware of this "Known Issue/Limitation" when defining a BPL-based Business Process.
And those who are not might have encountered this (somewhat "unpleasant" error):
ERROR <Ens>ErrBPTerminated: Terminating BP <my_process_name> # due to error: ERROR #7201: Datatype value 'xxS6xxS6...xxS6' length longer than MAXLEN allowed of 50
ERROR #5802: Datatype validation failed on property '<my_process_class>.Thread1:%HandlerStack', with value equal to "xxS6xxS6...xxS6"
Here is the information from the docs:
BPL Scope within Loop Restriction
Under certain conditions, loops that contain scopes and have a large number of repetitions can cause an error. If possible, define the scope so that it includes the loop rather than being defined inside of the loop.
So if you have a loop inside a BPL, and you put a scope into it (and probably a 'Continue' activity), and you have say about 15 or more iterations, you will run into the error above.
Here's an example of this kind of loop -
And this is what the error would look like:
The remedy, as mentioned in the docs, is to place the loop within the scope, instead of the scope within the loop.
I hope this might help anyone who encounters this error...