Talkin' DAX
Wednesday, April 8, 2026
Power Automate Function - This operation on table '' may not work if it has more than 1000 rows.
Friday, October 3, 2025
D365 F&O Dual-Write Error: Couldn't resolve the guid for field: teamid.businessUnit
After refreshing a Tier 2 from another Tier 2 and attempting Dual-Write, We received the following error:
Couldn't resolve the guid for the field: teamid.businessUnit. The lookup value was not found: [BusinessUnit Name]. Lookup parententity: teams, lookup result: .. Try this URL(s) to check if the reference data exists: https://operations-[envrionment].crm.dynamics.com/api/data/v9.0/teams?$select=name,teamid&$filter=… eq '[guid]'
Turns out the solution is very simple. Go into Power Platform Admin Center, Select 'Manage', then select your environment. On that page select 'Business Units'. Find you business unit, select it, and then hit 'Edit'.
Simply change the name by adding a single character at the end, save it, then remove the character you added.
That's it!
Friday, August 1, 2025
AX 2012 - Failed to find workflow
We recently had an issue where our workflow batch job would fail with this error. Other workflows would be partially run but not fully due to the failure. For example, if you approved a workflow it would show the approval in the 'Workflow history' but it wouldn't advance the workflow. It would just sit in review.
The solution turned out to be pretty easy. I found this blog post.
Run this query to get a RecId of the corrupted record:
FROM SYSWORKFLOWMESSAGETABLE a
WHERE a.ROOTCORRELATIONID
NOT IN(Select b.ROOTCORRELATIONID from SYSWORKFLOWTABLE b)
and a.MESSAGELIFECYCLESTATE = 1
Run this query to update the record found:
Set MESSAGELIFECYCLESTATE = 2
where RECID = [RecId from above]
Monday, July 7, 2025
D365 F&O - No Certificate Found for id
Recently I created a new Tier 1 environment and refreshed the DB from another Tier 1 environment. After attempting to edit a Vendor, we received the following error:
Encryption error occured with exception: Microsoft.Dynamics.Ax.Xpp.Security.CryptoEncryptionException: Encryption error occured with exception: Microsoft.Dynamics.AX.Configuration.CertificateHandler.NoCertificateFoundException: No certificate found for id 'xxx'.
This is being caused by the previous environment's connection to dual-write. Whereas my new Tier 1 doesn't have (nor need) dual-write, the solution to this is the following:
Using SSMS delete all records in the following tables:
DUALWRITEPROJECTCONFIGURATION
This will prevent the the environment from attempting to use Dual-Write.
Monday, June 30, 2025
D365 F&O error opening project in VS 2022 - The imported project was not found
I recently switched to a new Tier 1 machine and VS 2022 for my F&O development. After pulling down all items in version control I received the following error:
The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Dynamics\AX\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" was not found.
The fix for this was relatively easy. Open the project file in Notepad++ (Or another text editor) and change this line:
<Import Project="$(BuildTasksDirectory)\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" />
To this:
<Import Project="$(BuildTasksDirectory)\Microsoft.Dynamics.Framework.Tools.BuildTasks.17.0.targets" />
Thursday, June 12, 2025
D365 F&O Tier 1 Update Failure Step 25 AOSService
GlobalUpdate script for service model: AOSService on machine
- Ensure VS 2022 is fully upgraded.
- If you had to upgrade VS 2022, uninstall D365 F&O extension
- Re-install extension from K:\DeployablePackages\ [ID]\DevToolsService\Scripts\Microsoft.Dynamics.Framework.Tools.Installer.17.0
- Full compile of ALL modules
- DB Sync
- Restart environment
- 'Resume' upgrade
Wednesday, June 11, 2025
D365 F&O Service Update failure DevToolsService
Update script for service model: DevToolsService on machine
- If missing VS 2022, install it.
- If it is already installed, update it.
- Remove the D365 F&O extension if it is installed.
- Install D365 F&O extension from K:\DeployablePackages\[ID]\DevToolsService\Scripts\Microsoft.Dynamics.Framework.Tools.Installer.17.0
- In the same 'Scripts' folder, run the powershell command '.\AutoUpdateDevToolsService.ps1'
- If that is successfull, copy and make a duplicate of that command.
- Delete all code in the original .ps1 file and then resume your service update.