web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error when importing s...
Power Apps
Answered

Error when importing solution - EntityId is null

(0) ShareShare
ReportReport
Posted on by 516

Hi all, 

 

I'm trying to import a solution to our Test environment and I get the following message:

 

Microsoft.Crm.CrmException: AttributeId is null ---> Microsoft.Crm.CrmException: AttributeId is null

at Microsoft.Crm.Metadata.RelationshipConditionCreateAction.Validate()

 

Does any one know what this means and how to solve it? I also have the GUID of the entity, but don't know how to find out which entity it is referring to. 

 

In case it is relevant, in a previous import some columns had been removed in the DEV environment. They have now been readded in the DEV environment as we realised that they should be kept to avoid data loss. The columns have been readded with the same technical name and the relationships have been given the same names. 

 

Thanks in advance for any help. 

I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @HFG 

    Can you make sure that the same fields does not exist on the target environment , if they exist on the target environment please delete them and try to re-import the solution!

     

  • HFG Profile Picture
    516 on at

    Hi Mira, 

     

    Thanks for your reply. Can you tell me what this error message means?

    There have been a lot of changes since the last time the solution was deployed so I'm really guessing that it could be linked to this but it could be anything really. If I understood the message a bit more I may be able to identify which change the problem is linked to. 

     

    Thanks

  • Verified answer
    HFG Profile Picture
    516 on at

    It turns out the columns I mentioned had nothing to do with the problem. We imported the solution manually (before we were doing it through DevOps) and were able to get the logs which told us exactly which relationship/columns were causing the problems. There were LookUp columns and there was no obvious reason that they were blocking the deployment. After deleting the columns the import worked. We then readded them as before and the import worked. Strange! 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard