NetTalk Central

Author Topic: Error when saving existing record  (Read 3352 times)

willieb

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • Email
Error when saving existing record
« on: September 07, 2017, 03:42:22 AM »
Hi,

Could someone please assist me with the following.

When I click on Save on a form (popup), the app closes down.  From the debugview I see the following and wonder if this is the issue.

Error1 on debugview:  Rename value did not find old value _parentproc_
Error2 on debugview:  Rename value did not find old value ]]_parentproc_

There is no source on the form, the form just returns to a browse and this is then when the app closes down.

Thank you

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11204
    • View Profile
Re: Error when saving existing record
« Reply #1 on: September 08, 2017, 03:30:29 AM »
Hi Willie,
No that error is not the problem.
Can you tell me more about the app closing down? like is there a GPF message or something?
Perhaps somewhere in the browse code there is endless recursion happening.

If you can't figure it out I'll need an example to duplicate here and explain what you've done.

cheers
Bruce

willieb

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • Email
Re: Error when saving existing record
« Reply #2 on: September 15, 2017, 01:30:58 AM »
Hi Bruce,

I restored a backup to find when/where the issue is happening.  Found that after adding a new field (drop down) the app is closing down when the user saves the form.  Then deleting the drop down does not remove the issue, the app still closes down when saving the form.  There is no source on the form.

Attached is the error when the app is closing, does not look like a "GPF".  Also the debug view shows a "error [-1:2] opening file ...".

I am busy prepping the example and will post when ready.

Regards

willieb

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • Email
Re: Error when saving existing record
« Reply #3 on: September 15, 2017, 01:43:59 AM »
Hi Bruce,

Example attached.

Compiled with Clarion 10 & Nettalk 10.05

When editing a "Supplier", you can add "Zones" and "Stations".  Then when inserting/editing a "station" you can select the "zone" from drop down.  When this field was added I got the issue.

Thank You

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11204
    • View Profile
Re: Error when saving existing record
« Reply #4 on: September 18, 2017, 12:37:54 AM »
Hi Willie,

Thanks for the example.
It appears to be an ABC error of some kind - at least it disappears into abfile.clw and doesn't come back out.

If you go to global properties, Actions, File Control tab, and turn off "Enclose RI code in transaction frame" though then the problem goes away.

cheers
Bruce

willieb

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • Email
Re: Error when saving existing record
« Reply #5 on: September 18, 2017, 01:09:56 AM »
Morning Bruce,

Appreciate your feedback, will test after completing other projects.  If there is still some issues I will get back to you.

Regards