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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error publishing solut...
Power Apps
Answered

Error publishing solution file to D365

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Wondering if someone could help me once again.

 

I've created two controls.  Was able to publish first one without a problem, when i added a second control and performed msbuild again then re-imported solution into D365 I get the following issue.

 

republishing.PNG

 

I assumed it was because it was using the same guids, or something like that so i've tried the following:

* Deleting the build directory

* Changing the guids on the proj file.

* Changing from unmanaged to managed solution export.

* Changing publisher names

 

Still getting same issue.  I assume something is being cached, is there a way to start a fresh.

 

 

I have the same question (0)
  • devendramsft Profile Picture
    Microsoft Employee on at

    Can you please attach logs for your solution install failure? 

  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    This is indeed a custom control error

            public const int CustomControlsImportError = unchecked((int)0x80160000); // -2146041856 
    

     Can you click on the downloag log button in the screenshot you attached and share the logs. Also if you can email me the solution if the import of this solution fails on the fresh org, it would be great. Looks like a bug to me.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Just mailing you the log and the solution files now Hemant.

  • Verified answer
    namohant Profile Picture
    Microsoft Employee on at

    edit:

    Kindly remove this from the control manifest "preview-image="img/preview.png"" and try to create a solution and import the same. We will have a bug on this and fix this as we proceed. Thank you again for raising the issue

     

    Instead of removing another way is to add a folder img and place a preview image with the associated name for instance preview.png. and then rezip the solution. That will also resolve the issue. We have filed the bug as well. To ensure this is being addressed from our end.

    SolutrionIssue.pngsamplepreviewimg.png

  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    @AndrewLyMVP wrote:

    Just mailing you the log and the solution files now Hemant.


    Thanks for reporting. We have the bugs tracking this. Hope you were able to unblock yourself based on the recommendation from our developer. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks namohant & hemant.. that worked.  Removed preview-image tag from manifest, and deleted img/preview.png from the solution and was able to publish it successfully.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard