Forum Discussion

Ranqx's avatar
4 years ago

The Company File version is not supported

calling account right company api, and received following error message.

 

GET https://ar1.api.myob.com/accountright/xxxxxxxxxxxx/Company, resulted in a `404 Not Found` response: {  "Message": "The Company File version is not supported." }

 

I have masked actual id with 'xxxxxxx'.

 

Just want to know, What behaviour from the user side causes this?

 

 

  • Hannah_B's avatar
    Hannah_B
    MYOB Moderator

    Hi Ranqx , 

     

    Thank you for reaching out, We have recently started to decommission AccountRight 2020.2. If you are still using this version you would need to upgrade to the latest version. Please see our downloads page to download and install the latest version of AccountRight.

     

    If you already have the latest version installed or a version higher than 2020.2 what I recommend is to uninstall AccountRight and the API installer and sometimes AccountRight can upgrade to the latest version but the API installer does not, this then causes the miss-match between the two versions. 

     

    I hope this helps, 

    • IanP's avatar
      IanP
      Experienced User

      We have been unable to update our API on our W10 server now for 6 months.  Each upgrade goes OK until we come to the API part which invariably fails.

       

      Now when I try to access the API it is failing with the message

      "The Company File version is not supported."

       

      I have attached an error log file from 2020-08-22 which displays the issue.

       

      I cannot find any way to uninstal the |other version" of the api which according to the messages is blocking our ability to instal the newer version of the api.

       

      This forum won't let me supply the .txt log file (??????  yet another buggy MYOB product ????)

       

      Here is the log file cut and pasted.

       

      Message Box
      MYOB AccountRight API Setup
      There is a problem with this Windows installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.
      OK

      Setup Failed.
      One or more issues caused the setup to fail. Please fix the issues and then retyr setup. For more information see the log file.
      0x80070643 - Fata error during installation
      Close

       


      [3BEC:27A8][2020-08-22T12:50:06]i001: Burn v3.11.1.2318, Windows v10.0 (Build 18363: Service Pack 0), path: C:\ProgramData\Package Cache\{a8febe2a-695c-4045-91a5-9bd53d983ddb}\MYOB.AccountRight.API.Bootstrapper.exe
      [3BEC:27A8][2020-08-22T12:50:06]i009: Command Line: '"-burn.clean.room=C:\ProgramData\Package Cache\{a8febe2a-695c-4045-91a5-9bd53d983ddb}\MYOB.AccountRight.API.Bootstrapper.exe" -burn.filehandle.attached=612 -burn.filehandle.self=624 /uninstall'
      [3BEC:27A8][2020-08-22T12:50:06]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\Owner\AppData\Local\Temp\MYOB_AccountRight_API_20200822125006.log'
      [3BEC:27A8][2020-08-22T12:50:07]i000: Setting string variable 'WixBundleManufacturer' to value 'MYOB Technology Pty. Ltd.'
      [3BEC:336C][2020-08-22T12:50:07]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
      [3BEC:336C][2020-08-22T12:50:07]i000: Setting version variable 'WixBundleFileVersion' to value '2.23.9038.0'
      [3BEC:27A8][2020-08-22T12:50:07]i100: Detect begin, 2 packages
      [3BEC:27A8][2020-08-22T12:50:07]i000: Setting string variable 'NETFRAMEWORK45' to value '528040'
      [3BEC:27A8][2020-08-22T12:50:07]i052: Condition 'NETFRAMEWORK45 >= 378389' evaluates to true.
      [3BEC:27A8][2020-08-22T12:50:07]i101: Detected package: NetFx45Web, state: Present, cached: None
      [3BEC:27A8][2020-08-22T12:50:07]i101: Detected package: MYOB.AccountRight.API.Installer.msi, state: Present, cached: Complete
      [3BEC:27A8][2020-08-22T12:50:07]i104: Detected package: MYOB.AccountRight.API.Installer.msi, feature: ProductFeature, state: Local
      [3BEC:27A8][2020-08-22T12:50:07]i199: Detect complete, result: 0x0
      [3BEC:27A8][2020-08-22T12:50:10]i200: Plan begin, 2 packages, action: Uninstall
      [3BEC:27A8][2020-08-22T12:50:10]i204: Plan 1 msi features for package: MYOB.AccountRight.API.Installer.msi
      [3BEC:27A8][2020-08-22T12:50:10]i203: Planned feature: ProductFeature, state: Local, default requested: Unknown, ba requested: Unknown, execute action: None, rollback action: None
      [3BEC:27A8][2020-08-22T12:50:10]i000: Setting string variable 'WixBundleRollbackLog_MYOB.AccountRight.API.Installer.msi' to value 'C:\Users\Owner\AppData\Local\Temp\MYOB_AccountRight_API_20200822125006_000_MYOB.AccountRight.API.Installer.msi_rollback.log'
      [3BEC:27A8][2020-08-22T12:50:10]i000: Setting string variable 'WixBundleLog_MYOB.AccountRight.API.Installer.msi' to value 'C:\Users\Owner\AppData\Local\Temp\MYOB_AccountRight_API_20200822125006_000_MYOB.AccountRight.API.Installer.msi.log'
      [3BEC:27A8][2020-08-22T12:50:10]w321: Skipping dependency registration on package with no dependency providers: NetFx45Web
      [3BEC:27A8][2020-08-22T12:50:10]i201: Planned package: MYOB.AccountRight.API.Installer.msi, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
      [3BEC:27A8][2020-08-22T12:50:10]i201: Planned package: NetFx45Web, state: Present, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
      [3BEC:27A8][2020-08-22T12:50:10]i299: Plan complete, result: 0x0
      [3BEC:27A8][2020-08-22T12:50:10]i300: Apply begin
      [3BEC:27A8][2020-08-22T12:50:10]i010: Launching elevated engine process.
      [3BEC:27A8][2020-08-22T12:50:10]i011: Launched elevated engine process.
      [3BEC:27A8][2020-08-22T12:50:10]i012: Connected to elevated engine.
      [2AD8:397C][2020-08-22T12:50:10]i358: Pausing automatic updates.
      [2AD8:397C][2020-08-22T12:50:10]i359: Paused automatic updates.
      [2AD8:397C][2020-08-22T12:50:10]i360: Creating a system restore point.
      [2AD8:397C][2020-08-22T12:50:21]i361: Created a system restore point.
      [2AD8:397C][2020-08-22T12:50:21]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a8febe2a-695c-4045-91a5-9bd53d983ddb}, resume: Active, restart initiated: No, disable resume: No
      [2AD8:397C][2020-08-22T12:50:21]i326: Removed dependency: {a8febe2a-695c-4045-91a5-9bd53d983ddb} on package provider: {61C824C3-4945-4CE7-9E72-82A09A630543}, package MYOB.AccountRight.API.Installer.msi
      [2AD8:397C][2020-08-22T12:50:21]i329: Removed package dependency provider: {61C824C3-4945-4CE7-9E72-82A09A630543}, package: MYOB.AccountRight.API.Installer.msi
      [2AD8:397C][2020-08-22T12:50:21]i301: Applying execute package: MYOB.AccountRight.API.Installer.msi, action: Uninstall, path: (null), arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" ACCEPTEULA="1"'
      [2AD8:397C][2020-08-22T12:50:36]e000: Error 0x80070643: Failed to uninstall MSI package.
      [2AD8:397C][2020-08-22T12:50:36]e000: Error 0x80070643: Failed to execute MSI package.
      [3BEC:27A8][2020-08-22T12:50:36]e000: Error 0x80070643: Failed to configure per-machine MSI package.
      [3BEC:27A8][2020-08-22T12:50:36]i319: Applied execute package: MYOB.AccountRight.API.Installer.msi, result: 0x80070643, restart: None
      [3BEC:27A8][2020-08-22T12:50:36]e000: Error 0x80070643: Failed to execute MSI package.
      [2AD8:397C][2020-08-22T12:50:36]i318: Skipped rollback of package: MYOB.AccountRight.API.Installer.msi, action: Install, already: Present
      [3BEC:27A8][2020-08-22T12:50:36]i319: Applied rollback package: MYOB.AccountRight.API.Installer.msi, result: 0x0, restart: None
      [2AD8:397C][2020-08-22T12:50:36]i323: Registering package dependency provider: {61C824C3-4945-4CE7-9E72-82A09A630543}, version: 2.23.9038, package: MYOB.AccountRight.API.Installer.msi
      [2AD8:397C][2020-08-22T12:50:36]i325: Registering dependency: {a8febe2a-695c-4045-91a5-9bd53d983ddb} on package provider: {61C824C3-4945-4CE7-9E72-82A09A630543}, package: MYOB.AccountRight.API.Installer.msi
      [2AD8:397C][2020-08-22T12:50:36]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a8febe2a-695c-4045-91a5-9bd53d983ddb}, resume: ARP, restart: None, disable resume: No
      [2AD8:397C][2020-08-22T12:50:36]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a8febe2a-695c-4045-91a5-9bd53d983ddb}, resume: ARP, restart initiated: No, disable resume: No
      [3BEC:27A8][2020-08-22T12:50:36]i399: Apply complete, result: 0x80070643, restart: None, ba requested restart: No


      [1814:2EA4][2020-08-22T13:02:04]i001: Burn v3.11.1.2318, Windows v10.0 (Build 18363: Service Pack 0), path: C:\ProgramData\Package Cache\{a8febe2a-695c-4045-91a5-9bd53d983ddb}\MYOB.AccountRight.API.Bootstrapper.exe
      [1814:2EA4][2020-08-22T13:02:04]i009: Command Line: '"-burn.clean.room=C:\ProgramData\Package Cache\{a8febe2a-695c-4045-91a5-9bd53d983ddb}\MYOB.AccountRight.API.Bootstrapper.exe" -burn.filehandle.attached=584 -burn.filehandle.self=596 /uninstall'
      [1814:2EA4][2020-08-22T13:02:04]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\Owner\AppData\Local\Temp\MYOB_AccountRight_API_20200822130204.log'
      [1814:2EA4][2020-08-22T13:02:04]i000: Setting string variable 'WixBundleManufacturer' to value 'MYOB Technology Pty. Ltd.'
      [1814:2D0C][2020-08-22T13:02:07]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
      [1814:2D0C][2020-08-22T13:02:07]i000: Setting version variable 'WixBundleFileVersion' to value '2.23.9038.0'
      [1814:2EA4][2020-08-22T13:02:07]i100: Detect begin, 2 packages
      [1814:2EA4][2020-08-22T13:02:07]i000: Setting string variable 'NETFRAMEWORK45' to value '528040'
      [1814:2EA4][2020-08-22T13:02:07]i052: Condition 'NETFRAMEWORK45 >= 378389' evaluates to true.
      [1814:2EA4][2020-08-22T13:02:08]i101: Detected package: NetFx45Web, state: Present, cached: None
      [1814:2EA4][2020-08-22T13:02:08]i101: Detected package: MYOB.AccountRight.API.Installer.msi, state: Present, cached: Complete
      [1814:2EA4][2020-08-22T13:02:08]i104: Detected package: MYOB.AccountRight.API.Installer.msi, feature: ProductFeature, state: Local
      [1814:2EA4][2020-08-22T13:02:08]i199: Detect complete, result: 0x0
      [1814:2EA4][2020-08-22T13:02:13]i200: Plan begin, 2 packages, action: Uninstall
      [1814:2EA4][2020-08-22T13:02:13]i204: Plan 1 msi features for package: MYOB.AccountRight.API.Installer.msi
      [1814:2EA4][2020-08-22T13:02:13]i203: Planned feature: ProductFeature, state: Local, default requested: Unknown, ba requested: Unknown, execute action: None, rollback action: None
      [1814:2EA4][2020-08-22T13:02:13]i000: Setting string variable 'WixBundleRollbackLog_MYOB.AccountRight.API.Installer.msi' to value 'C:\Users\Owner\AppData\Local\Temp\MYOB_AccountRight_API_20200822130204_000_MYOB.AccountRight.API.Installer.msi_rollback.log'
      [1814:2EA4][2020-08-22T13:02:13]i000: Setting string variable 'WixBundleLog_MYOB.AccountRight.API.Installer.msi' to value 'C:\Users\Owner\AppData\Local\Temp\MYOB_AccountRight_API_20200822130204_000_MYOB.AccountRight.API.Installer.msi.log'
      [1814:2EA4][2020-08-22T13:02:13]w321: Skipping dependency registration on package with no dependency providers: NetFx45Web
      [1814:2EA4][2020-08-22T13:02:13]i201: Planned package: MYOB.AccountRight.API.Installer.msi, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
      [1814:2EA4][2020-08-22T13:02:13]i201: Planned package: NetFx45Web, state: Present, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
      [1814:2EA4][2020-08-22T13:02:13]i299: Plan complete, result: 0x0
      [1814:2EA4][2020-08-22T13:02:13]i300: Apply begin
      [1814:2EA4][2020-08-22T13:02:13]i010: Launching elevated engine process.
      [1814:2EA4][2020-08-22T13:02:13]i011: Launched elevated engine process.
      [1814:2EA4][2020-08-22T13:02:13]i012: Connected to elevated engine.
      [2248:2090][2020-08-22T13:02:13]i358: Pausing automatic updates.
      [2248:2090][2020-08-22T13:02:13]i359: Paused automatic updates.
      [2248:2090][2020-08-22T13:02:13]i360: Creating a system restore point.
      [2248:2090][2020-08-22T13:02:40]i361: Created a system restore point.
      [2248:2090][2020-08-22T13:02:40]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a8febe2a-695c-4045-91a5-9bd53d983ddb}, resume: Active, restart initiated: No, disable resume: No
      [2248:2090][2020-08-22T13:02:40]i326: Removed dependency: {a8febe2a-695c-4045-91a5-9bd53d983ddb} on package provider: {61C824C3-4945-4CE7-9E72-82A09A630543}, package MYOB.AccountRight.API.Installer.msi
      [2248:2090][2020-08-22T13:02:40]i329: Removed package dependency provider: {61C824C3-4945-4CE7-9E72-82A09A630543}, package: MYOB.AccountRight.API.Installer.msi
      [2248:2090][2020-08-22T13:02:40]i301: Applying execute package: MYOB.AccountRight.API.Installer.msi, action: Uninstall, path: (null), arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" ACCEPTEULA="1"'
      [2248:2090][2020-08-22T13:03:09]e000: Error 0x80070643: Failed to uninstall MSI package.
      [2248:2090][2020-08-22T13:03:09]e000: Error 0x80070643: Failed to execute MSI package.
      [1814:2EA4][2020-08-22T13:03:09]e000: Error 0x80070643: Failed to configure per-machine MSI package.
      [1814:2EA4][2020-08-22T13:03:09]i319: Applied execute package: MYOB.AccountRight.API.Installer.msi, result: 0x80070643, restart: None
      [1814:2EA4][2020-08-22T13:03:09]e000: Error 0x80070643: Failed to execute MSI package.
      [2248:2090][2020-08-22T13:03:09]i318: Skipped rollback of package: MYOB.AccountRight.API.Installer.msi, action: Install, already: Present
      [1814:2EA4][2020-08-22T13:03:09]i319: Applied rollback package: MYOB.AccountRight.API.Installer.msi, result: 0x0, restart: None
      [2248:2090][2020-08-22T13:03:09]i323: Registering package dependency provider: {61C824C3-4945-4CE7-9E72-82A09A630543}, version: 2.23.9038, package: MYOB.AccountRight.API.Installer.msi
      [2248:2090][2020-08-22T13:03:09]i325: Registering dependency: {a8febe2a-695c-4045-91a5-9bd53d983ddb} on package provider: {61C824C3-4945-4CE7-9E72-82A09A630543}, package: MYOB.AccountRight.API.Installer.msi
      [2248:2090][2020-08-22T13:03:09]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a8febe2a-695c-4045-91a5-9bd53d983ddb}, resume: ARP, restart: None, disable resume: No
      [2248:2090][2020-08-22T13:03:09]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a8febe2a-695c-4045-91a5-9bd53d983ddb}, resume: ARP, restart initiated: No, disable resume: No
      [1814:2EA4][2020-08-22T13:03:09]i399: Apply complete, result: 0x80070643, restart: None, ba requested restart: No


      Installing 2020.1 SE
      Main program went OK.
      The came to MYOB API

      MYOB AccountRight API Setup

      MYOB API

      SETUP FAILED
      One or more issues caused the setup to fail. Please fix the issues and then retry setup. For more nformation see the log file.

      0x80070666 - Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existng version of this product, use Add/Remove Programs on the Control Panel.

      Close

      [0C18:28AC][2020-08-22T13:33:32]i001: Burn v3.11.1.2318, Windows v10.0 (Build 18363: Service Pack 0), path: C:\Windows\Temp\{39A11756-DEC1-4FA6-840B-27576B97C56B}\.cr\MYOB.AccountRight.API.Bootstrapper.exe
      [0C18:28AC][2020-08-22T13:33:32]i009: Command Line: '"-burn.clean.room=C:\Program Files (x86)\MYOB\AccountRight\API_Installer\MYOB.AccountRight.API.Bootstrapper.exe" -burn.filehandle.attached=616 -burn.filehandle.self=624'
      [0C18:28AC][2020-08-22T13:33:32]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Program Files (x86)\MYOB\AccountRight\API_Installer\MYOB.AccountRight.API.Bootstrapper.exe'
      [0C18:28AC][2020-08-22T13:33:32]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Program Files (x86)\MYOB\AccountRight\API_Installer\'
      [0C18:28AC][2020-08-22T13:33:32]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\Owner\AppData\Local\Temp\MYOB_AccountRight_API_20200822133332.log'
      [0C18:28AC][2020-08-22T13:33:32]i000: Setting string variable 'WixBundleName' to value 'MYOB AccountRight API'
      [0C18:28AC][2020-08-22T13:33:32]i000: Setting string variable 'WixBundleManufacturer' to value 'MYOB Technology Pty. Ltd.'
      [0C18:2FFC][2020-08-22T13:33:32]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
      [0C18:2FFC][2020-08-22T13:33:32]i000: Setting version variable 'WixBundleFileVersion' to value '2.23.5508.0'
      [0C18:28AC][2020-08-22T13:33:32]i100: Detect begin, 2 packages
      [0C18:28AC][2020-08-22T13:33:32]i000: Setting string variable 'NETFRAMEWORK45' to value '528040'
      [0C18:28AC][2020-08-22T13:33:32]i102: Detected related bundle: {a8febe2a-695c-4045-91a5-9bd53d983ddb}, type: Upgrade, scope: PerMachine, version: 2.23.9038.0, operation: Downgrade
      [0C18:28AC][2020-08-22T13:33:32]i052: Condition 'NETFRAMEWORK45 >= 378389' evaluates to true.
      [0C18:28AC][2020-08-22T13:33:32]i103: Detected related package: {61C824C3-4945-4CE7-9E72-82A09A630543}, scope: PerMachine, version: 2.23.9038.0, language: 0 operation: Downgrade
      [0C18:28AC][2020-08-22T13:33:32]i101: Detected package: NetFx45Web, state: Present, cached: None
      [0C18:28AC][2020-08-22T13:33:32]i101: Detected package: MYOB.AccountRight.API.Installer.msi, state: Obsolete, cached: None
      [0C18:28AC][2020-08-22T13:33:32]i104: Detected package: MYOB.AccountRight.API.Installer.msi, feature: ProductFeature, state: Absent
      [0C18:28AC][2020-08-22T13:33:32]i199: Detect complete, result: 0x0
      [0C18:2FFC][2020-08-22T13:33:40]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 1
      [0C18:2FFC][2020-08-22T13:33:40]e000: Error 0x80070666: Cannot install a product when a newer version is installed.


      Reinstall 2020.2 SE
      at the end
      MYOB AccountRight API Setup
      MYOB API
      Modify setup

      [Unintsal] [Close]

      If I select [Uninstal] get the same unable to do the installation messages shown above.

       

  • The_Doc's avatar
    The_Doc
    Ultimate Cover User

    Hi Ranqx 

     

    You can get a lot more help with your API problems via developers@myob.com - the forum does not handle API questions well.

     

    Having said that, though I think your problem is far more complicated than your simple GET call - the 1st problem is that should now be //ar2.api.......

     

    Can you tell me what server version you are using. 

    I have been using and running the API POST/GET quite successfully with my own coding wrapper - mainly locally - but have now been testing since Xmas 20 my own full POST/GET wrapper for and online file - it is working perfectly.

     

    Yes the API install can be tripped but I have been using and installing MYOB onto Servers for over 20 years and the current MYOB version (oh it has bugs) but in general it installs relatively easily and the API (generally updates without problems).

     

    However, I have had dramas.

     

    I need to know your server version - however the 1 thing that just MUST be done I find to get a good install is that on a server there are 4 services that run - one of those is the API service - to get a clean install I stop ALL services then uninstall fully. 

     

    However, if this is a new update i.e. 2020.4 to 2021.1 - this will install a completely separate version from the exisitng.

    If you use the SE version the API current version is ALways updated to the latest version.

     

    It sounds like you need to do a complete uninstall - turnoff ALL services myob related - the library service often willnot stop - that is another story but will stuff up the install - if it doesn't stop - go into services and select - manual start - reboot the server - this service will now be stopped - stopp the others now uninstall ALL myob correctly.

     

    Here is a gem from developers - if you are having problems with your API - install 2020.1 SE version fully (it comes with SQLCE 3.5 (current is 4.0) - but 4.0 doesn't seem to run and install correctly unless 3.5 is pre-installed.

    Leave 2020.1 SE in place - now do a full install of 2021.1 SE - it should install correctly - if you are getting an API install crash you have a problem in your server - it is NOT the MYOB install.

     

    As stated - the API does install the latest version over the top of the existing.

     

    To see if the API is working - do a localhost call localhost:8080/Accountright - if the API is working it will show you files.

    If it isn't it will error.

     

    If you are serving files locally and the MYOB file is on another server - you have to make changes to the API config file on both machines for the API to see the file.

     

    IF you want to send me info via the private mail - I will try to help.

     

    The Doc