My Products
Help
Anonymous
Not applicable

The class you have selected cannot be assigned to a non-stock item - when creating shipping item row

by Anonymous

 

Hello,

 

We are attempting to create a Shipping Item which can be included in the SalesOrder as a row.

This is the payload sent in:

{"inventoryNumber": {"value": "Direktleverans"}, "description": {"value": "Direktleverans"}, "status": {"value": "Active"}, "type": {"value": "NonStockItem"}, "defaultPrice": {"value": 120.0}, "itemClass": {"value": "09"}, "postingClass": {"value": "09"}, "currencyID": {"value": "SEK"}, "baseUnit": {"value": "STYCK"}, "salesUnit": {"value": "STYCK"}, "purchaseUnit": {"value": "STYCK"}, "vatCode": {"value": "01"}}'

 

Error message from Visma:

"Error creating inventory. Error: Inserting 'Stock item' record raised at least one error. Please review the errors.\r\nThe class you have selected cannot be assigned to a non-stock item, because the Stock item check box is selected for this class in the Item classes window. Select another item class which is designated to group non-stock items.\r\n"

 

 

We have tried changing class to itemclass 2 and 9 (ej lagerförda artiklar) which are non stock item classes , still same error.

 

Could you kindly advise what payload will be accepted to create a shipping item?

 

 

4 REPLIES 4
Quan Pham
PARTNER

by Quan Pham

Hi, 

I'm experiencing the same issue when trying to create a inventory with type ComponentPartItem.

It works if i use FinishedGoodItem.

 

Json: 

{
  "inventoryNumber": {
    "Value": "test5"
  },
  "status": {
    "Value": "NoRequest"
  },
  "description": {
    "Value": "TEST5"
  },
  "itemClass": {
    "Value": "410"
  },
  "type": {
    "Value": "ComponentPartItem"
  },
  "kitItem": {
    "Value": false
  },
  "vatCode": {
    "Value": "02"
  },
  "postingClass": {
    "Value": "P4100"
  },
  "packaging": {
    "baseItemWeight": {
      "Value": 0.0
    },
    "baseItemVolume": {
      "Value": 0.0
    }
  }
}
 
Response: 
{
    "message": "Error creating inventory. Error: Inserting  'Item' record raised at least one error. Please review the errors.\r\nThe class you have selected cannot be assigned to a non-stock item, because the Stock item check box is selected for this class in the Item classes window. Select another item class which is designated to group non-stock items.\r\nError: VAT category '02' cannot be found in the system.\r\nError: 'Base unit' cannot be empty.\r\nError: 'Sales unit' cannot be empty.\r\nError: 'Purchase unit' cannot be empty.\r\n"
}
Yıldırım
VISMA

by Yıldırım

Images can be uploaded via the toolbar located in the reply section. 
Visma Community.jpg

Are you checking the Item Classes ? This might be related to your company licence / configuration, please also send us the companyID & name. 

Thanks. 

Yıldırım
VISMA

by Yıldırım

Hello, could you please double-check the ItemClasses (ScreenId=IN201000) properties those you have tried to use with Non-Stock Item and make sure the following settings are correct ? 

Item classes.jpg

 

Anonymous
Not applicable

by Anonymous

How does one respond to this ticket with a image/screenshot? (Cant find a image icon in the response bar)

The settings look similar to yours except the check box "Stock Item" & "Allow negative quantity "does not exist in our view.