Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Importing a Solution with Virtual Tables Fails

(0) ShareShare
ReportReport
Posted on by 119

I have a solution that I can't export/import to a new environment as long as it has virtual tables.  The error is below and I've checked normal stuff: I have admin privileges, no issue with the virtual tables in the source environment.

 

Solution contains a Canvas app, model driven app, flows, virtual tables and custom tables. If I remove all of the virtual tables, solution seems to import fine.  The only only commonality that I can see is that all of the virtual tables use the same virtual table data source (which makes sense as they all live on the same SQL server).

 

Solution "XXXXXXX" failed to import: Failed to create entity with logical name cr0d1_client_episode_visit_with_notes and object type code 11167. Exception: Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: Cannot add EntityDataSource with id (fe48cbbb-a046-ee11-be6d-000d3a3707cb) to solution (743888ae-6f0a-4ba3-bd20-8642ff6ea973) because it does not exist at Microsoft.Crm.ObjectModel.SolutionComponentService.VerifyComponentExists(IBusinessEntity entity, ExecutionContext context) at Microsoft.Crm.ObjectModel.SolutionComponentService.AddSolutionComponent(Guid componentId, Int32 componentType, Guid solutionId, Boolean addRequiredComponents, Boolean doNotIncludeSubcomponents, String[] includedComponentSettingsValues, ExecutionContext context) at Microsoft.Crm.ObjectModel.SolutionComponentService.AddSolutionComponent(Guid componentId, Int32 componentType, Guid solutionId, Boolean addRequiredComponents, ExecutionContext context) at Microsoft.Crm.MetadataService.VirtualEntity.VirtualConnectorProviderService.AddDatasourceAndConnectionReferenceToSolution(Guid entityDataSourceId, Guid solutionId, ExecutionContext executionContext) at Microsoft.Crm.MetadataService.VirtualEntity.VirtualConnectorProviderService.PostProcessVirtualTableSyncCore(IEntityInfo entityInfo, ExecutionContext executionContext) at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties) at Microsoft.Crm.MetadataService.VirtualEntity.VirtualConnectorProviderService.PostProcessVirtualTableSync(IEntityInfo entityInfo, ExecutionContext executionContext) at Microsoft.Crm.Metadata.EntityService.PostProcessVirtualConnectorProviderEntity(ExecutionContext context, EntityCreateInfo entityInfo, Boolean isInSolutionImportMode) at Microsoft.Crm.Metadata.EntityService.CreateInternalHelper(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, Boolean shouldCreateOnlyFromReserve, ExecutionContext context)
Categories:
  • timlee Profile Picture
    27 on at
    Re: Importing a Solution with Virtual Tables Fails

    I received the error too. Once I uploaded the full solution it goes away.

  • Marcin_Roger Profile Picture
    15 on at
    Re: Importing a Solution with Virtual Tables Fails

    Does any of you got a warning message :

     

    "Solution "ALM with Virtual Tables-VirtualTableDataSourse" imported successfully with warnings: Data Source secrets are not included in solutions. You'll need to edit your data sources to add secrets back following solution import." 

     

    after a managed package with Virtual Table Data Source and Connection Reference imported ?

     

     

  • Tommy-Upton Profile Picture
    119 on at
    Re: Importing a Solution with Virtual Tables Fails

    Genius!  Thank you!

    Now, explain why the solution import will create everything but the virtual table data source?  Think it's a bug?

  • Verified answer
    timlee Profile Picture
    27 on at
    Re: Importing a Solution with Virtual Tables Fails

    do not include the Virtual table in the smaller solution, just the Virtual Table Data Source and the Connection Reference

  • Tommy-Upton Profile Picture
    119 on at
    Re: Importing a Solution with Virtual Tables Fails

    No.  Same error as on the larger solution.  This small test solution (with just one virtual table) is the error message I pasted above.  If I remove virtual tables, it's fine.  And I can create the same virtual tables in the target environment without issue.  So I know it's not a permission issue.  For time's sake, I wish I could just recreate the virtual tables in the target environment, remove them from my solution in source, and import the rest of the solution.  But that didn't work either.

  • timlee Profile Picture
    27 on at
    Re: Importing a Solution with Virtual Tables Fails

    and this solution importing ok to the target environment?

  • Tommy-Upton Profile Picture
    119 on at
    Re: Importing a Solution with Virtual Tables Fails

    One is there, but I can't see a name or GUID.  But in the table properties, I see the data source and that data source is added to the solution:

    TommyUpton_0-1701981065530.png

     

    TommyUpton_1-1701981146274.png

    TommyUpton_2-1701981188356.png

     

  • MRoger Profile Picture
    20 on at
    Re: Importing a Solution with Virtual Tables Fails

    customizations.xml

  • timlee Profile Picture
    27 on at
    Re: Importing a Solution with Virtual Tables Fails

    click on 'dependencies' on your virtual table, and click on the 'required object' tab... verify that the Virtual Entity Data Source listed there is in the new/temporary solution you created

  • Tommy-Upton Profile Picture
    119 on at
    Re: Importing a Solution with Virtual Tables Fails

    I only see one VTD source in the solution.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 19

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 15 Super User 2025 Season 1

Overall leaderboard

Featured topics