Skip to main content
Solved

Error API Insert Sales Order with drop-ship

  • November 17, 2022
  • 6 replies
  • 166 views

Forum|alt.badge.img

 

Response error :

Inserting  'Sales Order Line' record raised at least one error. Please review the errors.; Inserting  'Sales Order Line' record raised at least one error. Please review the errors.; POLinkActive: The sales order line has no active link to a line of a purchase order.
 

I tried staging it went well, I tried it live this problem occurred.
how to fix this error?

Best answer by abdi

the problem is solved, the problem is in the warehouse, thanks for the help

6 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • November 17, 2022

Hi @abdi 

Did you try to create a sales order on screen with the same data? May be a data issue. Can you check once?


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • November 17, 2022

Hi @jinin yes, I have tried it directly on the screen and there is a warning in the PO Linked section, on staging and on live it runs smoothly.
This case occurs when using the Create SO API


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • November 17, 2022

Can you please share your JSON request? I will try from my side once.


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • November 17, 2022

{
    "OrderType": {
        "value": "O1"
    },
    "CustomerID": {
        "value": "O0001"
    },
    "LocationID": {
        "value": "Main"
    },
    "Commissions": {
        "DefaultSalesperson": {
            "value": "0000"
        }
    },
    "CustomerOrder": {
        "value": "2824504304"
    },
    "Description": {
        "value": "Reguler"
    },
    "Note": "",
    "Details": [
        {
            "Note": "Ekspedition",
            "InventoryID": {
                "value": "FKRTC00STH"
            },
            "OrderQty": {
                "value": "1"
            },
            "UOM": {
                "value": "PIECE"
            },
            "UnitPrice": {
                "value": "257657.6577"
            },
            "WarehouseID": {
                "value": "WH33-TPD"
            },
            "MarkForPO": {
                "value": true
            },
            "POSource": {
                "value": "Drop-Ship"
            }
        }
    ]
}


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • Answer
  • November 17, 2022

the problem is solved, the problem is in the warehouse, thanks for the help


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • November 17, 2022

Thank you for the update :)