Skip to main content
Solved

PM action already exist error message


Andryis
Sidekick (Partner)
Forum|alt.badge.img+10
  • Sidekick (Partner)
  • 72 replies

Hello All!

When I create a new PM on AURENA, I get a message “PM action already exists” all the time. When I create a PM action through IEE, the same error message is pointing to a PM number with a revision past number.

The highest PM number is 151. When I reiterate the record, this PM number increases by a unit.

Thank to yur help.

 

Best answer by Dilini Arandara

This error normally occurs, when the sequence PCM_COUNTER_PM_SEQ is lower than the maximum number of the PM in the system.

Possible reasons for the issue to occur is if the user is using another way (data migration etc..) to create PM actions and also manually feeding the PM no without using the sequence. 

As per the solution you need to change the PCM_COUNTER_PM_SEQ to max value of the pmno+1 from database. If you are using any migration jobs to create PMs then you need to change the pm no to fetch from the sequence. If you are  giving pm no manually then you can use the query Select MAX(PM_NO) from pm_action_tab; to fetch the next pm_no value to give and you need to update the sequence also for the next value otherwise error may occur repeatedly.

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

5 replies

Dilini Arandara
Superhero (Employee)
Forum|alt.badge.img+12
  • Superhero (Employee)
  • 120 replies
  • Answer
  • May 23, 2023

This error normally occurs, when the sequence PCM_COUNTER_PM_SEQ is lower than the maximum number of the PM in the system.

Possible reasons for the issue to occur is if the user is using another way (data migration etc..) to create PM actions and also manually feeding the PM no without using the sequence. 

As per the solution you need to change the PCM_COUNTER_PM_SEQ to max value of the pmno+1 from database. If you are using any migration jobs to create PMs then you need to change the pm no to fetch from the sequence. If you are  giving pm no manually then you can use the query Select MAX(PM_NO) from pm_action_tab; to fetch the next pm_no value to give and you need to update the sequence also for the next value otherwise error may occur repeatedly.


Andryis
Sidekick (Partner)
Forum|alt.badge.img+10
  • Author
  • Sidekick (Partner)
  • 72 replies
  • May 24, 2023

Hi @Dilini Arandara 

Can you tell me where can I find the PCM_COUNTER_PM_SEQ?

Thank you


Andryis
Sidekick (Partner)
Forum|alt.badge.img+10
  • Author
  • Sidekick (Partner)
  • 72 replies
  • May 24, 2023

Hi again @Dilini Arandara 

Is it possible to solve this issue from IEE but not through PLSQL?

Thanks


Dilini Arandara
Superhero (Employee)
Forum|alt.badge.img+12

Hi, you can find it from database side. Check the next number for this PCM_COUNTER_PM_SEQ and compare it with the maximum PM number using the query given in my answer above. Then edit the next number of PCM_COUNTER_PM_SEQ accordingly as explained before.


Dilini Arandara
Superhero (Employee)
Forum|alt.badge.img+12

Hi, You have to solve this through plsql.


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