Coder Social home page Coder Social logo

Comments (20)

millerds avatar millerds commented on August 10, 2024 1

There's a flaw in the manifest (one of our yo office templates created this issue) that his a but in rich client apps. Remove the following from between the two VersionOverride tags.

    <Hosts>
        <Host xsi:type="MailHost"/>
    </Hosts>

from office-js.

ajays-msft avatar ajays-msft commented on August 10, 2024

@carlosknowee - For now can you workaround the issue by using Outlook Web to sideload the addin? You can sideload by typing aka.ms/olksideload in your browser.
Meanwhile, I will investigate the issue on Mac, and get back to you.

https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/sideload-outlook-add-ins-for-testing?tabs=windows

image

from office-js.

carlosknowee avatar carlosknowee commented on August 10, 2024

Yes, thank you. Users can use it from the web version. It works correctly in Safari. The problem is that the reviewers won't validate it for publication on AppSource.

from office-js.

ajays-msft avatar ajays-msft commented on August 10, 2024

@carlosknowee - I am not able to repro the issue with a test manifest I had. I was able to sideload both in OWA and Mac.

The manifest.xml you attached is also not installing. I validated the manifest, and see some errors. You can validate yourself by sending a postman POST request to https://validationgateway.omex.officeppe.net/package/api/check by copy-pasting the manifest you had in the body section.

"errors": [ { "id": "c03b34d5-2ac0-49fe-a3c3-f48a1d4c4b59", "title": "Minimum Api requirement constraint for VersionOverrideV1_1 is violated", "content": "Minimum Api requirement constraint for VersionOverrideV1_1 is violated", "code": "The Minimum API requirement '1.3' specified in override VersionOverrideV1_1 is lower than minimum API requirement specified in base manifest." }

from office-js.

carlosknowee avatar carlosknowee commented on August 10, 2024

Thank you very much and sorry for the inconvenience, the manifest.xml I uploaded was not the correct one, it corresponded to some tests I did before publishing the issue. I have updated the file: manifest.xml

from office-js.

ajays-msft avatar ajays-msft commented on August 10, 2024

@carlosknowee - There is an issue in your manifest.
Please update the Host section in manifest, something like:

<Hosts>
  <Host xsi:type="MailHost"/>

Host section details
https://learn.microsoft.com/en-us/javascript/api/manifest/host?view=common-js-preview#child-elements

As per documentation:
The values of child elements in the inner VersionOverrides override the values of the same-named elements in the parent VersionOverrides and the grandparent OfficeApp element.
Sample :https://learn.microsoft.com/en-us/office/dev/add-ins/develop/xml-manifest-overview?tabs=tabid-3#manifest-v11-xml-file-examples-and-schemas

Alternatively, you can also remove the Hosts section.

from office-js.

carlosknowee avatar carlosknowee commented on August 10, 2024

Thanks for your attention, @ajays-msft

I think it may be due to the tests I had done to try to limit the minimum version, maybe in those tests I changed xsi:type to name. My fault.

In any case, I have tried removing the main <Hosts> section with the same result: the addin disappears.

I have also tried changing the section like this:

    <Hosts>
        <Host xsi:type="Mailbox"/>
    </Hosts>

and in that case the following error occurs:

Installation error

We are unable to complete this operation at this time. Please try again later

image (2)

from office-js.

carlosknowee avatar carlosknowee commented on August 10, 2024

Hi, I forgot to mention that the version without the bug is already updated in manifest.xml.

from office-js.

ajays-msft avatar ajays-msft commented on August 10, 2024

@carlosknowee - You need to change it to
<Hosts> <Host xsi:type="MailHost"/> </Hosts>

Please refer to the documentation:

Host section details
https://learn.microsoft.com/en-us/javascript/api/manifest/host?view=common-js-preview#child-elements

As per documentation:
The values of child elements in the inner VersionOverrides override the values of the same-named elements in the parent VersionOverrides and the grandparent OfficeApp element.
Sample :https://learn.microsoft.com/en-us/office/dev/add-ins/develop/xml-manifest-overview?tabs=tabid-3#manifest-v11-xml-file-examples-and-schemas

from office-js.

carlosknowee avatar carlosknowee commented on August 10, 2024

Thanks @ajays-msft, I tried again:

image

It causes an error during the installation:

image

When I try to sideload from terminal with debugger, I see:

image

This is the new manifest.xml. What I am doing wrong?

from office-js.

ajays-msft avatar ajays-msft commented on August 10, 2024

@carlosknowee - Please try to validate the addin manifest in postman using the endpoint I sent earlier.
Please let me know what the output is.

from office-js.

carlosknowee avatar carlosknowee commented on August 10, 2024

Thank you, @ajays-msft and @millerds

I experimented by excluding the block of code located between the two VersionOverride tags. Additionaly, I tested scenarios both with and without the primary Hosts node:

<Hosts>
    <Host xsi:type="MailHost"/>
</Hosts>

Including the primary node results in a validation error when posting to https://validationgateway.omex.officeppe.net/package/api/check:

{
    "utcTimestamp": "2024-03-05T11:16:15.2026397+00:00",
    "status": "Rejected",
    "errors": [
        {
            "id": "072f035c-004f-4c76-b09a-2f012a490683",
            "title": "Package Type Not Identified",
            "content": "We could not recognize any supported add-in type "
        },
        {
            "id": "7e9767d6-3d6a-4f55-9ce7-f399108e2fb7",
            "title": "Wrong Package",
            "content": "Your package does not match submission type."
        }
    ],
    "warnings": [],
    "notes": [
        {
            "id": "906eba01-3ef7-44d9-8b44-c606b4fb9f55",
            "title": "Acceptance Test Completed",
            "content": "Acceptance test service has finished checking provided add-in."
        }
    ]
}

Omitting this node allows the validation to pass successfully. However, after installation on a Mac, the add-in disappears again.

I have updated the manifest.xml.

from office-js.

carlosknowee avatar carlosknowee commented on August 10, 2024

Hello, can I offer any other information that might be helpful, or any tests I can carry out to try to solve it? Thank you very much.

from office-js.

DivyaPatidar avatar DivyaPatidar commented on August 10, 2024

@carlosknowee The latest manifest.xml shared by you looks correct. It gets installed on Outlook mac without disappearing and validation is also passing successfully. Do you not see same behaviour?

from office-js.

carlosknowee avatar carlosknowee commented on August 10, 2024

Hello, in our tests we keep getting the same error: the addin disappears after installation.

from office-js.

ajays-msft avatar ajays-msft commented on August 10, 2024

Can you please capture logs and share incident id?

from office-js.

carlosknowee avatar carlosknowee commented on August 10, 2024

How can I get the logs and the incident id on Mac?

from office-js.

mmanjaree-msft avatar mmanjaree-msft commented on August 10, 2024

Steps to generate Diagnostics/incident ID:

  1. Re-launch Outlook
  2. Repro the issue mentioned
  3. Click on Help->Collect Diagnostics
  4. Share the ID generated.

from office-js.

carlosknowee avatar carlosknowee commented on August 10, 2024

We have not found a way to get the ID. When you follow the steps you get this message:

Captura de pantalla 2024-03-13 a las 13 22 32

On checking the directory mentioned above, we have the following files:

Captura de pantalla 2024-03-13 a las 13 23 03

from office-js.

rajjha-msft avatar rajjha-msft commented on August 10, 2024

Hey @carlosknowee

Thanks for reporting the issue. We have put it in our backlog, and unfortunately have no timelines to share.

Internal tracking id : 8885920

from office-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.