Skip to main content
Answer

Error: An error occurred during processing of the field General Note: There is already an open DataReader associated with this Command which must be closed first.

  • March 9, 2023
  • 2 replies
  • 221 views

Forum|alt.badge.img

Hello everyone,

 

I am getting this error because of one of my customization and this is the stack trace for more help, when i click on Create Shipment, button for a shipment :

 

I also tried searching for this error online with respect to Acumatica ERP or BQL but could not find more help.

I would appreciate if some one can point me to the correct direction to learn more about this datareader, or if I am missing anything in the code snippets attached below.

 

The Stack Trace along with highlighted part of the code that might cause this.

WMSnotes.cs

 

 

 

BaseWMSNoteAttribute.cs

 

Any help would be appreciated,

 

Best,

Jugraj

Best answer by jdeol

Hi everyone,

 

I think I might know what the code was missing, I tried this in my RowSelectingEvent, like this using a new PXConnectionScope,

like this:

 

And it is working fine now.

Let me know if there is anything else I could have done?

 

Best,

Jdeol

2 replies

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • Answer
  • March 9, 2023

Hi everyone,

 

I think I might know what the code was missing, I tried this in my RowSelectingEvent, like this using a new PXConnectionScope,

like this:

 

And it is working fine now.

Let me know if there is anything else I could have done?

 

Best,

Jdeol


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • March 9, 2023

Thank you for sharing your solution with the community @jdeol !