Here’s a comprehensive solution addressing all three focus areas:
Calculated Field Null Handling:
Modify your renewal notice date calculated field to include explicit null checking with fallback logic:
<wd:Calculated_Field wd:Descriptor="Renewal_Notice_Date">
<wd:Formula>
IF(ISNULL(Renewal_Option_Date),
DATE_ADD(Lease_End_Date, -90, "DAYS"),
DATE_ADD(Renewal_Option_Date, -60, "DAYS"))
</wd:Formula>
</wd:Calculated_Field>
This formula checks if Renewal_Option_Date is null. If it is, it calculates the notice date as 90 days before the lease end date (standard notice period). If the renewal option date exists, it uses that minus 60 days. This prevents the “Cannot calculate date from null input” error.
For more complex scenarios with multiple optional dates, nest your IF statements:
IF(ISNULL(Renewal_Option_Date),
IF(ISNULL(Lease_End_Date), TODAY(), DATE_ADD(Lease_End_Date, -90, "DAYS")),
DATE_ADD(Renewal_Option_Date, -60, "DAYS"))
Lease Renewal Workflow:
Restructure your workflow to include validation steps before calculated field execution:
- Add a “Validate Lease Data” step as the first step in your renewal workflow
- This step should check for critical required fields and set a workflow variable indicating data completeness
- Add a conditional branch: if data is incomplete, route to manual review; if complete, proceed to automated calculation
- Place your calculated field execution after validation passes
- Add error handling steps that catch calculation failures and route to exception queue
The workflow sequence should be:
- Trigger: 120 days before lease end date
- Step 1: Validate required fields
- Step 2: Branch based on validation result
- Step 3a: If valid, execute calculated fields
- Step 3b: If invalid, route to property manager for data completion
- Step 4: Generate renewal notice
- Step 5: Route for approval
Custom Workflow Steps:
Enhance your custom steps to be more resilient:
- Add a custom validation step that checks not just for null values, but also for date logic validity (e.g., renewal option date should be before lease end date)
- Create a custom calculated field specifically for lease renewals that includes business rule logic
- Add a fallback step that handles calculation failures gracefully by routing to a work queue rather than erroring out
- Implement workflow notifications that alert lease administrators when optional fields are null, so they can be populated proactively
For your specific error, update the Renewal_Notice_Date calculated field immediately. Then modify your lease renewal workflow to add the validation step before calculation. This combination ensures that null values are handled programmatically while also giving users visibility into data quality issues that should be addressed.
This draft is based on general Workday knowledge. It has not been verified against your specific version and environment. Practitioners: verify the steps and share your experience below.