Skip to main content
Solved

Error API Insert Sales Order with drop-ship

  • Nov 17, 2022 6:50 AM UTC
  • 6 replies
  • 215 views
  • Translate All

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

View original

6 replies

jinin
Pro I
Forum|alt.badge.img+12
  • Pro I
  • Nov 17, 2022 6:55 AM UTC

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?

Translate

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • Nov 17, 2022 7:22 AM UTC

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

Translate

jinin
Pro I
Forum|alt.badge.img+12
  • Pro I
  • Nov 17, 2022 7:32 AM UTC

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

Translate

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • Nov 17, 2022 8:25 AM UTC

{
    "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"
            }
        }
    ]
}

Translate

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • Answer
  • Nov 17, 2022 9:56 AM UTC

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

Translate

jinin
Pro I
Forum|alt.badge.img+12
  • Pro I
  • Nov 17, 2022 9:57 AM UTC

Thank you for the update :)

Translate