create snapshot(a,b)


This function can take a snapshot of the data generated during the mapping until then. Snapshots can only be taken in a mapping test. Calling the function during an actual job has no effect. Parameter b is for an optional description that is shown in the test. For details, see the example below.

The return value after successful execution is true.

Important note: Snapshots are only available in the main memory. A thoughtless use could therefore lead to memory problems!

Parameter Description

Parameter

Description

a

If true, a snapshot will be created. Default: false.

b

(optional) Description text that is displayed for the snapshot. See example below.

Example

Let's assume the following simplified destination structure.

images/download/thumbnails/44931135/destination_structure_snapshot-version-1-modificationdate-1573438742508-api-v2.png

We go through node Node three times in our example. And on field Debug, we execute the following simple function chain.

images/download/thumbnails/44931135/destination_structure_snapshot_2b_EN-version-1-modificationdate-1573453871415-api-v2.png

If we carry out a mapping test, we get the usual result, as with a 'normal' mapping test.

images/download/attachments/44931135/snapshot_mapping_test_1_EN-version-1-modificationdate-1573459643816-api-v2.png

Now switch to tab (1).

images/download/attachments/44931135/snapshot_mapping_test_2_EN-version-1-modificationdate-1573515413245-api-v2.png

(2) For each time the function has been called, you will get an entry here. By double-clicking or via the context menu, you can display the data status of the respective snapshot. See the following screenshots. Note: The state of the data in Tabs Lists/Maps/Variables and SubProfile calls corresponds to the respective iteration. But the tab Log always contains the final result of the run.

(3) The description from parameter b.

(4) This is the complete result again, after the entire test run.

The data status after iteration 1:

images/download/attachments/44931135/snapshot_mapping_test_4_EN-version-1-modificationdate-1573516816266-api-v2.png

The data status after iteration 2:

images/download/attachments/44931135/snapshot_mapping_test_3_EN-version-1-modificationdate-1573517687067-api-v2.png