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 :
Microsoft Dynamics CRM (Archived)

CRM 365 Add Unit to Price List Item error

(0) ShareShare
ReportReport
Posted on by 241

We are using CRM 365 on-prem version 9. I added a Product, then try to add a Price List Item. When the form opens, the Unit is set to the default Unit on Product. When I tried to change the Unit looking, I got this error: Invalid Argument. I only have one Unit setup and it looks ok. If this a bug or something? e.g. uomscheduleid wasn't loaded but the lookup record grid trying to use it? The details are:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An exception System.FormatException was thrown while trying to convert input value 'undefined' to attribute 'uom.uomscheduleid'. Expected type of attribute value: System.Guid. Exception raised: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ActivityId>59fde5a0-090b-496d-9ce8-f2ad174e9162</ActivityId>
  <ErrorCode>-2147220989</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>An exception System.FormatException was thrown while trying to convert input value 'undefined' to attribute 'uom.uomscheduleid'. Expected type of attribute value: System.Guid. Exception raised: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).</Message>
  <Timestamp>2019-06-17T20:23:28.0367128Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault>
    <ActivityId>59fde5a0-090b-496d-9ce8-f2ad174e9162</ActivityId>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
   at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
   at System.Guid.TryParseGuidWithNoStyle(String guidString, GuidResult&amp; result)
   at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult&amp; result)
   at System.Guid..ctor(String g)
   at Microsoft.Crm.Platform.ConvertHelper.FromXmlString(AttributeMetadata attributeMetadata, String xmlString): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #16D8ADFF</Message>
    <Timestamp>2019-06-17T20:23:28.0367128Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault i:nil="true" />
    <OriginalException i:nil="true" />
    <TraceText i:nil="true" />
  </InnerFault>
  <OriginalException i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>

Thanks.

Holly Li

*This post is locked for comments

I have the same question (0)
  • StefanS365 Profile Picture
    3,575 Most Valuable Professional on at

    Hi Holly,

    So you have one Unit Group with one or more Units?

    Do you use the same unit on the selected price list?

  • Holly Li Profile Picture
    241 on at

    To figure out the problem, in our test system, I detected most of related records.  So now, I have one Unit Group, with one Unit. When I create a new price list item, the form opens with the default Unit from parent Product. Then I click on the Unit lookup, I still get the same error. The lookup window cannot be opened.  

  • Suggested answer
    StefanS365 Profile Picture
    3,575 Most Valuable Professional on at

    But why would you do this if you have only one unit?

    If you need more units, just add them to the Unit Group via the Product catalogus settings.

  • Holly Li Profile Picture
    241 on at

    I had several Unit Group and each has several units before. I removed them so I can rule out data problem. My problem is that I get an error when click on the Unit lookup (lookup more records) on the Price List Item form. The lookup window wont even open. That means even I have more units I cannot change the Unit field on the Price List Item form. Now I have 1 Unit Group and 1 unit I still get the same error, is it a system problem?

  • StefanS365 Profile Picture
    3,575 Most Valuable Professional on at

    Did you delete the standard Unit Group and Primary unit?

    Did you delete fields on the Unit entity, maybe there are missing fields in the lookup view?

  • Holly Li Profile Picture
    241 on at

    No. I still have the default Unit and it has one primary Unit. And there is no customization for any of the related out-of-box entities like product, price list item, unit. I only removed the unit records I created because at first I thought my data has problem, e.g. built the records wrong

  • StefanS365 Profile Picture
    3,575 Most Valuable Professional on at

    Did you try to clear your browser cache and delete the temporary internet files?

  • Holly Li Profile Picture
    241 on at

    that did work.

    If you add a Price List Item from the Price List, the Unit drop down doesn't auto populate and the lookup works.

    If you try to add a Price List Item from the Product, the Unit defaults to the Product Unit on the Price List Item and you get the error.

  • Holly Li Profile Picture
    241 on at

    sorry I mean refreshing cache didn't work.

  • StefanS365 Profile Picture
    3,575 Most Valuable Professional on at

    At least it works in one way. I'm out of options here.

    Maybe somebody else can help you or if you have access to Microsoft support you could raise a ticket.

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Shidin Haridas Profile Picture

Shidin Haridas 2

#2
Abdullah13 Profile Picture

Abdullah13 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans