How to compress an hexadecimal number into a short string?

Robin2:
You have an global array local to the loop function

 byte tagEPCBytes[50][12];

and a local byte with the same name local to that block of code

the array name acts like a pointer... thus your errors/warnings