Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

I can't refresh Virtual Entities and reflect added custom fields in Dataverse.

Posted on by 2

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)

pastedimage1631696761186v2.png

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.

  • RE: I can't refresh Virtual Entities and reflect added custom fields in Dataverse.

    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:

    pastedimage1673517618395v1.png

    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

  • Suggested answer
    Parag Chapre Profile Picture
    Parag Chapre 12,271 Most Valuable Professional on at
    RE: I can't refresh Virtual Entities and reflect added custom fields in Dataverse.

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans