Understanding Flow Versions
Every flow has multiple versions over its lifetime:Draft Version
Your working copy. Only one draft exists per flow. Editable and unpublished.
Locked Versions
Published versions. Immutable historical records. Multiple can exist.
Version States
- Draft
- Locked
- One per flow: Only the current working version
- Editable: Can be modified at any time
- Unpublished: Not running in production
- Overwritten: Changes overwrite the draft
Version Lifecycle
1
Create Flow
When you create a new flow, a draft version is created:
2
Edit Draft
Make changes to the draft version. Changes are auto-saved:
3
Publish
Publishing creates a new locked version:
4
Continue Editing
After publishing, continue editing the draft:
5
Publish Again
Each publish creates a new locked version:
Viewing Version History
Version List
Access the version history from the flow builder:Versions are listed newest to oldest, with user information showing who made changes.
Version Metadata
- Version ID: Unique identifier
- Display Name: Flow name at that version
- Valid: Whether all steps were valid
- Updated By: User who created this version
- Timestamp: When version was created
- Schema Version: Flow schema version number
Using Version History
View a Previous Version
1
Open Version Selector
Click the version dropdown in the flow builder.
2
Select Version
Choose any locked version to view.
3
View Read-Only
The version opens in read-only mode:
4
Return to Draft
Click “Edit Flow” to return to the draft version.
Use Version as Draft
Restore a previous version to your draft:1
View Previous Version
Select the version you want to restore.
2
Click 'Use as Draft'
This copies the version to your draft.
3
Review Changes
The draft now matches the selected version.
4
Publish (Optional)
If satisfied, publish to make it the active version.
Rollback Capabilities
Rollback to Previous Version
To rollback to a previous version:- Quick Rollback
- Review Before Rollback
- Gradual Rollback
- Open version history
- Select the version to restore
- Click “Use as Draft”
- Click “Publish” immediately
- Flow now runs the restored version
Version Comparison
While Activepieces doesn’t have built-in visual diff, you can compare versions:1
Open First Version
View the first version you want to compare.
2
Note Key Differences
Review:
- Trigger configuration
- Number of actions
- Action settings
- Error handling options
3
Open Second Version
Switch to the other version.
4
Compare
Note differences in:
- Step configuration
- Data mappings
- Connections used
Future versions of Activepieces may include visual diff tools for comparing versions.
Schema Versions
Flow versions track the schema version:- Flow structure format changes
- New features added
- Breaking changes
Schema Migration
Old versions are automatically migrated:Schema migrations are automatic and backward-compatible. Old versions continue to work.
Version Metadata Tracking
Updated By User
- User ID: Who created this version
- User Info: Full user details (name, email)
- Timestamp: When version was created
Connection Tracking
- Connections: Which connections are used
- Agents: Which AI agents are referenced
Version Backup and Recovery
Backup Files
- Code action source code
- Sample data
- Configuration files
Recovery
If a version is corrupted or lost:- Version History: Access any locked version
- Backup Files: Restore from backup file IDs
- Export/Import: Export flow and import to new flow
Best Practices
Publish Frequently
Publish Frequently
Create locked versions regularly:
- After significant changes
- Before testing in production
- When reaching stable states
- Before major refactors
Use Descriptive Flow Names
Use Descriptive Flow Names
Update the flow display name to reflect major changes:
Test Before Publishing
Test Before Publishing
Always test your draft before publishing:
- Run test flows
- Verify all steps
- Check data mappings
- Review error handling
Document Changes
Document Changes
Use flow notes to document what changed:
Keep Version History Clean
Keep Version History Clean
- Don’t publish incomplete work
- Combine related changes into one publish
- Use draft for experimentation
- Only publish tested, working versions
Plan Rollbacks
Plan Rollbacks
Before making risky changes:
- Note current published version ID
- Make changes in draft
- Test thoroughly
- Publish
- Monitor closely
- Rollback if needed
Version Limits
Activepieces keeps all flow versions indefinitely. There’s no automatic cleanup or version limit.
- ✅ Complete audit trail
- ✅ Can rollback to any version
- ✅ No data loss
- ⚠️ Storage grows over time (minimal impact)
Troubleshooting
Can't Find Old Version
Can't Find Old Version
Problem: Old version not showing in history.Solutions:
- Check pagination - versions may be on next page
- Verify flow ID is correct
- Ensure you have permission to view history
Use as Draft Fails
Use as Draft Fails
Problem: Error when copying version to draft.Solutions:
- Ensure you have write permissions
- Check if version exists
- Verify flow is not locked by another user
Version Shows as Invalid
Version Shows as Invalid
Problem: Old version marked as invalid.Reasons:
- Was published in invalid state (shouldn’t happen)
- Schema migration issue
- Piece version no longer available
- View the version to see validation errors
- Use as draft and fix issues
- Contact support if migration issue
Published Version Not Running
Published Version Not Running
Problem: Published version but flow not executing.Check:
- Is flow enabled? (Toggle must be on)
- Check
operationStatus- might still be enabling - Verify trigger configuration
- Review trigger logs for errors
Next Steps
Publishing
Learn about publishing workflows
Debugging
Debug version issues
Templates
Create reusable templates
Best Practices
Workflow best practices