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 - Sales Order Consumption
Hello,
While using transaction search for downloading salesorders between dates I am getting orders which are existing between only june and july months. For the Sales Order of August and September (as well as pre june06), I am getting the following error
Error code: unexpected_error ,error message: "An unexpected error occurred."
I am using the following code, I know it is strange as the same code is working for June and July but not for remaining months.
SearchDateField sdf = new SearchDateField();
sdf.@operator =SearchDateFieldOperator.within;
sdf.operatorSpecified =true;
sdf.searchValue=Convert.ToDateTime(txtDateFrom.Text); //"9/01/2006"
sdf.searchValueSpecified=true;
sdf.searchValue2=Convert.ToDateTime(txtDateTo.Text); //"9/26/2006"