Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP forum
Unanswered

E-invoicing - Error in getting response from Tax

Posted on by 20

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

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans