web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Please ensure that a valid authorisation code is provided.

(1) ShareShare
ReportReport
Posted on by 4
1-Issue:
 
"After enabling feature:[Production Ready Preview] Security enhancements in UK MTD VAT integration (cloud-based deployments only)" in PROD we have below error when processong electronic message.
We received an error from the external web server. For more details, please check the electronic message action log and try again. Authorisation is required for the next API call. Please ensure that a valid authorisation code is provided.
 
2-Steps taken:
I have follwed below Steps after enabling feature.
  
  1. In Finance, go to Tax > Inquiries and reports > Electronic messages > Electronic messages, and select the UK MTD VAT TEST processing.

  2. On the Messages FastTab, select New.

  3. In the Run processing dialog, in the Action field, select Create VAT obligation request. Then select OK. A new electronic message is created that has a status of New obligation request

  4. Enter dates in the From date and To date fields and Discription.

  5. Select Send report

  6. In the Run processing dialog, the Test retrieve VAT obligations action is automatically defined, and information is filled in by the system. Select OK.

  7. You receive the following warning message in the dialog. The message indicates which endpoint (sandbox or production) the request will be sent to.

    By selecting this action, a request will be sent to HMRC's sandbox endpoint. Do you want to proceed?

    Select Yes to continue or No to cancel.

This takes to HMRC if yes selected.and  we need to either kogin or create an new test user and get auth code.we get message as below

"You will need the correct HMRC user ID and password. For example, if you want to authorise VAT software, use your VAT HMRC user ID and password."

Once I create test user and provide auth code it does not accept as per below error.

3-My question is:

Can you let me know if how to get this for right auth code?

If we try to get an auth code from web application we have error: Obtain access token is no longer supported as a separate function for the selected web application. It is done automatically when calling MTD VAT services.

 
Categories:
I have the same question (0)
  • RJ-13081711-0 Profile Picture
    4 on at
    closing this as I it is resolved now.
  • SD-14121113-0 Profile Picture
    2 on at
    How did you resolve this?
  • Gerardo Rentería García Profile Picture
    25,217 Most Valuable Professional on at
    Hi @RJ-1301711-0
    Could you tell us how you solved it? This way we can help others if they have the same problem or question.
    Best
    Gr

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 291 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans