Troubleshooting: Control 1.25 - MIME Type Restrictions for File Uploads
Last Updated: February 2026
Common Issues
| Issue | Cause | Resolution |
|---|---|---|
| Blocked file type still uploadable | Extension not in blocklist or typo in configuration | Verify extension spelling and semicolon separators |
| MIME type not recognized by platform | Incorrect MIME type string or unsupported format | Use standardized IANA MIME type identifiers |
| Zone template application fails | Insufficient permissions or environment locked | Verify Power Platform Admin role; check environment state |
| DLP policy not triggering on file uploads | DLP policy not scoped to Power Platform or connector | Review DLP policy scope in Purview Compliance Portal |
| Sentinel query returns no results | Diagnostic settings not configured or data latency | Enable Power Platform admin activity connector in Sentinel |
| FsiMimeControl module import errors | Module not found or PowerShell version mismatch | Import module from repository path and verify PowerShell 7.0+ |
Detailed Troubleshooting
Issue: Blocked File Type Still Uploadable
Symptoms: Users can successfully upload files with extensions that should be blocked (e.g., .exe, .bat)
Resolution:
- Navigate to PPAC → Environments → [Environment] → Settings → Privacy + Security
- Check the Set blocked file extensions for attachments field
- Verify the target extension is listed (without the dot)
- Check for typos or missing semicolon separators
- Confirm the setting was saved (click Save if pending)
- Clear browser cache and retry the upload test
Portal Path:
Power Platform Admin Center → Environments → [Environment] → Settings → Privacy + Security
Note: Changes may take up to 15 minutes to propagate across all sessions. If the issue persists after 15 minutes, verify the environment ID matches the target environment.
Issue: MIME Type Not Recognized by Platform
Symptoms: Configured blocked MIME type does not prevent uploads of the target file type
Resolution:
- Verify the MIME type string uses the correct IANA format (e.g.,
application/x-msdownloadnotmsdownload) - Check that the MIME type is supported by Power Platform's validation engine
- Test with a known-supported MIME type to isolate the issue
- Consider using file extension blocking as a complementary control
- Common corrections:
application/exe→application/x-msdownloadapplication/bat→application/x-battext/javascript→application/javascript
Issue: Zone Template Application Fails
Symptoms: Set-FsiMimeConfig returns an error when applying a zone template
Resolution:
- Verify your account has Power Platform Admin or Entra Global Admin role
- Check the environment is not in a locked or read-only state:
$config = Get-FsiMimeConfig -DataverseUrl 'https://org.crm.dynamics.com' -AccessToken $token Write-Host "Organization ID: $($config.OrganizationId)" - Verify the Dataverse URL is correct (copy from PPAC → Environments → Details)
- Check network connectivity to the Dataverse Web API
- If the environment is managed by another admin, coordinate before applying changes
Issue: DLP Policy Not Triggering on File Uploads
Symptoms: DLP alerts are not generated when users upload restricted file types
Resolution:
- Navigate to Microsoft Purview Compliance Portal → Data Loss Prevention → Policies
- Verify a DLP policy exists that covers Power Platform connectors
- Check the policy scope includes the target environment
- Verify the policy is in Enforce mode (not Test or Off)
- Allow up to 24 hours for new DLP policies to take effect
- Check Activity explorer for recent events to rule out display delay
Portal Path:
Microsoft Purview Compliance Portal → Data Loss Prevention → Policies → [Policy Name]
Issue: Sentinel Query Returns No Results
Symptoms: KQL queries for blocked upload events return empty result sets
Resolution:
- Verify the Power Platform admin activity data connector is enabled in Sentinel:
- Navigate to Microsoft Sentinel → Data connectors
- Search for Power Platform and verify status is Connected
- Check that diagnostic settings include admin activity events
- Verify the time range in the query matches the test period (default is 30 days)
- Confirm at least one blocked upload attempt occurred in the query time range
- Allow 15-30 minutes for event ingestion latency after a test upload
Issue: FsiMimeControl Module Import Errors
Symptoms: Import-Module FsiMimeControl fails with module not found or version errors
Resolution:
- Verify PowerShell version is 7.0 or later:
$PSVersionTable.PSVersion - Import the module from the repository path:
Import-Module ./scripts/governance/FsiMimeControl.psm1 -Force - Verify the module file exists at the expected path:
Test-Path ./scripts/governance/FsiMimeControl.psm1 - Check for module conflicts:
Get-Module -Name FsiMimeControl -ListAvailable
Escalation Path
- Power Platform Admin — Environment settings, MIME configuration, permissions
- Security Operations — DLP policy tuning, Sentinel connector, KQL query assistance
- Microsoft Support — Platform-level issues with file restrictions or Dataverse API
Known Limitations
| Limitation | Impact | Workaround |
|---|---|---|
| Extension-based blocking only (no content inspection) | Renamed files may bypass extension checks | Use both extension and MIME type blocking together |
| MIME type validation depends on client-reported type | Spoofed MIME types may pass initial check | Layer with DLP policies for content-level inspection |
| Settings per environment (not per app) | All apps in an environment share the restriction | Use separate environments for different restriction levels |
| No built-in audit trail for setting changes | Requires Sentinel connector for change tracking | Enable Power Platform admin activity connector in Sentinel |
| Allowlist overrides blocklist | If allowlist is set, blocklist is not evaluated | Use allowlist approach for Zone 3; blocklist for Zone 1-2 |
allowedmimetypes field may not be supported |
Older Dataverse versions may not expose the allowed MIME types field | Set-FsiMimeConfig will warn and apply remaining settings; configure allowlist manually in PPAC portal or request environment upgrade |
| Propagation delay up to 15 minutes | Recent changes may not be enforced immediately | Wait 15 minutes before testing after configuration changes |
Diagnostic Commands
Check Current MIME Configuration
Get-FsiMimeConfig -DataverseUrl 'https://org.crm.dynamics.com' -AccessToken $token | Format-List
Verify Module Is Loaded
Get-Module -Name FsiMimeControl | Format-Table Name, Path -AutoSize
Quick Compliance Check
Test-FsiMimeCompliance -DataverseUrl 'https://org.crm.dynamics.com' -AccessToken $token -Zone 2
List All Power Platform Environments
Get-AdminPowerAppEnvironment | Format-Table DisplayName, EnvironmentName, @{N='Type';E={$_.Internal.properties.environmentType}}
Export Configuration for Audit
# Export MIME configuration for a specific environment
Get-FsiMimeConfig -DataverseUrl 'https://org.crm.dynamics.com' -AccessToken $token -OutputFormat JSON -OutputPath '.\MimeConfigAudit.json'
Related Documentation
- Power Platform File Upload Settings
- Dataverse File and Image Columns
- Power Platform DLP Policies
- Microsoft Sentinel Data Connectors
Back to Control 1.25 | Portal Walkthrough | PowerShell Setup | Verification Testing