Skip to main content
Question

Weird Bug shows in Process Form (PO505000) on Customers Site, but not in Dev


Forum|alt.badge.img

We have created a special field for displaying the Inventory description on the Create Purchase Order screen (ID:PO505000).

The standard Acumatica form will simply show the Inventory Item’s description field. 

However, since for special orders our customers frequently override the description on the sales order (or service order) we created an extension which is used in POCreate Graph.

Basically, it will check to see if there is a value in the soline and use that if needed, and if not, it will take the inventory item’s description.

The Field is defined as:

        #region UsrPOFixedDemandLineDescr
        public abstract class usrPOFixedDemandLineDescr : PX.Data.BQL.BqlString.Field<usrPOFixedDemandLineDescr> { }
        [PXString(256)]
        [PXUIField(DisplayName = "Line Description")]
        public virtual string UsrPOFixedDemandLineDescr { get; set; }
        #endregion

This is working fine in the PS505000 screen -- on my development computer.

However, at the customer site, the field is blank when the item is coming from a Sales Order. (It works fine for service orders.)

The logic for determining which value to use is pretty simple. If soline is not null we use this:

pofixeddemandExt.UsrPOFixedDemandLineDescr = soline?.TranDesc ?? InvItem.Descr;

And if soline is null we use the Service Order detail line:

pofixeddemandExt.UsrPOFixedDemandLineDescr = fsline?.TranDesc ?? InvItem.Descr;

I have no good way of understanding why it isn’t working on their system, since I cannot put a breakpoint on the customer’s server. On their server, Service Orders line description comes through, and sales orders lines come in as blank.

On my dev server, both run correctly.

We are running the same version (Build 23.213.0015) with the same customization packages installed. I copied their database to my local database, so I am using the same dataset.

It works on my system, and not on theirs. No errors. It is simply blank.

Any ideas of what I could check, or how I should go about debugging this would be appreciated!

 

8 replies

Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

Hi @mjgrice32,

What is the event you are using to update the value of the field?

        protected void POFixedDemand_RowSelecting(PXCache cache, PXRowSelectingEventArgs e)
        {

            var row = (POFixedDemand)e.Row;
            cache.SetValue<INItemPlanExt.usrPOFixedDemandLineDescr>(row, "Test");
        }

Tried using RowSelecting, works for me in my local. Could be caching issue in the customer instance, in that case, resetting cache from Apply Updates(SM203510) screen might help.!


Forum|alt.badge.img
  • Author
  • Varsity I
  • 76 replies
  • October 3, 2024
Vignesh Ponnusamy wrote:

Hi @mjgrice32,

What is the event you are using to update the value of the field?

 

Yes, I am doing it in my Selecting event as well. And, as I said, it works (in my dev system) just fine, just not there.

Could be caching issue in the customer instance, in that case, resetting cache from Apply Updates(SM203510) screen might help.!

 

I have never done that before. I can try it. Is it something I need to have people out of the system for before I do it?

 


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

No, it is not necessary to have people out when resetting the cache. Please note the system might be bit slow until the system caches the resources. Thanks,


Forum|alt.badge.img
  • Author
  • Varsity I
  • 76 replies
  • October 4, 2024
Vignesh Ponnusamy wrote:

No, it is not necessary to have people out when resetting the cache. Please note the system might be bit slow until the system caches the resources. Thanks,

Well, I did that, and still no change. 

This is really frustrating. 

How should I go about debugging this? What can I do besides replicate their system? Why could it possibly work here and not there?

Is it possible if I export a customization and then import it into my system that there are differences somewhere down the line? Like the ASP files or something?


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

Hi @mjgrice32,

Do you have any other customization that has POCreate graph extension? Also, you can use PXTrace to write information in the logs, to check if the value is being set as expected.

Additionally, you can enable logging from the Request Profiler screen(SM205070) when reproducing the issue, then check the logs.

For more details about both the options, kindly refer, 


Forum|alt.badge.img
  • Author
  • Varsity I
  • 76 replies
  • October 8, 2024
Vignesh Ponnusamy wrote:

Hi @mjgrice32,

Do you have any other customization that has POCreate graph extension?

 

Not that I am aware of. And I am reasonably confident that it is getting put into the field just fine, because it shows up when it is printed, It just doesn’t show in the Process Form. (And, of course, it shows here fine. Just not at the customer’s site.) This is really peculiar.

 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2754 replies
  • December 24, 2024

Hi ​@mjgrice32 were you able to find a solution? Thank you!


Forum|alt.badge.img
  • Author
  • Varsity I
  • 76 replies
  • December 24, 2024

No, I never did. The customer did an update tho, and the problem seemed to resolve itself.

(This kind of voodoo magic always scares me a bit...)


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