Pick parts after placed in pattern

Hello, i am practicing coding robots and still trying to figure out the basics, I am wondering if someone an help me or point me in the direction of how to find the answer, I have written simple code to get a robot to pick parts for a conveyor and place onto a block in pattern, however when i try to pick the parts to go to another an conveyor it does work. Code is below:

Made an attempt on solving the issue, if i use the pickFromPallet instead of the pickFromBlock it doesn’t show error codes or simulate can someone advise?