Skip to main content

Ideas

Filter by idea status

10000+ Ideas

No more +/- validation errors: One parenthesis rule for AJO wait-node arithmetic expressionsNew

If you have ever pasted a carefully crafted date-time expression into a Journey wait node and been greeted by a vague parser error about the plus sign, you are not alone. Journey Optimizer’s expression language is strict about how arithmetic is written, and one missing pair of parentheses is enough to block your journey.In this short guide, we walk through a real pattern: computing a wait-until time from profile data and “days from today,” then show why the expression fails and the minimal syntactic change that makes it valid. What you are trying to doA common pattern is to combine currentTimeInMillis() with a millisecond offset derived from a profile reminder date, today’s date at midnight, and a fixed offset (for example, fourteen days in milliseconds). Conceptually that is straightforward arithmetic inside toDateTime / toDateTimeOnly. The expression that triggers the errorBelow is an example of the kind of nested expression teams often build for wait logic. It is semantically reasonable, but as written it can fail validation.toDateTimeOnly( toDateTime( currentTimeInMillis() + ( ( toInteger( toDateTime( concat( toString( #{ExperiencePlatform.ProfileFieldGroup.profile._dcthree.EventReminders.all(currentDataPackField.id == supplementalId).at(0).reminderDate} ), "T00:00:00.000" ) ) ) - toInteger( toDateTime( concat( toString(toDateOnly(now())), "T00:00:00.000" ) ) ) ) / 86400000 - 14 ) * 86400000 ))  Error message: “The expression is invalid: You cannot use the character '+' like this because it is a keyword of the language. Please, add quotes to fix your expression.”  Why it fails: arithmetic needs explicit groupingAJO documents a subtle rule for the + operator in advanced journey conditions: numeric addition must be expressed with operands wrapped in parentheses when they are themselves expressions. The documentation illustrates that something like toDateTimeOnly(now() + toDuration("PT1H")) can look semantically valid while still being syntactically rejected.   The supported form wraps each operand, for example:toDateTimeOnly((now()) + (toDuration("PT1H"))) toDateTimeOnly((now()) - (toDuration("PT1H")))The same rule applies to your millis arithmetic: treat currentTimeInMillis(), each toInteger(toDateTime(...)) sub-expression, and literal products such as 14 * 86400000 as operands that should be parenthesized so the parser never sees an ambiguous + in an invalid position.For the full operator notes (including the + parenthesis requirement), see Adobe’s Journey Optimizer documentation on Operators.  Corrected expressionApplying the same parenthesis discipline throughout—including around currentTimeInMillis(), each date conversion block, and the fourteen-day offset—yields a form the validator accepts. The inner day math can also be rearranged to subtract (14 * 86400000) directly once you are working purely in milliseconds, which keeps the intent clear. toDateTimeOnly( toDateTime( (currentTimeInMillis()) + ( ( toInteger( toDateTime( concat( toString( #{ ExperiencePlatform.ProfileFieldGroup.profile._dcthree.EventReminders.all( currentDataPackField.id == ${supplementalId} ).at(0).reminderDate } ), "T00:00:00.000" ) ) ) ) - ( toInteger( toDateTime( concat( toString(toDateOnly(now())), "T00:00:00.000" ) ) ) ) - (14 * 86400000) ) ))Adjust the profile path, collection filter, and supplemental identifier syntax to match your schema and how you pass context into the expression. The structural lesson—parenthesize operands to + and -—is what prevents the parser error.  TakeawaysWhen combining function calls and arithmetic in wait nodes, prefer explicit parentheses around every operand to + and -. If you see the “+ is a keyword” style error, re-check nesting before chasing quote or escaping issues. Keep a link to the official Operators page handy when onboarding new journey authors. 

Workflow instance Start TimeNew

Request for Feature Enhancement (RFE) Summary: Standardize the time zone display for workflow-related “Start Time / Start Date” across all AEM as a Cloud Service authoring UIs (Workflow console and Inbox) so that they are consistent and user-friendly for business users. Use-case: Business users frequently monitor and operate workflow instances (e.g., publication approval flows) from the AEM author UI. Currently, the “Start Time / Start Date” of the same workflow event is displayed in different time zones depending on the screen: • Workflow instance list vs. workflow instance history • Inbox list vs. Inbox item detail This inconsistency causes confusion for operators, makes it difficult to correlate events between screens, and increases the risk of miscommunication when discussing schedules (e.g., “when was this request actually started?”) with non-technical users. This affects daily operational work for multiple business users who coordinate publication schedules, and the confusion around timestamps has already led to repeated internal inquiries and additional verification steps. Current/Experienced Behavior: For the same workflow instance / work item, the time zone of “Start Time / Start Date” is not unified across screens: 1. Workflow instance Start Time • Tools > Workflow > Instances > [List] ◦ Start Date is shown in UTC (e.g., 4/2/26, 3:06 AM) • Tools > Workflow > Instances > [Individual Item] > Open History ◦ Start Date is effectively shown as JST / user’s local time in the tooltip ‣ e.g., title="Thursday, April 2, 2026 at 12:06:18 PM Japan Standard Time" 2. Work Item Start Time / Start Date • Inbox > [List] ◦ Relative time and tooltip are shown in JST / user’s local time ‣ e.g., title="Thursday, April 2, 2026 at 12:06:18 PM Japan Standard Time" • Inbox > [Open individual item] ◦ Start Date is shown in UTC in ISO-8601 format ‣ e.g., Start Date: 2026-04-02T03:06:18.238Z From a user’s perspective, even though all of these timestamps refer to the same workflow event, some screens show UTC while others show local time (JST), without a clear indication or consistent labeling. This is perceived as inconsistent and confusing behavior rather than an intentional design. Improved/Expected Behavior: The “Start Time / Start Date” for workflow instances and work items should be consistent across all AEM authoring UIs, including: • Tools > Workflow > Instances (list and detail/history views) • Inbox (list and individual item views) The core expectation is that the same workflow event should not appear with different-looking timestamps across screens without clear indication, and that operators can reliably interpret times without needing to mentally convert or guess the time zone. Ideally, all workflow-related timestamps in the authoring UI should be shown in the user's local time zone (based on profile or browser locale), with a clear time zone indication in the tooltip or label. At minimum, the same workflow event should use the same time zone and a consistent format across all related screens, so that operators do not need to mentally convert or guess the time zone. Environment Details (AEM version/service pack, any other specifics if applicable): Adobe Experience Manager as a Cloud Service Customer-name/Organization name: ASAHI KASEI CORPORATION Screenshot (if applicable):   Code package (if applicable):