Webservice Error Message

The 1C:Enterprise developers forum

People who like this:0Yes/0No
Active user
Rating: 2
Joined: Apr 10, 2020
Company: HerSüreçYazılım

With the request from the web service, I create a warehouse transfer document with the code below (Picture-1). I only have a problem like this. After doing the post, if it fails, I can't catch the error message. I want to catch this error and send it back to the user via web service.

In summary, I want to capture error messages that I try from the frontend and come to the user's screen. (Picture-2)

Please help

People who like this:0Yes/0No
Rating: 13
Joined: Oct 3, 2019

Hello Ertugrul,

why did you comment out the command "try"? If you want to handle the error, then you need to use the following construction:

      Return Message(ErrorDescription());

Be the first to know tips & trick on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.