Skip to main content
Answer

Import Scenario to Update SO Line - Sub account

  • June 2, 2025
  • 1 reply
  • 60 views

Forum|alt.badge.img

Hi , 

I made an import scenario to override the subaccount of some sales orders. It keep gives me an error preventing the upload. Could you please anyone check and assist me with the upload? 

I have attached the Import scenario here. 

Thanks,

Dulanjana

Best answer by lauraj46

Hi ​@dsenevirathne54 ,

When posting your question, it’s helpful to include the error message that you received.  That being said, I took a look at your import scenario and it looks like the problem is with your detail line lookup.

On the <Line Number> row, a value of -1 means to insert a new detail record.  Your scenario is attempting in insert a new detail record, and populate the line number and subaccount.

I’m guessing that instead you are trying to update an existing line.  There are a couple of approaches to do this:

  1. Instead of -1, specify an index for the detail row to update.  This should be the [SOLine.SortOrder] field minus 1.     
  1. If the SKUs are unique on an order, you can make the <Line Number> row inactive (it can’t be deleted).

Hope this helps!

1 reply

lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • Answer
  • June 2, 2025

Hi ​@dsenevirathne54 ,

When posting your question, it’s helpful to include the error message that you received.  That being said, I took a look at your import scenario and it looks like the problem is with your detail line lookup.

On the <Line Number> row, a value of -1 means to insert a new detail record.  Your scenario is attempting in insert a new detail record, and populate the line number and subaccount.

I’m guessing that instead you are trying to update an existing line.  There are a couple of approaches to do this:

  1. Instead of -1, specify an index for the detail row to update.  This should be the [SOLine.SortOrder] field minus 1.     
  1. If the SKUs are unique on an order, you can make the <Line Number> row inactive (it can’t be deleted).

Hope this helps!