Retail Predictive Application Server (MOSC)

MOSC Banner

ConvertToString Issue

edited Mar 31, 2018 5:03AM in Retail Predictive Application Server (MOSC) 2 commentsAnswered

Hi All,

Here adwprstx is a string measure.

I want to populate this measure with timestamp in the format specified.

However am getting the below error. It works when I run ConvertToString(now) without the format.

mace -d $DOMAIN_HOME -run -expression "ADWPRSTx=ConvertToString(now,\"%Y%m%d%H%M\")"

<I 2018Mar22 00:05:11.274> File lock timeout set to: 60000

<I 2018Mar22 00:05:11.283>

<I 2018Mar22 00:05:11.283> Executing mace in domain '/ortlapp/solution/AP/domain/ap/ldom0'.

<E 2018Mar22 00:05:11.296> Expression::restoreExpression() caught exception

<E 2018Mar22 00:05:11.296>   Exception:  'IllegalParse: ConvertToString does not accept positional arguments other than the first argument'

<E 2018Mar22 00:05:11.296>   Expression: 'ADWPRSDt=ConvertToString(now,"%Y%m%d%H%M")'

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center