FAQ - ExpensiError NS0005: Please enter value(s) for [Department, Location or Class]

Options
Nicole Trepanier
Nicole Trepanier Expensify Team Posts: 498 Expensify Team
edited August 2021 in Integrations and API

What does it mean?

This error means the classification listed in the error message (above, it is Location) is enabled at the header level of your transaction form.

  • For expense report and journal entry export, NetSuite pulls the header level classifications from the employee record default. We only export this information to the line item level from Expensify. 
  • For vendor bills, these classifications cannot be mandatory on your transaction form since we are using the vendor record instead of the employee record and vendor records have no default classifications.

Vendor Bills

When exporting as a Vendor Bill, we pull the vendor rather than the employee so the employee defaults don't apply to the header ("main", in NetSuite) level. We don't have an option to export anything at the header level on a vendor bill; the error is shown if your transaction form in NetSuite is showing that those fields are needed.

You will need to uncheck the listed fields (shown in your error message) on your transaction form under Customization > Forms > Transaction Forms > [Click Edit on your "preferred" vendor bill form] Screen Fields > Main. Uncheck both Show and Mandatory.

From the example of Location above, this is what your transaction form should look like in NetSuite:

Sync your policy and then attempt your export again.

Journal Entries and Expense Reports

Alternatively, if you are encountering this error when exporting to a Journal Entry or Expense Report, this could be because the submitter of the report does not have an employee default set for Departments/Classes/Locations.

To resolve, please give the employee a default Department/Class/Location by going to Lists > Employees > click "Edit" next to the employee entry for the report submitter. Scroll down to the Classification section and select a default Department/Class/Location for your employee. Click Save, and sync your NetSuite connection in Expensify.


Tagged: