Today, I was attempting to use the 'Expand' feature in the web api to help me with a lookup field on my custom dataverse table. No matter what I did, I could get it to work. It kept telling me that my property 'ver_dataareaid' didn't exist on my table. It, obviously, did so I knew I was doing something wrong. When using the 'Expand' you need to use the Schema name of the field:
Wednesday, September 13, 2023
Dataverse web api 'Expand'
Wednesday, August 30, 2023
Edit Dataverse table record error: It is not possible to change transferred line.
I have a dataverse table that was populated using Dual-Write and a D365 F&O entity. When attempting to edit a record directly on the dataverse table, I get the following error:
There was an error in saving this record. Unable to write to Finance and Operations apps due to following error(s): {"Write failed for entity VER_SMAServiceOrderLineEntity with unknown exception - It is not possible to change transferred line.\nvalidateWrite failed on data source 'SMAServiceOrderLine (SMAServiceOrderLine)'"} Please rectify your data and try again. If issue persists after multiple retries, please contact your system administrator.
This error is coming from the 'validateWrite' method on the SMAServiceOrderLine table because the service order is in a 'Posted' status.
Thursday, August 10, 2023
D365 F&O - DMF Import 'Field 'Service Order' does not allow editing'
I came across this error while trying to import data into a copied version of the 'SMAServiceOrderHeaderEntity'. I posted a question about here and was able to find the following solution.
Wednesday, July 5, 2023
D365 F&O - Workspace form pattern error: The browser session was lost due to an error on the server.
This week I was attempting to prototype a workspace in F&O. After walking through the 'Pattern' I applied to the newly created form, I ran my workspace and ran into this error:
Thursday, March 9, 2023
AX 2012 R2 CU9 (Originally CU6) to D365 F&O Code & Data Upgrade
Over the past several weeks I have been attempting to upgrade our AX DB into D365 mainly using instructions from here.
Before doing the steps there, you will need to see if you have a 'Display' menu item named 'SysCheckList_UpgradeToNextV'. If you don't have that (Which I did not), then you will need to install KB4048614. This will give you an upgrade checklist to prep your database and modelstore for the upgrade. (This will require going through the standard software update checklist.)
After going through some failed attempts, I narrowed my focus to 2 main paths:
- Upgrade my company's custom code / data ONLY.
- This means removing ALL ISV models. This was ok for us as our ISVs have D365 solutions.
- Upgrade my company's custom data that fits in vanilla AX.
- This means removing ALL custom models.
After attempting a code and data upgrade for option1, we decided to remove ALL non data related customizations. (Classes, forms, etc.) This would leave us with only our Tables, EDTs, etc.
AX 2012 R2 CU9 DIXF Data Export
As we are now moving to D365, we need to export our data. Our partner assumed we had DIXF, however, we are in CU6 and it doesn't have DIXF.
In order to use DIXF we upgrade one non-production environment to CU9. (Microsoft recommended either CU8 or CU9 not CU7).
Once we upgraded that, we could then use DIXF. However, this left an issue of how to get new data from PRODUCTION into this CU9 environment.
- Using the test data transfer tool, export out ALL DMF tables.
- Refresh non-production environment transactional DB as usual. (DO NOT refresh model DB)
- Run CU9 KB upgrade to upgrade the DB
- Run and complete the software update checklist.
- Using the test data transfer tool, import ALL DMF tables.
AX 2012 Workflow Originator
Recently, I had a request to bulk close out 500+ cases that were currently in workflow. The issue I came to was I couldn't find where the workflow was pulling the 'Workflow originator' from. After some research, I found that it is stored in the SysWorkflowTable and the Originator field.
Tuesday, January 24, 2023
AX 2012 to D365 Data Upgrade: Incremental sync did not complete successfully
Well, we are finally doing an upgrade to D365! It's exciting to get into this chapter of our ERP.
While attempting a data upgrade to D365, I ran into the following error when running the data upgrade 'execute' portion of the script:
AOS database sync failed. Microsoft.Dynamics.AX.Framework.Database.TableSyncException: Incremental sync did not complete successfully. Error: ArgumentException:tableId.
at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.<>c.<RunPartialTableSync>b__23_1(Tuple`2 result)
at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler)
at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.RunPartialTableSync(SyncOptions options, String sqlConnectionString, IMetadataProvider metadataProvider)
at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.PartialTableViewSync()
at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.PartialSync()
at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.RunSync()
at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.Run(String metadataDirectory, String sqlConnectionString, SyncOptions options)
Failed operation step '/DataUpgrade/PreReqs/PartialDbSync'
Process 'K:\AosService\PackagesLocalDirectory\bin\SyncEngine.exe' failed with exit code -1; see error logs for details.
at Microsoft.Dynamics.Servicing.DataUpgrade.Operations.Operation.RunProcess(String fileName, ArgumentsBuilder args)
at Microsoft.Dynamics.Servicing.DataUpgrade.Operations.OperationStep.Execute()
I'm not sure, at this point, what the issue is. Still researching...