Because this question has already been answered on the forum. There is a high probability that the problem is in curly brackets used as a string in BAS actions
thanks at @Allister for the work around which helps me out to continue developing my script? @Fox the success number action should be able to track number of successful threads irrespective of were the action is being used in the main function or when call function in several threads action is used.