Pipe “|” is a special character in Velocity which is causing the error. Here is a transform that returns a string @ index 0
{
"name": "AATest_PipeCharacterInVelocity",
"type": "static",
"attributes": {
"value": "$pipeString.split('\\|')[0]",
"pipeString": "cddpo|St Joseph|Stp"
},
"internal": false
}