How to assign to array?


I need to add integer to integer array, but it doesn’t work to me.

assignToArray.xaml (10.9 KB)

On the left side (which I only tested) it works but in every do-while loop whole array is changed.
On the right side is what I need but it doesn’t work at all. I only want to add integer to the array.

Could anyone help, please? :slight_smile:
Thank you.


I just checked your workflow.

First, array should be initialize as fixed size before using. But I think you should use List because List can be used in case of the size is not determined. You can get Array from List using “toArray” method

Second, sometimes, multiple assign activity does not return exception details. In this case, we can get “null reference exception” if use Assign activity.

Third, this loop doesn’t exit, so you should check your condition of do-while.
(like (invoice614_start+ invoice614_incrementBy4000) < invoice614_end)

I’ll attach the fixed sample as the following.
assignToArray.xaml (14.7 KB)


1 Like

@Yoichi, Great, thank you so much for your help! :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.