Extension Issues
This guide covers issues specific to the ACS extension generation and installation process.
Understanding the Extension
ACS generates a Business Central extension that implements your security rules. Common issues relate to:
- Code generation
- Compilation
- Installation
- Version conflicts
Generation Issues
Issue: Generation Hangs
Symptoms:
- Create Extension starts but never completes
- Progress indicator doesn't move
Solutions:
- Wait longer (up to 5-10 minutes for large configurations)
- Cancel and retry
- Check for database locks
- Restart the session
Issue: "No Security Features" Warning
Symptoms:
- Message says no features to generate
Solutions:
- Verify security features exist
- Check features have field/action/data controls
- Features need content to generate code
Issue: Missing Page Extensions
Symptoms:
- Extension generates but some pages aren't controlled
Solutions:
- Verify pages are added to features
- Check page IDs are correct
- Regenerate after adding pages
Compilation Errors
Issue: Field Not Found
Error Message:
Field 'Unit Cost' not found in Table 'Item'
Cause:
- Field was removed or renamed in BC
- Field ID changed
Solution:
- Update the field reference in security feature
- Remove obsolete field entries
- Regenerate
Issue: Page Not Found
Error Message:
Page 'Customer Card Old' not found
Cause:
- Page was removed from BC
- Page ID changed
Solution:
- Update page reference
- Remove obsolete page entries
- Regenerate
Issue: Syntax Error in Filter
Error Message:
Invalid filter expression
Cause:
- Malformed filter syntax
- Invalid characters in filter
Solution:
- Review filter expressions
- Fix syntax errors
- Test filter manually in BC
Issue: Object ID Conflict
Error Message:
Object ID already in use
Cause:
- Another extension using same IDs
- Rare conflict scenario
Solution:
- Contact support
- May need configuration adjustment
Installation Errors
Issue: Schema Migration Failed
Error Message:
Cannot modify table schema
Cause:
- Data migration issue
- Field type changes
Solution:
- Check for data in affected tables
- May need manual data migration
- Contact support for assistance
Issue: Dependency Not Found
Error Message:
Dependency 'AL Compiler' not found
Cause:
- Required dependency not installed
Solution:
- Install the AL Compiler extension
- Usually installs automatically with ACS
Issue: Permission Denied
Error Message:
You do not have permission to install extensions
Cause:
- User lacks admin permissions
Solution:
- Use an admin account
- Verify extension management permissions
Version Issues
Issue: Old Extension Still Active
Symptoms:
- New configuration not taking effect
- Old security rules still applied
Solution:
- Verify new extension is installed
- Check version number
- Uninstall old, reinstall new if needed
- Refresh browser
Issue: Cannot Update Extension
Error Message:
Cannot update extension: data incompatibility
Solution:
- Backup current configuration
- Uninstall old version
- Install new version
- Restore configuration if needed
Issue: Extension Version Mismatch
Symptoms:
- Features in configuration but not in extension
Solution:
- Regenerate extension to sync
Conflict Field Issues
Issue: "Cannot Modify Property" Error
Error Message:
Cannot modify Visible property - already has expression
Cause:
- Field has existing visibility expression
- Not handled as conflict field
Solution:
- Open Handle Conflict Fields
- Configure the conflict
- Regenerate extension
Issue: Original Expression Overridden
Symptoms:
- Business logic not working
- Field always hidden/shown when it shouldn't be
Cause:
- Conflict resolution set to "Override"
- Original expression not preserved
Solution:
- Change to "Combined" resolution
- Regenerate extension
- Test business logic
Runtime Issues
Issue: Extension Causes Page Errors
Symptoms:
- Error when opening pages
- Page crashes or shows error
Diagnostic Steps:
- Identify the page
- Check which features affect it
- Review field/action configurations
- Test without specific features
Solution:
- Identify problematic configuration
- Remove or fix the issue
- Regenerate extension
Issue: Extension Slows Pages
Symptoms:
- Noticeable delay opening pages
- Slow list scrolling
Possible Causes:
- Complex filter expressions
- Many security features
- Unindexed filter fields
Solutions:
- Simplify filters
- Use indexed fields
- Reduce feature complexity
- Contact support for optimization
Rollback Procedures
Rolling Back to Previous Version
If a new extension causes problems:
- Go to Extension Management
- Find ACS Security Extension
- View Version History
- Select previous version
- Revert to that version
Emergency Uninstall
If you need to remove ACS security immediately:
- Go to Extension Management
- Find ACS Security Extension
- Uninstall (note: config preserved in ACS tables)
- All ACS security removed until reinstalled
Preserving Configuration
Before major changes:
- Document your security features
- Export configuration if possible
- Test in sandbox first
Preventing Issues
Best Practices
- Test in Sandbox First
- Always test configuration changes
- Verify extension generates correctly
- Test affected pages
- Incremental Changes
- Add features incrementally
- Test after each addition
- Easier to identify problems
- Keep Records
- Document configuration changes
- Track what was changed when
- Helps with troubleshooting
- Regular Validation
- Periodically verify extension is current
- Check for BC updates that may impact
- Review conflict fields after updates
Diagnostic Information
For Support Tickets
When reporting extension issues, provide:
| Information | How to Get |
|---|---|
| ACS Version | From Extension Management |
| BC Version | From Settings → Help → About |
| Error Message | Screenshot or exact text |
| Steps to Reproduce | What you were doing |
| Configuration | Which features/fields involved |
Log Information
ACS may log information to:
- Application Insights (if configured)
- Business Central event log
- Extension runtime logs