AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Generic I...
Generic Inquiries w...
 
Notifications
Clear all

#AcumaticaTnT Generic Inquiries with an =null default parameter value causing errors after upgrade to 2022R1

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by megan.friesen 3 years ago
9 Posts
4 Users
4 Reactions
4,752 Views
RSS
megan.friesen
Posts: 70
 megan.friesen
Topic starter
August 8, 2022 10:05 am
(@megan-friesen)
Estimable Member
Joined: 6 years ago

Not a question, just jotting this down to share with the community.

Historically (at least in 2021 R1 and older) if you wanted to add certain fields as parameters to a generic inquiry (i.e. ProjectCD, Employee ID, etc.) and you wanted the default view to have that field be empty and thus display all projects or all employees, you had to use an =null value in the Default Value field of the parameters tab (see below).  If you didn't use the "null" value, the generic inquiry would automatically just pick the first record in the list, which wouldn't give you the desired outcome.

image

After an upgrade to 2022 R1, when you try to run the inquiry with the =null value, you will get an error: [field] cannot be found in the system.

image

 If you remove the =Null value from the Default values screen, this seems to resolve the issue.  It seems like Acumatica now treats an empty default value field as "null" which is a change from how it used to work.  I like the change for creating new GI's, but just have a bunch of custom GI's on a bunch of different client sites that need to be updated now.

image

 

image

 


8 Replies
Michael Shirk
Posts: 8
 Michael Shirk
August 15, 2022 11:42 am
(@michael-shirk)
Active Member
Joined: 4 years ago

Hey Megan, I was excited to see this as we were having the same issue and weren't sure what to do about it. 

However, when I left the default value empty it still auto-fills a value, even though I removed the default value from the Sales Order Preferences screen. (The GI is based on SOOrder)

Any ideas on what the difference might be?


Reply
John Doe Updated reacted
megan.friesen
 megan.friesen
(@megan-friesen)
Joined: 6 years ago

Estimable Member
Posts: 70
August 23, 2022 4:56 pm
Reply toMichael ShirkMichael Shirk

@michael-shirk Maybe check the settings on the "From Schema" selector on the Parameter tab?  But I'm not 100% sure if that will resolve your issue.  All the ones I've seen so far have been fixed by removing the =null from the Default Value field.


Reply
Michael Shirk reacted
Michael Shirk
Posts: 8
 Michael Shirk
August 24, 2022 8:09 am
(@michael-shirk)
Active Member
Joined: 4 years ago

Thanks Megan!

That hasn't resolved the issue and the default values are still populating. If I use the =NULL default value, I don't get an error and the parameter fields show empty, but the GI doesn't generate any results. 

Hopefully more people see this and have ideas about how to solve the issue!


Reply
KimM
 KimM
(@kimm)
Joined: 5 years ago

Eminent Member
Posts: 19
August 24, 2022 1:00 pm
Reply toMichael ShirkMichael Shirk

@michael-shirk Can you add a screen shot of your parameters tab and the conditions tab?


Reply
Michael Shirk
 Michael Shirk
(@michael-shirk)
Joined: 4 years ago

Active Member
Posts: 8
August 25, 2022 7:37 am
Reply toKimMKimM
Michael Shirk

@kimm here you go!

image
image

Reply
John Doe Updated reacted
megan.friesen
Posts: 70
 megan.friesen
Topic starter
November 1, 2022 10:47 am
(@megan-friesen)
Estimable Member
Joined: 6 years ago

I wanted to add a bit more here, as I've found a few nuances to how this seems to work...

I had a query that was using ARInvoice.ProjectID.  With =null as the default value I would get an error.  Leaving the default value field blank would just result in project "X" displaying.

However, if I brought in the source table (PMProject) for Project IDs and used PMProject.ContractCD instead, then I could use From Schema = True and Default Value =Null and it works as originally intended.

image

(It also seems like there may have been some changes to the issue I noted above.  I first noticed the issue in 22.103 and now in Build 22.113.0040 it's a bit different and now sometimes seems to continue to accept the =null value where it didn't in the earlier release)


Reply
mna10
Posts: 10
 mna10
February 13, 2023 9:05 am
(@mna10)
Eminent Member
Joined: 3 years ago

Hi, has anyone found a fix for this? I tried removing and the field auto fills as well. We are working on upgrading to 2022 r2 and I have many GIs that have =Null.


Reply
megan.friesen
 megan.friesen
(@megan-friesen)
Joined: 6 years ago

Estimable Member
Posts: 70
March 13, 2023 9:42 am
Reply tomna10mna10

@mandreottola Hi Marissa, only what I've noted above.

If you are using the primary table (i.e. using PMProject and filtering on PMProject.ContractCD) then using =NULL seems to work as intended (leaving the field blank)

If I am using field value on a secondary table (i.e. ARInvoice.ProjectID) then I seem to get the [fieldname] cannot be found issues when using =NULL (I think because in the background, the system is tracking ARInvoice.ProjectID as it's system value not the ContractCD value that everyone is familiar with seeing).

In 2022R2, removing =NULL from items on secondary tables seems to remove the error and have the report work the same way it did prior to the upgrade (as we just had some customers upgrade over the weekend to 22.209.0029)


Reply
John Doe Updated reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 18 Online
  • 2,412 Members
Our newest member: thollings
Latest Post: Attribute Input Mask
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

  • John Doe Updated
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×