Skip to main content
Question

Copy and paste to APInvoice(CXP)


Forum|alt.badge.img

I want to copy and paste an invoice but I get this error: 

what was done in version :


a solution was made in code changing the CurrentDocument by the Document where it allows copy and paste but leaving the invoice form and settings ... and it is entered again .…

But there is another problem that with that change when I create an invoice, I save it, the info of the other tabs of the invoice are erased... if I refresh the screen it appears...
if this happens to someone, please help me

5 replies

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

The purpose of CurrentDocument is to allow tabs to display information from the Document, but in a different View. If I’m understanding, whatever you changed probably caused the weird issues.

If you could provide the code, etc, of the changes you made, that would be helpful.


Forum|alt.badge.img
  • Author
  • Freshman II
  • 18 replies
  • March 21, 2025

Hi ​@darylbowman I left it as CurrentDocument as it was before... but the truth is that now I am investigating how to solve the “Sequence contains no matching element error.”

that this is the source error, when trying to copy an invoice


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

That’s a generic error. Have you tried unpublishing customizations?


Forum|alt.badge.img
  • Author
  • Freshman II
  • 18 replies
  • March 21, 2025

@darylbowman  no, but I didn't have this problem in previous versions


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

Previous versions of Acumatica or previous versions of your customization? I’d unpublish and see if it resolves. If it does, comment out most of the code and publish. Test again. Narrow down the problem area. If you figure out what is causing it, post it here. There may be a better way.


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