Skip to main content
Solved

State is not valid


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Superhero (Customer)

How can it possible? Why the state is null? Because of that, I could not change to released to planned. Have you ever seen that error? And how can I solve it? I don't think changing the table manually is not a good idea.

 

 

Best answer by Janandi Vishaka

Hi,

The state column in the view is  set from below method Purchase_Requisition_API.Finite_State_Decode__(rowstate)                         here rowstate = objstate

Please check whether the value in the objstate column has any spaces might not be visible at first glance copy the value and paste and see. If so you need edit this record then it will show the state.

Have you logged into the client using English or some other language? It could be something related to language as well.

BR,

Vishaka

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

Chamika Dilhani
Hero (Former Employee)
Forum|alt.badge.img+9

Hi,

Can you please raise a support case for investigations. By looking at this it is difficult to say, what has happened.

 


Susith Setunga
Superhero (Employee)
Forum|alt.badge.img+14

Hi @hhy38 ,

I dont think this could be recreated. Seems like a one-off issue?

If you keep getting this error then that should likely be an effect of a modification. I havent seen something like this in the Core version

 

Regards

Susith


Piyal Perera
Hero (Employee)
Forum|alt.badge.img+9

Very strange indeed. As Susith explains may be one-off incident, may be due to customization.


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Superhero (Customer)
  • April 19, 2021

I think the same. However, I could not find the source. There is only one record.

 

 

 

 

Janandi Vishaka
Hero (Former Employee)
Forum|alt.badge.img+8

Hi,

The state column in the view is  set from below method Purchase_Requisition_API.Finite_State_Decode__(rowstate)                         here rowstate = objstate

Please check whether the value in the objstate column has any spaces might not be visible at first glance copy the value and paste and see. If so you need edit this record then it will show the state.

Have you logged into the client using English or some other language? It could be something related to language as well.

BR,

Vishaka

 


ascheeka12
Sidekick (Customer)
Forum|alt.badge.img+6
  • Sidekick (Customer)
  • April 19, 2021

@hhy38, As i go through all previous comments, that record seems as it was  updated manually by user may be during customization or any other reason. 

initially System is not allowing to user to update state as blank through backend: Screenshot1

but if we put space there as values then system allow us to proceed and getting same error message. Screenshot 2,3:

 

 

Solution: Please remove the space from “Rowstate” field and update it with actual stage and proceed to change its status from Released to planned.

 

Hope it helps you.

 

Regards,

 


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Superhero (Customer)
  • April 19, 2021
Janandi Vishaka wrote:

Hi,

The state column in the view is  set from below method Purchase_Requisition_API.Finite_State_Decode__(rowstate)                         here rowstate = objstate

Please check whether the value in the objstate column has any spaces might not be visible at first glance copy the value and paste and see. If so you need edit this record then it will show the state.

Have you logged into the client using English or some other language? It could be something related to language as well.

BR,

Vishaka

 

Yes, the problem about space there is after state and objstate. Thank you. Should I change it from the table directly?


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Superhero (Customer)
  • April 19, 2021
ascheeka12 wrote:

@hhy38, As i go through all previous comments, that record seems as it was  updated manually by user may be during customization or any other reason. 

initially System is not allowing to user to update state as blank through backend: Screenshot1

but if we put space there as values then system allow us to proceed and getting same error message. Screenshot 2,3:

 

 

Solution: Please remove the space from “Rowstate” field and update it with actual stage and proceed to change its status from Released to planned.

 

Hope it helps you.

 

Regards,

 

@Janandi Vishaka and your answer true. Thank you. But which answer should I select as best? :) 


Janandi Vishaka
Hero (Former Employee)
Forum|alt.badge.img+8

Hi,

yes you can write a simple update statement and update the value in the rowstate without spaces. or directly to it in table. 

 UPDATE purchase_requisition_tab
    SET rowstate ='Released'
 WHERE requisition_no =’enter no here’;

Best Regards,

Vishaka


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Superhero (Customer)
  • April 19, 2021

Thank you @Janandi Vishaka. I used the code below to update.

SELECT * FROM purchase_requisition_tab b where b.requisition_no = '147499' for update

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