Skip to main content
Microsoft Dynamics GP forum
Unanswered

E-invoicing - Error in getting response from Tax

editSubscribe (0) ShareShare
ReportReport
Posted on by 18

This Code :

Dim responseString As String = Encoding.UTF8.GetString(responseBytes)

Dosnt work on Dynamics GP2013 

Full Code:

Dim postData As String = Json
Dim dataBytes As Byte() = Encoding.UTF8.GetBytes(postData)

client.Headers.Add(HttpRequestHeader.ContentType, "application/json")

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12

Dim responseBytes As Byte() = client.UploadData("">backend.jofotara.gov.jo/.../", "POST", dataBytes)

Dim responseString As String = Encoding.UTF8.GetString(responseBytes)

  • Owenhicks Profile Picture
    Owenhicks 5 on at
    RE: E-invoicing - Error in getting response from Tax

    Hello, Here are a few suggestions you can try to troubleshoot the problem: Verify the endpoint: Ensure that the URL you're using for the web service endpoint is correct and accessible from the Dynamics GP2013 environment. Check security settings: Confirm that the security settings, such as TLS version, are compatible with the web service. In your code, you have already set the security protocol to TLS 1.2, which is generally recommended. Handle exceptions: Wrap the code in a try-catch block to catch any exceptions that might be occurring during the execution. This will help you identify any specific errors or exceptions that are causing the code to fail. Debugging: If possible, try debugging the code in a development environment to get more detailed information about the issue. This can help pinpoint the problem and provide additional insights.    mybkexperience

  • sorena123 Profile Picture
    sorena123 5 on at
    RE: E-invoicing - Error in getting response from Tax

    E-invoicing, or electronic invoicing, is the process of sending and receiving invoices electronically between businesses and tax authorities. It aims to streamline the invoicing process, reduce errors, and enhance tax compliance. The specific requirements and procedures for e-invoicing may vary depending on the country or region you're operating in.                                                PrepaidGiftBalance Mastercard

    Ensure that the e-invoices you've submitted contain all the required information and are in compliance with the tax regulations. Mistakes or missing details could potentially result in processing errors or delays.Confirm that you're using the correct submission method specified by the tax authorities. Different countries may have different systems or platforms for submitting e-invoices. Ensure that you're following the correct procedures and using the designated channels.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,030 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans