cancel
Showing results for 
Search instead for 
Did you mean: 

Add Serialnumber/Batchnumber to PickList with ServiceLayer

mkraus92
Explorer
0 Kudos
946

Hi Community,

i seem to be unable to update a Picklist when there are Items that need a Serialnumber or Batchnumber and are not in bin locations.

My procedure is a follows:

1. Get Picklist

2. Get available Serialnumbers of item in warehouse

3. Map Serialnumberdetails to coresponding Serialnumberdetails in Picklists/Picklistslines/SerialNumbers

4. Patch Picklist

The error i get:

{
    "error": {
        "code": -4014,
        "message": {
            "lang": "en-us",
            "value": "Cannot add row without complete selection of batch/serial numbers"
        }
    }
}

Example of json i patch:

{
   
    "Absoluteentry": 191,
    "PickListsLines": [
        {
            "AbsoluteEntry": 191,
            "LineNumber": 0,
            "OrderEntry": 593,
            "OrderRowID": 0,
            "PickedQuantity": 2,
            "BaseObjectType": 17,
            "SerialNumbers": [
              {
                    "ManufacturerSerialNumber": "",
                    "InternalSerialNumber": "A6-000479",
                    "ExpiryDate": null,
                    "ManufactureDate": null,
                    "ReceptionDate": "2012-06-04",
                    "WarrantyStart": null,
                    "WarrantyEnd": null,
                    "Location": null,
                    "Notes": null,
                    "BatchID": null,
                    "SystemSerialNumber": 479,
                    "BaseLineNumber": 0,
                    "Quantity": 1,
                    "TrackingNote": null,
                    "TrackingNoteLine": null
                },  {
                    "ManufacturerSerialNumber": "",
                    "InternalSerialNumber": " A6-000543",
                    "ExpiryDate": null,
                    "ManufactureDate": null,
                    "ReceptionDate": "2012-06-04",
                    "WarrantyStart": null,
                    "WarrantyEnd": null,
                    "Location": null,
                    "Notes": null,
                    "BatchID": null,
                    "SystemSerialNumber": 543,
                    "BaseLineNumber": 0,
                    "Quantity": 1,
                    "TrackingNote": null,
                    "TrackingNoteLine": null
                }
               
            	],
            "BatchNumbers": [],
            "DocumentLinesBinAllocations": []
        }
    ]
}

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186605
Active Contributor

Dear Manuel, unfortunately I don't have help on this, but have you seen

influence request 127986?

mkraus92
Explorer
0 Kudos

Thanks, voted on it and added comment to extend the problem to ServiceLayer.