Community
Showing results for 
Search instead for 
Do you mean 
Reply

Updating a Product Name

Copper Contributor
Posts: 41
Country: USA

Updating a Product Name

When I go to update a product name it gives me an error. Wondering if this is a bug.... 

I can update the cost and the price with out issue. 

 

Below is my code:

 

Product product = ACT_FW.Products.GetProductByItemNumber("11180848");

product.Name = "TEST";

 

After it attempts to update the name i get the following error:

 

4/16/2014 1:28:18 PM UpdateMain Error in the application. at Act.Framework.Opportunities.ProductManagerDB.SetProdName(Guid pid, String n)
at Act.Framework.Opportunities.Product.set_Name(String value)
at LoadProducts.UpdateProducts.findDescChanges(DataTable dtMas, DataTable dtACT) in E:\Project\QMP\LoadProducts\UpdateProducts.cs:line 135
at LoadProducts.UpdateProducts.UpdateMain() in E:\Project\QMP\LoadProducts\UpdateProducts.cs:line 44

 

 

Bob Lozinak

Twelve/Three Marketing, Inc.

Bob Lozinak
Twelve/Three Marketing, Inc.
Software Developer
Copper Contributor
Posts: 41
Country: USA

Re: Updating a Product Name

Found that it is a duplicate Name. So it works if the name is not a duplicate. 

 

But why would the description field be held to non duplicates??

Bob Lozinak
Twelve/Three Marketing, Inc.
Software Developer