Trouble with "Enter" button when automation in desktop app

Hi all,
I’m working on a desktop app and process is:
The robot takes a value from the screen with get text, enter it in field (barcode) and press enter. the result should be - a new screen is opened.
I get a message saying that a not valid value was entered or no response.
When debugging its clear that the right value is stored in the variable.
I’ve tried many things:

  1. adding a delay before and after
  2. Entering the value to field and pressing enter in a different action (Hot Keys)
  3. “Set To Clipboard” and send Send key combination (CTRL+V).
  4. Click before typing
  5. Delay between keys
  6. String manipulation

When I debug and take the value saved in the variable, and press enter manually - it works
That’s why I think maybe the problem is related to the enter button

Has anyone experienced such a problem?

Just a wild guess, but please try setting the value in the field as strYourBarcodeVariable.Trim there might be a trailing or leading spaces that is of course not easy to spot

Thank you, but it didn’t work.

Can you share the workflow or at least a screenshot of it?