Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

how does one find the GUID of an AppModule?

Posted on by Microsoft Employee

Trying to import my unmanaged solution.  Getting an 0x8004F036 error:

The dependent component SavedQuery (Id=95b7502b-5f90-e011-95ae-00155d9cfa02) does not exist. Failure trying to associate it with AppModule (Id=768d5d1e-113f-47a1-a5b6-33bec3fbef65) as a dependency. Missing dependency lookup type = PrimaryKeyLookup.

There is a bug here (how do I report it?) where even if the App is NOT included in the solution, a SavedQuery dependency to it exists.

Anyway, this error seems to be about not finding SalesHub.  However, the target org has SalesHub so, it appears that not all SalesHub Apps have the same GUID.  I would like to verify that but, there is no way to Advanced Find an AppModule.  And, none of the GUIDs that show up in the PowerApps Designer url match the one in the error.

Additional info: yes, the view(SavedQuery) IS in the solution and the import error only shows one at a time -- I fix one and then retry getting the same error on the next view.  On the first one I looked at the view's dependency, saw SalesHub, removed it from SalesHub designer and got past the error (on to the next one!)  Again, SalesHub is NOT in the solution and good behavior requires that that dependency not be enforced.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how does one find the GUID of an AppModule?

    The problem turned out to be much less interesting than the question.

    First I looked in the Solution file of the solution.zip and found the AppModule ID on a missing AppComponent entry.  And it named the Sales app.  Here's the querystring for the Sales app on my system: main.aspx?appid=27480930-55f9-e811-a961-000d3a4e750b&pagetype=dashboard&id=2701de60-8f2a-48a4-8262-4a35ca7441fa&type=system&_canOverride=true.  If I get curious I will pull the ApplicationComponents.

    Second I looked in the Customizations file for the savedquery.  Remember I said it was in the solution?  Well it wasn't.  It was clear as day in the UI but, not to be found in the xml.

    So, I freed the view from any Apps, deleted it, exported and applied it PROD successfully.

    Hence, it was just corrupted xml not a bug.  Don't ask me how it can be in the PowerApp UI and not get exported to the solution. 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how does one find the GUID of an AppModule?

    I used the KingswaySoft SSIS to dump all 9 AppModules in my system to Excel.  I had it search all columns for the purported AppModule (Id=7c863f33-c11d-4cbd-8852-e6666cec6d2d) -- it doesn't appear in there anywhere.

    I already found the view on the order by simply replacing the id in the query string for a view.

    I no longer believe it had anything to do with Sales Hub or any of the others.  I successfully applied a "subsolution".  My brute force didn't help.  I guess I'll just keep expanding the subsolution until I find something that fails.  First I'll examine the xml in the solution.

    ADDITIONAL INFO: this is going into a completely new production org having no Model Driven preparations -- if there are any -- beyond the LinkedIn and InsideView managed solutions.

  • RE: how does one find the GUID of an AppModule?

    Well yes it does allow querying all App Module Components which are of type View. Being a non standard type though it only outputs ids of the aforementioned views

    I would suggest just try it out if you want to use it for narrowing down the problem, I only suggested it because it allows querying the relevant configuration data which cannot be done in the Web UI

    You may also be better searching the customization.xml for the relevant ids? If you unzip the solution file you can look at the information in there which may also narrow down the specific point of the problem in the solutions you are importing

    Otherwise as you suggested, trial and error adding and removing artefacts, or raising it to Microsoft may be another option

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: how does one find the GUID of an AppModule?

    Hi,

    To report a bug: admin.powerplatform.com (open service request).

    Regarding the error, I have noticed that sometime the solution cache the components. If posible, try creating a new solution and see if that workss.

    Regarding finding the details about finding saved query/app module, you can use fetchxml builder to build thequeries and see the result.

    www.youtube.com/watch

    Hope this helps.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how does one find the GUID of an AppModule?

    So, I'm faced with two brute force options -- one failure at a time per import OR deselecting each unmanaged view in each entity in each unused app.

    Will your tool query for references to unmanaged SavedQueries?  The column is labeled "State" in the "classic" solution viewer of an entity's views.

  • RE: how does one find the GUID of an AppModule?

    That's strange. It's not the behaviour I have in an instance I just inspected

    In that instance the appid in the URL for the Customer Service Hub matches the AppModuleId returned for Customer Service Hub by the app in my earlier screenshot. Perhaps I am missing something there. Note you can also query App Module Components in this app if that may help you narrow down the issue

    Otherwise sorry that didn't help, good luck solving the issue

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how does one find the GUID of an AppModule?

    It appears you have pointed out that Appid is not the same as the id of the AppModule.

    I browsed to each of the Model Driven Apps available in both the DEV source and the PROD target and neither the appid nor id in the urls for any of them began with 768d.

    Interestingly, in all four -- DEV & PROD, Sales Hub & Sales Hub w/Inside view -- the appid's are all different while the id's are the same beginning with 2701.

    So, I still don't know how to track down the error.

  • Suggested answer
    RE: how does one find the GUID of an AppModule?

    Hi Tally Ho?

    You should be able to get the id by inspecting the URL when navigated in the relevant App in the WEB UI

    For instance the below example URL has appid in the query string which is the id of the app currently open

    instance.crm6.dynamics.com/main.aspx

    Additionally if you want to have a look I have an app which may be used to query all record types in the system including Model Driven Apps and to include the ids in results

    josephmcmac.wordpress.com/.../browse-update-data-in-josephm-dynamics-365-dev-app

    github.com/.../latest

    Model-Driven-App-Query.png

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans