I have Virtual Entities setup in DYnamics 365 HR.
I've removed 2 custom fields from Position Detail entity in D365 HR, created 2 new fields and exposed them. Then I refreshed Virtual Entity (in D365 HR) but I I don't see changes reflected in Dataverse VT. I still see two old fields that were removed and can't see new ones.
So I decided to go to Advanced Settings to Dynamics 365, and refresh Virtual entity in there. Once I change refresh to 'Yes' (image below)
I can't save it and the error message shows the log below:
Exception Message: The data configuration for calling Finance and Operations is incomplete. Specify a value for msdyn_aadapplicationsecret.
ErrorCode: -2147185397
HexErrorCode: 0x80048d0b
ErrorDetails:
ApiExceptionSourceKey: Plugin/Microsoft.Dynamics.FOVirtualEntityGeneration.Plugins.GenerateVirtualEntityPlugin
ApiStepKey: dafdc691-ed1a-ea11-a81c-000d3a6dd9c4
ApiDepthKey: 1
ApiActivityIdKey: 26fd557a-2f1c-41d8-8452-163f72bd013a
ApiPluginSolutionNameKey: MicrosoftOperationsVESupport
ApiStepSolutionNameKey: MicrosoftOperationsVESupport
ApiExceptionCategory: ClientError
ApiExceptionMessageName: IsvAbortedBadRequest
ApiExceptionHttpStatusCode: 400
OperationStatus: 0
SubErrorCode: -2146233088
Plugin:
PluginTrace: [Microsoft.Dynamics.FOVirtualEntityGeneration.Plugins: Microsoft.Dynamics.FOVirtualEntityGeneration.Plugins.GenerateVirtualEntityPlugin]
[dafdc691-ed1a-ea11-a81c-000d3a6dd9c4: Microsoft.Dynamics.FOVirtualEntityGeneration.Plugins.GenerateVirtualEntityPlugin: Update of mshr_hrvirtualentitycatalog]
TraceText:
[Microsoft.Dynamics.FOVirtualEntityGeneration.Plugins: Microsoft.Dynamics.FOVirtualEntityGeneration.Plugins.GenerateVirtualEntityPlugin]
[dafdc691-ed1a-ea11-a81c-000d3a6dd9c4: Microsoft.Dynamics.FOVirtualEntityGeneration.Plugins.GenerateVirtualEntityPlugin: Update of mshr_hrvirtualentitycatalog]
Activity Id: ed251218-e793-4ead-af67-a914c16674d2
Application secret is populated, so I have no ideas what the problem might be.
Yes, I clicked apply changes, but new fields didn't appear in Dataverse VT.
And I've already tried what you suggested, to delete entity (set visible to No), but when saving this change I get the error:
When I open log file I see this (btw help link mentioned in the log doesn't exists) :
Exception Message: Object reference not set to an instance of an object.
ErrorCode: -2147220956
HexErrorCode: 0x80040224
ErrorDetails:
ApiExceptionSourceKey: Plugin/Microsoft.Dynamics.FOVirtualEntityGeneration.Plugins.GenerateVirtualEntityPlugin
ApiStepKey: dafdc691-ed1a-ea11-a81c-000d3a6dd9c4
ApiDepthKey: 1
ApiActivityIdKey: 34d2cffc-e9df-45ce-a00a-54c52600ad5e
ApiPluginSolutionNameKey: MicrosoftOperationsVESupport
ApiStepSolutionNameKey: MicrosoftOperationsVESupport
ApiExceptionCategory: ClientError
ApiExceptionMessageName: IsvUnExpected
ApiExceptionHttpStatusCode: 400
HelpLink: go.microsoft.com/.../
TraceText:
[Microsoft.Dynamics.FOVirtualEntityGeneration.Plugins: Microsoft.Dynamics.FOVirtualEntityGeneration.Plugins.GenerateVirtualEntityPlugin]
[dafdc691-ed1a-ea11-a81c-000d3a6dd9c4: Microsoft.Dynamics.FOVirtualEntityGeneration.Plugins.GenerateVirtualEntityPlugin: Update of mshr_hrvirtualentitycatalog]
Activity Id: 988aabed-97a7-4c54-ab53-46650cf3486a
Hi,
When you added two new fields in D365 HR then did you use custom field setup form and clicked on Apply changes? If yes, then it should new fields.
Additionally, instead of doing refresh yes in CE, you can make visible No and refresh the "available for finance and operation" and make your entity visible to yes again.
It's quite weird but I did in this way couple of times to resolve the refresh issue.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156