Data Read Local
This function block reads a value previously stored in the scenario's local storage and returns it for use by other blocks. It is useful for sharing data across steps or implementing simple loops where direct wiring is not possible.
π₯ Inputs
This function block does not have any inputs.
π€ Outputs
Generic The value retrieved from the local storage for the provided key. If the key is not found, a warning is issued and a placeholder value is returned.
πΉοΈ Controls
Data Key Enter a text key that identifies the data you want to read from local storage. Use the exact same key that was used when the value was written.
βοΈ Running mechanism
When the scenario runs, this block looks up the text key you entered in the scenario's local storage. If a matching entry exists, the stored value is retrieved and provided on the Generic output. If no entry exists for the key, the block issues a warning and returns a placeholder value so the flow can continue.
π Usage instructions
Enter the exact storage key into the
Data Keycontrol.Place this block where you need to access the stored value.
Combine with a block that writes the value beforehand so the key is populated.
π‘ Tips and Tricks
To write data that this block can read, use
Data Write Localbefore this block in the scenario.For data that must be shared across multiple scenarios or globally, use
Data Read GlobalandData Write Global.Use
Data Memoryto freeze or hold important image or generic data so it can be read repeatedly without being overwritten.Combine with
Subsystem Loop,Subsystem In, andSubsystem Outwhen implementing looped processing that requires temporary storage between iterations.Use
Is NoneorReplace Noneafter reading to handle missing values gracefully.Use
Debug Inputto log or inspect the retrieved value during development.To serialize or export multiple stored fields, consider
Data to JSONand then export viaCSV Exportif needed.When the stored value is a list or batch, use
Get Element,Debatch, orBatch Concatenationto manage individual elements.
π οΈ Troubleshooting
If you receive a warning that the key could not be found:
Verify the spelling and casing of the
Data Keyis identical to the key used when writing.Ensure the block that writes the key was executed earlier in the scenario.
If the retrieved value is not the expected type:
Confirm what was stored (e.g., number, text, image, list) and use appropriate downstream blocks such as
Parse Data Dictionary,Get Element, or type-conversion helpers to adapt it.
Last updated
Was this helpful?