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 in import soluti...
Power Apps
Answered

Error in import solution when the resources contains deeper subfolder-structure

(1) ShareShare
ReportReport
Posted on by 3,072 Most Valuable Professional

I've created a pcf component having in the manifest the following resources:

 

<resources>
<code path="index.ts" order="1"/> 
<css path="css/TS_DataSetGrid.css" order="1" />
<img path="imgs/users.svg" />
<resx path="strings/TSDataSetGrid.1033.resx" version="1.0.0" />
<css path="css/font-awesome/font-awesome.css" order="1" /> 
<css path="css/font-awesome/fontawesome_webfont.eot" order="2" /> 
<css path="css/font-awesome/fontawesome_webfont.svg" order="2" /> 
<css path="css/font-awesome/fontawesome_webfont.ttf" order="2" /> 
<css path="css/font-awesome/fontawesome_webfont.woff" order="2" /> 
<css path="css/font-awesome/fontawesome_webfont.woff2" order="2" /> 
</resources>

This worked before upgrading the pac tool. Now I cannot import the solution in my system anymore.
When importing the solution I get the error:

 

09:55:22.22        Solution                BirDiaPresetterSolution        BirDiaPresetterSolution                        Failure                Import Solution Failed: CustomControl with name  failed to import with error: Part URI is not valid per rules defined in the Open Packaging Conventions specification.

09:55:22.32                        Manifest.xml                                Failure        0x80160000        CustomControl with name  failed to import with error: Part URI is not valid per rules defined in the Open Packaging Conventions specification.

 

But it works if I use this resources in my manifest file (no font-awesome subfolder this time):

<resources>
<code path="index.ts" order="1"/> 
<css path="css/TS_DataSetGrid.css" order="1" />
<img path="imgs/users.svg" />
<resx path="strings/TSDataSetGrid.1033.resx" version="1.0.0" />
<css path="css/font-awesome.css" order="1" /> 
<css path="css/fontawesome_webfont.eot" order="2" /> 
<css path="css/fontawesome_webfont.svg" order="2" /> 
<css path="css/fontawesome_webfont.ttf" order="2" /> 
<css path="css/fontawesome_webfont.woff" order="2" /> 
<css path="css/fontawesome_webfont.woff2" order="2" /> 
</resources>

I've checked if the problem is the "-" in the "font-awesome" folder, but that's not the issue.

 

It seems to me to be only a problem of replacement of "/" to "\" in the manifest, because tha path contains both "/" and "\".

Just in case it helps, the ControlManifest.xml inside my solution package looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<manifest>
 <control namespace="BirDiaPresetter" constructor="BirDiaPresetter" version="0.0.15" display-name-key="BirDiaPresetter_Display_Key" description-key="BirDiaPresetter_Desc_Key" control-type="standard" api-version="1.1.0">
 <data-set name="dataSetGrid" display-name-key="DataSetGridProperty_Display_Key"/>
 <resources>
 <code path="bundle.js" order="1"/>
 <css path="css/TS_DataSetGrid.css" order="1"/>
 <css path="css/fontawesome\font-awesome.css" order="1"/>
 <css path="css/fontawesome\fontawesome_webfont.eot" order="2"/>
 <css path="css/fontawesome\fontawesome_webfont.svg" order="2"/>
 <css path="css/fontawesome\fontawesome_webfont.ttf" order="2"/>
 <css path="css/fontawesome\fontawesome_webfont.woff" order="2"/>
 <css path="css/fontawesome\fontawesome_webfont.woff2" order="2"/>
 <img path="imgs/users.svg"/>
 <resx path="strings/TSDataSetGrid.1033.resx" version="1.0.0"/>
 </resources>
 <built-by name="pac" version="0.2.71"/>
 </control>
</manifest>

Just in case the deeper subfolder-structure shouldn't be supported by design, please report the problem while building the solution, because it took hours to find out the problem while importing the solution.

Best regards,

Diana

 

  • Verified answer
    Greg Hurlman (MSFT) Profile Picture
    Microsoft Employee on at

    Thanks for letting us know about this issue! I've filed a bug for this, so that this scenario work properly in the future. For now, stick with keeping things one directory deep, and we'll update this thread when we have this fixed with an upcoming build that deals with these sorts of nested folders properly.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard