Comments (20)
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.
@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.
from office-js.
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.
@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.
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.
@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.
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
from office-js.
Hi, I forgot to mention that the version without the bug is already updated in manifest.xml.
from office-js.
@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.
Thanks @ajays-msft, I tried again:
It causes an error during the installation:
When I try to sideload from terminal with debugger, I see:
This is the new manifest.xml. What I am doing wrong?
from office-js.
@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.
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.
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.
@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.
Hello, in our tests we keep getting the same error: the addin disappears after installation.
from office-js.
Can you please capture logs and share incident id?
from office-js.
How can I get the logs and the incident id on Mac?
from office-js.
Steps to generate Diagnostics/incident ID:
- Re-launch Outlook
- Repro the issue mentioned
- Click on Help->Collect Diagnostics
- Share the ID generated.
from office-js.
We have not found a way to get the ID. When you follow the steps you get this message:
On checking the directory mentioned above, we have the following files:
from office-js.
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)
- Hide a custom function from intellisense of users HOT 3
- Taskpane close event - using cross icon [x] in the taskpane
- How to debug Outlook add-in that is extremely slow to load in Outlook Desktop but fast to load in Outlook Web HOT 2
- Time out to exec calling Office.context.mailbox.item.notificationMessages.getAllAsync HOT 6
- Cannot insert a content control HOT 13
- ScriptLab "No snippet to run" in browser but works on Desktop HOT 2
- Can we get API versioning? HOT 2
- Eliminar publicadores HOT 2
- Icono por defecto en versión móvil de una extensión outlook HOT 2
- Republish Office.js to support new PowerPoint Preview API endpoints
- Content control events work inconsistently across Word environments HOT 2
- MS Word : Base64 string issue with image
- Outlook Addin Office.context.mailbox.makeEwsRequestAsync calls are failing with 403 forbidden for outlook.com accounts HOT 1
- Add-in crashes if another user causes changes in the add-in settings HOT 2
- ScriptLab takes a very long time to load in Outlook Desktop, loads quickly in Outlook Web HOT 5
- Validating an Outlook extension: Compose mode HOT 1
- Exceljs Custom Functions Dialog Doesn't Reload HOT 5
- Manage comments using office.js API in PowerPoint app from an Office Addin. HOT 1
- When replying or forwarding an email body.getAsync() returns an incorrect value HOT 10
- Add-in does not show on outlook.live.com if `SupportsNoItemContext` is enabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-js.