Skip to main content
Solved

wanted to update some field in completed state record and i got this error, Error: The record cannot be saved.

  • April 24, 2024
  • 3 replies
  • 122 views

Hello Everybody,

i added an action that i want it to modify a user defined field then 
i want to Call Actions.PressSave()
to save the chages to the database.
but the line Actions.PressSave() is getting this error: Error: The record cannot be saved.

i know that i could use PxDataBase.Update, but the company doesn’t want this solution.

is there any suggestions?
 

Best answer by Nilkanth Dipak

Hi @mohammadessam53 ,

I am not sure but you can use another approach to save the values using

graph.persist();

Hope, it helps.

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

3 replies

Nilkanth Dipak
Varsity II
Forum|alt.badge.img+10
  • Varsity II
  • 393 replies
  • Answer
  • April 24, 2024

Hi @mohammadessam53 ,

I am not sure but you can use another approach to save the values using

graph.persist();

Hope, it helps.


Forum|alt.badge.img+1
  • Acumatica Moderator
  • 14 replies
  • April 25, 2024

@mohammadessam53 You can also try Save.Press(); But I would recommend you to take a deeper look into the error you are getting and share the code so that we can try to understand and suggest better.


Forum|alt.badge.img+6
  • Captain II
  • 553 replies
  • April 25, 2024

You haven’t mentioned if opening the order on the screen shows that the order is in a state that can be edited or if the document has been completed and you’re being prevented from being updated. If you can’t edit it on the screen then you have to work on how to get it to where you can update the record.

Have a look at this blog entry that covers how to make fields editable when the document typically can’t be updated:

https://asiablog.acumatica.com/2021/10/enable-customization-fields-when-document-is-completed.html

This forum thread also covers the topic, hopefully it’s of value:

 


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