Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Strange error in Receipt Confirmation
Hi All,
We are getting very strange error while doing receipt confirmation.Actually when we were using the WSDL 2.6 version, we have written the following code in MS.NET 2005 and which was working fine.
ItemReceipt ItmRcpt = new ItemReceipt();
if (ItmRcpt.landedCostMethod.ToString() != null)
{ ItmRcpt.landedCostMethod = LandedCostMethod._weight;
ItmRcpt.landedCostMethodSpecified =true;
}
else
{
ItmRcpt.landedCostMethodSpecified = false;
}
Recently we upgraded our application to WS 2008.1 version and the same code is behaving differently and it is throwing the below compilation error.
Compiler Error Message: CS0266: Cannot implicitly convert type
'com.netsuite.webservices.LandedCostMethod1' to 'com.netsuite.webservices.LandedCostMethod'. An explicit
conversion exists (are you missing a cast?) .