Try our conversational search powered by Generative AI!

We are receiving an error when we are trying to add a line item manually using commerce manager

Vote:
 

Hi,

We are facing the below exception when we are trying to add a new line item to the purchase order.

[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14777731
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
   Mediachase.Commerce.Manager.Apps.Order.EntryTypes.CatalogEntry.InitializeForm(Entry entry) +728
   Mediachase.Commerce.Manager.Apps.Order.EntryTypes.CatalogEntry.LoadContext(IDictionary context) +264
   Mediachase.Commerce.Manager.Apps.Order.Modules.CatalogEntrySearchDialog.ConfigureButton_Click(Object sender, EventArgs e) +1082
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11798065
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1669

We have added two custom metal fields of property type longstring in the purchase order. We tried to find the reference for Mediachase.Commerce.Manager.Apps.Order.EntryTypes.CatalogEntry. please suggest what could be the issue?

#200098
Jan 02, 2019 5:26
Vote:
 

Hi Manikantha,

Please use insert code function instead of copy-paste code from other resources so it won't break the display.

Thank you.

#200101
Jan 02, 2019 8:15
Vote:
 

OK Sure thanks

#200113
Jan 02, 2019 10:20
Vote:
 

Hi Manikhantha,

Which Commerce version you are using?

Can you create a purchase order without two custom meta fields successful?

I've tried your case(add a new line item to purchase order with two custom meta fields) in CommerceManager and it's works well.

#200129
Jan 03, 2019 4:11
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.