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.
Cannot create TimeBill
Hi ,
I want to create a TimeBill using Webservices (2.5 Version) and we are getting error like "[Error]: [Code=UNEXPECTED_ERROR] An unexpected error occurred." . We are using the following code. pls help me out ....
TimeBill timebill = new TimeBill();
RecordRef ref = new RecordRef();
ref.setInternalId("969");
timebill.setEmployee(ref);
ref = null;
ref = new RecordRef();
ref.setInternalId("1");
timebill.setLocation(ref);
ref = null;
ref = new RecordRef();
ref.setInternalId("-5");
timebill.setCustomer(ref);
timebill.setHours("1.1");
timebill.setExternalId("MYTIME01");
Calendar ca = Calendar.getInstance(Locale.US);
ca.set(Integer.parseInt("2007"), Integer.parseInt("7"), Integer
.parseInt("12"));
timebill.setTranDate(ca);
WriteResponse response = _port.add(timebill);
Thanks,
Derykm