Skip to main content
Solved

Import scenario to skip filed values based on a specific condition


Forum|alt.badge.img
  • Semi-Pro II
  • 247 replies

Hello all,

I have been trying to create an import scenario for SO where I have 4 columns from which the data is to be inserted. Out of these 4 columns it is not necessary that the data from these 4 columns are required to be inserted.

So as per the above screenshot, for row 1, the value under book1 should be inserted. Similarly, for last row the value under book1 & book2 columns should be inserted while the other should be skipped. For a single row an individual order would be made.

What condition can be inserted so that the cells where ‘-’ sign is inserted will not be inserted and be skipped in the import scenario?

Thanks.

Best answer by riglesias

Hi @Harry,

If you map Line Number line to =-2 it will delete lines from the grid (see webinar from link below with detailed example min 57:58)
If you need to add multiple lines under details for a single document, you need to have one line per item for the same document number. Like this:

 



Here’s the webinar where I clarify mapping Line number line to =-2 deletes lines from a grid:

 

https://community.acumatica.com/import-and-export-scenarios-221/webinar-common-examples-of-import-scenarios-206


Hope this helps.

If you still run into any issues, please export the scenario to XML and attach it here so I can restore it in my demo and review.

View original
Did this topic help you find an answer to your question?

9 replies

riglesias
Acumatica Employee
Forum|alt.badge.img+2
  • Acumatica Employee
  • 93 replies
  • March 4, 2025

Hi ​@Harry 

Have you tried using iif expression? IIf( expr, truePart, falsePart )
Something like this IIf( [Book2]=’-’, ‘’, [Book2])


Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • 247 replies
  • March 5, 2025
riglesias wrote:

Hi ​@Harry 

Have you tried using iif expression? IIf( expr, truePart, falsePart )
Something like this IIf( [Book2]=’-’, ‘’, [Book2])

Here’s is the import scenario:

 

 

Where Dummy Item is a non stock that has been created in the system and this dummy item is placed where the cell is empty with value ‘-’
So can you guide me to where shall I be adding the iff expression you’ve shared?

Thanks.


Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • 247 replies
  • March 6, 2025

Hey ​@riglesias , can you suggest any other format of the input file?


riglesias
Acumatica Employee
Forum|alt.badge.img+2
  • Acumatica Employee
  • 93 replies
  • March 6, 2025

Hi ​@Harry ,

In my expression, for the true part I typed ‘ ‘ so the fields that have the ‘-’ value would be replaced by a blank space. If you need to select the dummy item instead, change the ‘ ‘ true part with ‘Dummy Item’.  
In your mapping, under Inventory ID line, under Field/Action Name column try this: 
IIf( [Book2]=’-’, ‘Dummy Item’, [Book2])


Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • 247 replies
  • March 6, 2025
riglesias wrote:

Hi ​@Harry ,

In my expression, for the true part I typed ‘ ‘ so the fields that have the ‘-’ value would be replaced by a blank space. If you need to select the dummy item instead, change the ‘ ‘ true part with ‘Dummy Item’.  
In your mapping, under Inventory ID line, under Field/Action Name column try this: 
IIf( [Book2]=’-’, ‘Dummy Item’, [Book2])

Hey ​@riglesias , shall I add this above the Line Number -2 condition of the Inventory ID?


riglesias
Acumatica Employee
Forum|alt.badge.img+2
  • Acumatica Employee
  • 93 replies
  • Answer
  • March 6, 2025

Hi @Harry,

If you map Line Number line to =-2 it will delete lines from the grid (see webinar from link below with detailed example min 57:58)
If you need to add multiple lines under details for a single document, you need to have one line per item for the same document number. Like this:

 



Here’s the webinar where I clarify mapping Line number line to =-2 deletes lines from a grid:

 

https://community.acumatica.com/import-and-export-scenarios-221/webinar-common-examples-of-import-scenarios-206


Hope this helps.

If you still run into any issues, please export the scenario to XML and attach it here so I can restore it in my demo and review.


Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • 247 replies
  • March 7, 2025
riglesias wrote:

Hi @Harry,

If you map Line Number line to =-2 it will delete lines from the grid (see webinar from link below with detailed example min 57:58)
If you need to add multiple lines under details for a single document, you need to have one line per item for the same document number. Like this:

 



Here’s the webinar where I clarify mapping Line number line to =-2 deletes lines from a grid:

 

https://community.acumatica.com/import-and-export-scenarios-221/webinar-common-examples-of-import-scenarios-206


Hope this helps.

If you still run into any issues, please export the scenario to XML and attach it here so I can restore it in my demo and review.

Hey ​@riglesias , so in this case can you guide me out how can I split/convert these items from columns (Book1,2,3,4 values) into rows?


Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • 247 replies
  • March 9, 2025

Hey ​@riglesias , I was able to format the excel sheet using forumlae. So below is the input data:


So now the import scenario should skip the blank rows of Book1 column:

I followed the youtube link that you had shared, but still it doesnt process. rather it skips the later inventory ids that are in the sheet too.

 

 


riglesias
Acumatica Employee
Forum|alt.badge.img+2
  • Acumatica Employee
  • 93 replies
  • March 10, 2025

Hello ​@Harry 

 

You can try setting up a Source restriction. Something like this:

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings