System Error when doing input validation

liizzliizz Member Posts: 125
Hi all,

I am trying an input validation to test if fields are not blank then Status will be changed to 'Committed'.

But I am getting this error 'Type conversion is not possible because 1 of the operators contains an invalid type. Text or Code'.

I have inserted my codes on After Get Record on the Item card.

Codes:
IF Description <> '' OR "Base Unit of Measure" <> '' THEN
"Warehouse Status" := "Warehouse Status"::Committed;


Thanks to respond to my query.

Liizz

Comments

  • skullaskulla Member Posts: 140
    Please use parenthesis around the condition, you are getting this error because description is of type text and base unit of measure is of type code.

    IF (Description <> '') OR ("Base Unit of Measure" <> '') THEN
    "Warehouse Status" := "Warehouse Status"::Committed;
Sign In or Register to comment.