Hi experts,
We've been testing the Making Tax Digital functionality using various versions of Dynamics NAV on-premise. We've used the Client ID and Secret published for Dynamics NAV Business Central and noticed that when logging on to the HMRC website to sign up for the service, the software prompted is Dynamics 365 NAV Business Central not Dynamics NAV. HMRC have two approvals for the software - one for Dynamics NAV Business Central and one for "plain" Dynamics NAV.
Does anyone know if the Client ID and Secret are the same for all on-premise versions of NAV or is there a separate set for "standard" on-premise versions of NAV and if so, what these would be?
Many Thanks,
Martin Coates
*This post is locked for comments
Hi Ryan,
If you are talking about receiving the error "A Call to System..Net.HttpWebRequest.GetRequestStram failed with this message: No connection could be made because the target machine actively refused it 104.82.186.74:443" when you try to use the Authentication Code from the HMRC webpage then yes we resolved this issue by adding the DNS name of the IP to our Cloud firewall. If you are talking about another issue I can't help I am afraid. But is sounds like you might not have the correct client ID and client secret.
Kind Regards
Reece
Hi Ryan Cairns,
Have you resolved the "The client and/or agent is not authorised." issue? I am also facing the same Issue.
Hi Everyone,
So thanks to Tim for sending explaining where the client ID and Secret was. I used this to try and establish the connection. We got to the HMRC web page got the Access token which I copied into our HMRC VAT Setup Service connection, Authorisation Code field. But we were not able to enable the connection. Instead we got an error back saying "No Connection Could be made target machine actively refused it". I contacted HMRC Making Tax digital Help Desk to which they said they were aware of some problems and to send this to a specific email address with some screenshots and details. Which I did. We have not heard anything back for a month. I wondered if anyone else had the same Error and was aware of how to fix it?
UPDATE 31/07/19: Still cant establish the connection using the Client ID and Secret Microsoft provided. After Phoning HMRC again, they are telling us we need to contact our software provider and "reset" the connection. They confirmed that we were now using the correct HMRC account details now in order to grant the access. However I am wondering if because when we initially tried to establish the connection it was against a different HMRC account that there is something stored somewhere that we need to "Reset". The Error we get
"A Call to System..Net.HttpWebRequest.GetRequestStram failed with this message: No connection could be made because the target machine actively refused it 104.82.186.74:443" - The IP seems to change each time.
It does seem like something needs to be reset, because it hasn't forgotten the incorrect details, because now we are entering the correct details it still wont accept them. Has anyone else come across this can able to help.
UPDATE 10/09/2019: So we solved the issue as we realised that the issue is to do with our cloud infrastructure not allowing connection out to the HMRC Domain Name. We have made this change, but we are now presented with a new error. There new error is "the remote certificate is invalid according to the validation procedure". Does anyone have any know how to resolve this error?
Best Regards
Reece
Hi Martin
Did you get this clarification from Microsoft themselves? I've been advised by HMRC that we should speak to MS as its their solution. I've added the client id/secret into my customers 2016 deployment and it accepts it but I'm a little wary of trusting this
Many Thanks
Denny
Hello!
We have signed up for HMRC and got a valid access token back and pasted it in the service connection setup for HMRC. When we go to Vat Return Periods, click on the button "Get Vat Return Periods" we get this error "Http error 403 (Forbidden). The client and/or agent is not authorised."
Refresh token is successfull when we try this from the service connection.
SOLVED! It was the external accounting lady trying to request the access token, when we requested the token with another internal user from the company, it worked!
Thanks Timon! That's a real help. I have just put it into our system and Clicked on request the Auth code icon and it took me to the HMRC webpage. So I think it must be through the client and doesn't appear to be an issue.
Thanks Again.
Reece
Hi Reece!
You can get the Client-ID /Client Secret in this link: mbs.microsoft.com/.../365dynamicsbctaxdigitsupinfo (Legit for all NAV Versions from 2015-BC)
I cannot answer the Cloud question though... I think its done over the Client but not sure about that...
Best regards,
Timon
Hi All,
Does anyone know how we request the Client ID and Client Secret through Partner Source? I am not sure where or how to request it. And how long it takes from request to receipt?
Also does anyone know if the service connection api is done through the client or the server and whether we would need to open things up on our cloud infrastructure that NAV2018 is hosted.
Many Thanks
Reece Major
Great thanks for the update Martin. We are rolling this out to our customers in the next couple of weeks.
I've now got some clarification on the two issues:- The Client ID and Secret used for on-premise versions of Business Central is also valid for Dynamics NAV.
Also, the latest fix released by Microsoft is valid as HMRC will not accept negative values in the submission file. If the value in Box 5 of the VAT Return means a repayment is due, HMRC will work it out based on the other figures on the Return.
This all just about resolved.
Sohail Ahmed
2
mmv
2
Amol Salvi
2