Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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?) .