cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issues executing 'date' with Camel Simple Expression

MrSonic
Discoverer
0 Likes
626

In SAP CPI, I try to generate a date value to a message property in a Content Modifier using a camel simple expression, but it generates an error. I have made sure the Content Modifyer entry type is set to Expression

 

${date:now:millis}

 

Error during simulation:
" Illegal pattern character 'i' "

Could  you help me figure out why this doesn't get executed properly?

Accepted Solutions (0)

Answers (1)

Answers (1)

Andrzej_Filusz
Contributor
0 Likes

Hello,

Please use the following link to find valid patterns for your expression ${date:command:pattern}:

https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html 

 

MrSonic
Discoverer
0 Likes
Thanks for the response,
MrSonic
Discoverer
0 Likes
Thanks for the response. I can see in the following link that these patterns are supported
MrSonic
Discoverer
0 Likes
Thanks for the response. It looks like I had a faulty source that was stating that it was a valid CSEL expression.