Skip to main content
Solved

IMPORT SCENARIO Issue: Formula Not Inserting Record

  • October 18, 2024
  • 2 replies
  • 45 views

abhijit
Varsity I
Forum|alt.badge.img

I'm encountering an issue with the IMPORT SCENARIO feature in Acumatica where a hardcoded value (e.g., =CBool('false')) works correctly, but a formula (e.g., IIf( PMProject.IsCompleted = true, CBool('false'), CBool('true'))) fails to insert the record into the target object.

Details:

  • The import scenario is based on a generic inquiry resultset.
  • The GI is based on a join between two objects (INLocation and PMProject).
  • The target object is the warehouse summary and I am inserting records to the Locations → Location Table.

Formula:

IIf( PMProject.IsCompleted = true, CBool('false'), CBool('true'))

Question:

Has anyone else encountered this issue? If so, what was the solution? Are there any specific considerations or limitations when using formulas in IMPORT SCENARIO?

Best answer by abhijit

So, one of my colleagues added the formula in the generic inquiry instead of the import scenario and now the import scenario is able to read this formula and process it correctly.

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

2 replies

darylbowman
Captain II
Forum|alt.badge.img+13

Acumatica formulas should recognize True and False without converting them (and without quotes). If this doesn’t work (IIf(PMProject.IsCompleted=True,False,True)), have you tried adding a column like this to the GI itself? Not certain it would work. Just curious.

One issue I’ve had in the past, was trying to set a value to ‘empty’ in a certain situation, in which case I had to use Null. I think I’ve encountered this as well. There are some gotchas. I would be interested to hear other answers.

PS: just making sure that a completed Project should be returning ‘false’; that’s what the above formula would do


abhijit
Varsity I
Forum|alt.badge.img
  • Author
  • 43 replies
  • Answer
  • October 22, 2024

So, one of my colleagues added the formula in the generic inquiry instead of the import scenario and now the import scenario is able to read this formula and process it correctly.


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