Prevent Sequencer Infinite Loops
The Innovation Studio sequencers allow you to define complex sequences of codes for uses such as invoice numbers. Among the customizations you can apply to your sequencers, is the Filter JS script which allows you to skip specific sequence numbers. Depending on your Filter JS code, this may lead to situations where the sequencer enters an infinite loop. To prevent this, you can limit the sequence numbers your sequencers can skip until an infinite loop error is thrown. To do so, in the Configuration Manager, set up the following key:
| Key Path | Key Name | Description |
|---|---|---|
| kv/<environment>/<Portal Instance>/app-settings | SequencerFilterInfiniteLoop | Numeric value indicating the maximum number of sequence numbers that can be skipped until an infinite loop error is thrown. |
Copy
<app-settings>
...
<add key="SequencerFilterInfiniteLoop" value="20"/>
...
</app-settings>