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.
Help updating or adding InventoryItem
Greetings. I am working on a project in C# that uses the NetSuite webservices API. I am developing in MSVS 2005.
I am having trouble when executing the add or update webservice request with an InventoryItem record. The error report I can get back only states "Unexpected Error occurred". With all other development kinks I have had, I have been able to determine the problem looking at the message in the statusDetail field inside of the WriteResponse.status field, but this message is a bit unhelpful.
Here is my code where I construct the InventoryItem record. This is from a conversion function where I convert a proprietary object into the NetSuite InventoryItem object. Most of the fields in the proprietary object are of the same type as their counterpart in InventoryItem. Where they are not you can see the conversion.