Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error importing solution

(0) ShareShare
ReportReport
Posted on by 3,079

We've set up a new server (both current and new are 8.2.2 on-prem), and are trying to load our solution into it.  It fails, but none of the steps show a failure.  When I download the log, all the steps show "Processed" right up until they show "Unprocessed" - no errors or messages in between.  The only lines showing unprocessed are three lines that just have names of entities (Account and SystemUser, which we've modified, and one custom entity - but these lines don't have the "item type" of Entity, or anything in there at all.  All of these entities show as Processed above, so I don't know what these lines are), Root Components Insertion, and Dependencies Calculation.  I cannot remove those three entities, as there are too many dependencies.

I enabled tracing, and the error in the trace log is:

MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: Unable to find metadata information for attribute exchangerate
Error Number: 0x80040216
Error Message: Unable to find metadata information for attribute exchangerate
Error Details: Unable to find metadata information for attribute exchangerate
Source File: Not available
Line Number: Not available
Request URL:
Stack Trace Info: [CrmException: Unable to find metadata information for attribute exchangerate]
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.ImportSolutionCommand.Execute()
at Microsoft.Crm.Web.Tools.Solution.SolutionImportProcessPage.ImportSolution()
at Microsoft.Crm.Web.Tools.Solution.SolutionImportProcessPage.ProcessRequestData()

This feels...pretty deeply unhelpful, as it doesn't give any indication of where it's trying to look for that metadata.  Both organizations have the same base currency.  Anyone have any idea what I can do or look at next?

*This post is locked for comments

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Error importing solution

    Okay - finally tracked down one entity that didn't have any currency fields, but has currency fields from a related entity in one of its views.  Added a currency field to the entity, and then was able to get past this (onto another problem, but at least with that one I got a bloody error message in the original log, that was semi-useful).  Finally got this sorted.  Thanks!

    Gave a verified answer for the first mention of the currency fields above, since even though it was a slightly different issue it got me on the right track.  Thanks!

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Error importing solution

    The only other issues on that thread before the exchangerate errors start are some warnings saying Duplicate Detection rules for various entities will be unpublished, which I think is expected, one error about a field mapping (because the fields are different sizes strings - one of them got changed but the other didn't), and one saying that a formula is empty (but nothing to tell me which one).  I fixed the mapping, since that actually gave me the entity and field names, but haven't found an empty formula yet.  Going through them all will take quite a bit of time.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Error importing solution

    If its a same thread number then its is related to that process if not then you can ignore

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Error importing solution

    A couple of other errors showing up earlier in the log, though on different threads - "InnerException: System.InvalidOperationException: Type: Microsoft.Xrm.Sdk.EntityReference, EntityTypes are not allowed in ComplexTypes" and "InnerException: System.InvalidOperationException: Type: System.Runtime.Serialization.ExtensionDataObject, ComplexTypes with no properties is not valid in OData V4."  Still nothing that remotely points me towards where any of these are happening...should I be seeing that somewhere?

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Error importing solution

    Heh....the more I thought about this the more the currency field being removed thing sounded familiar.  So I searched, and found my old post from a couple of years ago, when we moved to this current server...:-D

    community.dynamics.com/.../222480

    However, the symptoms are very different.  Also, I found the entity that I was referring to last time (had some notes), and it's fairly standalone.  Exported it and its few dependencies, and that imported just fine, so it doesn't seem to be the problem this time.  Man, we just have bad luck with currency stuff in general, I guess...

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Error importing solution

    The 3 entities in the unprocessed section are Account (which has both the transactioncurrencyid and exchangerate fields on source and target, as well as various currency fields), SystemUser (which has both fields on both servers, but no currency type fields on either), and a custom entity (which doesn't have either field or currency fields).  No luck so far.  Back to the logs, I guess.  :-(

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Error importing solution

    The ones which says processed shouldn't be a problem. It has to be the first unprocessed one (most likely) but I have seen cases which ended up on the reports or security role (completely unrelated). So I would start by checking the first entity which is unprocessed, check the field related to currency for that field and then check the currency fields on the target entity for any clue.

    Regarding the trace, you have already found the error message. Pickup the files which were created before and after that exception and then look for the same thread in those file. May be you will find some other relate error.

    Sorry its not this easy but this is the way to do it :(

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Error importing solution

    There are about 50 entities in the solution - but you think starting with those 3 with weird lines at the end?  Gives that two of them are Account and System User they seem unlikely, but I'll check them and the custom entity before going to all of the other ones.

    I tried using the trace reader, but there are over 600 logs produced per import attempt, so I lost track pretty fast.  The thread number is something I hadn't tried to go by, though, so if I have to resort to the logs again I'll see if that helps at all...

    I just wish it would bloody tell me which entity it's having a problem with!  That would help a tonne...  Ah well.  :-)  Thanks.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Error importing solution

    On those 3 entities, review the field related to currency. I know when you add your first currency field, CRM also creates the exchange rate field. so it is possible that the field is not there. Check the same entities on the target as well.

    Also, within the logs, check the thread no. and review all logs for that Thread. Use trace reader in the Xrm toolbox.

  • awalters Profile Picture
    awalters 3,079 on at
    RE: Error importing solution

    Unfortunately that's not really an option - there's a pretty substantial web of dependencies.  I mean, I could probably tease out a couple, but they're the ones least likely to be having the issue since they're minor and haven't changed a lot.

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 Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans