That is what I had original done but it is saying there is an error .. please see below concat("CCSBO - ", max(@ID) + 1001, " - ", substring-after(now(), "T") What am I doing wrong?