Forum Discussion

MarshallArts's avatar
MarshallArts
Experienced User
6 years ago

Exception fetching AccountingProperties after upgrade to 2019.2

I have developed a custom reporting app for a client using the MYOB API.  They have just updated to 2019.2 and it now fails with what it calls a "communication error" when the app tries to fetch the AccountingProperties from the company file (so I can get the current financial year).  It connects to the company file OK, but I cannot get past this point.  I have updated my SDK from GitHub in Visual Studio to the latest, but it was no help.  Anyone else seen this, and know what's going on?  MYOB?  Do you look at this forum??

 

[Edit]  I should have said - the client's company file is NOT in the cloud, it is on their own network server.  And further investigation reveals that the error is an HTTP error 404 [Not Found] when the service issues the call to the server.  So what has changed?  Nothing in my app has, so it has to be in the API or the SDK.

  • MarshallArts's avatar
    MarshallArts
    Experienced User

    Further information:  while waiting for MYOB support to sort this out, I have knocked up a small test program which does not use the .NET SDK provided by MYOB, but just issues direct HTTP calls to the server (which is what the SDK objects do inside the black boxes).  I can obtain the list of available company files, but as soon as I try to retrieve ANY data from the 2019.2 file, it fails, and the message I have seen says "The company file version is not supported".  I CAN retrieve data from an earlier version company file.  So it seems to me that something significant has changed at the server end, and the documentation and/or the SDK has not been updated to reflect it.  Either that, or the change was unintentional and needs to be fixed.  It is now a week since I reported this to MYOB, and still my strong impression is that nobody knows what is going on.  Very unimpressed.

    • Triboss's avatar
      Triboss
      Valued User

      What endpoint are you trying to access?

       

      When using the raw http request, what is the URL you are making the "get" call against?