Skip to main content
Solved

PM Action Warning Message

  • November 17, 2023
  • 5 replies
  • 102 views

Mervan
Sidekick
Forum|alt.badge.img+9

Hi everbody,

I get this error when I type 2301 in the start value field on the PM action screen. How can I solve it?
Best regards,

Mervan 

 

Best answer by Marcel.Ausan

@Mervan I just checked the code where this warning is triggered.

My assumption is that based on the Calendar setup at maintenance organization level, it can’t find a next working day → therefore throwing the warning.

temp_date_ := Work_Time_Counter_API.Get_Next_Work_Day__(Organization_Api.Get_Calendar_Id(newrec_.org_contract, newrec_.org_code), counter_, (trunc(nvl(newrec_.valid_from, newrec_.start_date)) - 1));
         IF temp_date_ IS NULL OR ( temp_date_ - trunc(nvl(newrec_.valid_from, newrec_.start_date)) > 7 ) THEN
            Client_SYS.Add_Warning(lu_name_, 'NOMAINTCAL: The calendar start date is later than the valid from date of the PM. Do you want to continue?');
         END IF;

Could you check the calendar setup at Maint Org level?

 

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

Marcel.Ausan
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • November 17, 2023

@Mervan could you try to specify a value for the Calendar ID. I see in your case it’s empty.

I guess since you haven’t specified any calendar, when trying to save the PM Action, this validation fails.

 

Additionally, you could setup a default maintenance calendar in Object Properties:

 


Mervan
Sidekick
Forum|alt.badge.img+9
  • Sidekick
  • November 17, 2023

Hİ @Marcel.Ausan ,

Thanks for your answer. Unfortunately the problem persists.

 

 

 

 


Marcel.Ausan
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • November 17, 2023

@Mervan I just checked the code where this warning is triggered.

My assumption is that based on the Calendar setup at maintenance organization level, it can’t find a next working day → therefore throwing the warning.

temp_date_ := Work_Time_Counter_API.Get_Next_Work_Day__(Organization_Api.Get_Calendar_Id(newrec_.org_contract, newrec_.org_code), counter_, (trunc(nvl(newrec_.valid_from, newrec_.start_date)) - 1));
         IF temp_date_ IS NULL OR ( temp_date_ - trunc(nvl(newrec_.valid_from, newrec_.start_date)) > 7 ) THEN
            Client_SYS.Add_Warning(lu_name_, 'NOMAINTCAL: The calendar start date is later than the valid from date of the PM. Do you want to continue?');
         END IF;

Could you check the calendar setup at Maint Org level?

 


Mervan
Sidekick
Forum|alt.badge.img+9
  • Sidekick
  • November 17, 2023

The solution is great.Thank you @Marcel.Ausan 😁🤣


Marcel.Ausan
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • November 17, 2023
Mervan wrote:

The solution is great.Thank you @Marcel.Ausan 😁🤣

Glad I could help!


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