Actions being deleted by COT

Actions being deleted by COT without any warning, which has happened twice now in the last 2 weeks. I checked in my changes to GIT, and in the afternoon, action stopped working. I compared the Source to local and can see the actions has been deleted from the XML.

What I think has caused this is that I generated a new DB from the Scripts I generated from the current DB and point COT to the new DB. I think this caused the issue, though the tables are the same. Not sure why COT would delete Actions though.

The same problem lies with I originally created Controller from DB (via the Modal designer) and then converted this to a Custom SQL. A week later, I deleted the View that I originally used and then the Controller also got deleted.

Is there a document/process that I need to follow to ensure these don't keep happening?
1 person has
this question
+1
Reply
  • Just to be clear, everything I have personally done has been completed by the designer.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Paul,

    The app generator does not delete actions.

    Presumable you have refreshed your project after switching to the new database.

    Here is how refreshing works:

    1) The app generator builds a baseline application from your models.
    2) Then it applies changes from the log files (Sync.*.xml) to the baseline. If the baseline does not have controllers with the same names then some of your customization will not be applied.

    If you are unable to find the source of the problem then get the consultation at https://codeontime.com/services.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited sad, anxious, confused, frustrated

  • This is what I have done.

    Reverted back a back to a backup (created by COT).

    For Controller NonConformance there are two actions (see screenshot COT_BEFORE_LOSE_OF_ACTIONS)

    1. a100 - Custom UnAllocate
    2. a101 - Customer View Supplier

    Modified the Database to point to a different table (same tables) and refresh the modal. I don't expect for actions to be lost or anything to change to NonConformance table because both tables are the same in both databases.

    After the refresh, the Controller a101 has been deleted, see screen shot (COT_AFTER_REFRESH).

    Why is the action being deleted?
    I can understand if I deleted a Field or the table to see the field or the controller being deleted.

    There are other actions that have also been deleted.

    I also include a comparison between two databases using RedGate Compare, both are the same.

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Even refreshing the mode on the same database deletes the action.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited

  • Paul,

    The app generator does not delete actions or any other configuration elements defined in Project Designer..

    Every single Project Designer manipulation is recorded in Sync.*.xml files if you are using a source control system (git).

    Refresh will cause log entries from Sync.*.xml files to be combined together in Controllers.Log.xml and Applications.Log.xml. Watch the video at https://www.youtube.com/watch?v=LrZfB... for more informatin.

    If one of the actions is not reproduced after refresh and the controller name has not changed, then most likely the "lost" action was originally defined on a different controller that does not exist in the new database anymore.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited sad, anxious, confused, frustrated

  • As per images, COT does delete actions, I did not delete them.

    Everything I has been done by the designer. The action was created on the same controller.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly happy, confident, thankful, excited sad, anxious, confused, frustrated