Hi,
We're using early bound code generation to generate classes for some of our plugins. However, since recently, it appears as though no code is generated for actions any more.
I have tried using XrmToolbox "EarlyBoundGenerator" tool, but also directly using different versions of the crmsvcutil.exe tool, and I have also tried the new pac modelbuilder tool. All of them do process the messages in the environment, but in the end I just end up with an empty code file containing only the namespace I specified. Did anyone else run into this?
It doesn't seem to matter what environment I use, the result is always the same; I have access to different test environments running both managed and unmanaged solutions of the actions I'm trying to generate code for.
Example output (CrmSvcUtil)
CrmSvcUtil : CRM Service Utility [Version 9.1.0.95]
c 2020 Microsoft Corporation. All rights reserved
Begin Reading Metadata
Completed Reading Metadata 00:01:05.2734297
Begin Writing File
Ensuring Context File is Accessible
Writing file Actions.cs to <redacted>\AppData\Local\Temp\tmpCA02.tmp
Processing 384 OptionSets
Wrote 0 OptionSets
Processing 1382 Entities
Wrote 0 Entities
Processing 135 Messages
Wrote 119 Messages
Code written to <redacted>\AppData\Local\Temp\tmpCA02.tmp.
Updating File <redacted>\Plugins\CI365.Base\Entities\Actions.cs
Cleaning up Temporary File <redacted>\AppData\Local\Temp\tmpCA02.tmp
<redacted>\AppData\Local\Temp\tmpCA02.tmp Moved To: <redacted>\Plugins\CI365.Base\Entities\Actions.cs
Completed Writing File 00:00:00.0547362
Creation Complete!
It's suspect that it says it wrote 119 messages? I don't see any of that. (Besides in our default actions filter we specify only 5 action's we're interested in)
Example output (pac modelbuilder, note that I did not put any filters on the messages in this case, and it only wrote 1 message, and I don't recognize it "msdyn_CreateTrainEffortModelConfig"):
C:\Temp\pactest3>pac modelbuilder build ^
More? -enf account;<snipped for brevity>;webresource;workflow ^
More? -a ^
More? -n CI365.Base.Entities ^
More? -o .
Connected to... <redacted>
Connected as <redacted>
Begin Reading Metadata from MetadataProviderService
Begin Reading Metadata from Server
Read 58 Entities
Read 0 Global OptionSets
Read 135 SDK Messages
Completed Reading Metadata from Server - 00:00:32.9140108
Completed Reading Metadata from MetadataProviderService - 00:00:32.9166505
Begin Writing Code File
Processing 58 Entities
Wrote 58 Entities - 00:00:01.2133810
Processing 135 Messages
Wrote 1 Messages - 00:00:00.0120162
Processing 42 Global OptionSets
Wrote 42 Global OptionSets - 00:00:00.0044162
Code written to C:\Temp\pactest3\Entities\account.cs.
Code written to C:\Temp\pactest3\Entities\activityfileattachment.cs.
<snipped>
Code written to C:\Temp\pactest3\Entities\workflow.cs.
Code written to C:\Temp\pactest3\Messages\msdyn_CreateTrainEffortModelConfig.cs.
Code written to C:\Temp\pactest3\OptionSets\msdyn_travelchargetype.cs.
<snipped>
Code written to C:\Temp\pactest3\OptionSets\workflow_stage.cs.
Code written to C:\Temp\pactest3\OptionSets\workflow_runas.cs.
Code written to C:\Temp\pactest3\EntityOptionSetEnum.cs.
Completed Writing Code File - 00:00:01.4945558
I'm a bit at a loss here, so any ideas are welcome.