This is more of a warning and hopefully something that will help than a question.
I've recently had two clients have the same issue appear when using the embedded Experience Builder in ArcGIS Enterprise 11.1. One client is fully patched, the other is missing the latest Sites and sharing patches.
In both case trying to look at the item in Portal leads to the spinning blue symbol and no load of any item metadata. If you try and open it from the EXB editor then you will see a message saying, "Sorry, you do not have permissions to access this application" - even though you own it.
If you try to access the item using AGO assistant then you will see:
{
"error": {
"code": 500,
"messagecode": "CONT_0122",
"message": "Unable to find ItemInfo for item 'guid'",
"details": []
}
}
If you use Developer Tools in your browser, or fiddler you will see the same responses there when it makes a request to the iteminfo during the load of your item or EXB app.
After some investigation it was found that during the 'save' of the EXB item, the iteminfo.xml on disk was becoming corrupted. In one client the closing brackets were correct, but there was a:
n>
addition to the very end of the XML. In the other client, the XML was corrupted in a different place. Towards the end of the xml it should look like:
<url>URL TO EXB APP</url>
</ESRI_ItemInformation>
instead that clients file looked like:
<url>URL TO EXB APP</url>adbasdhjasdhjh</url>
</ESRI_ItemInformation>
where the red text invalidated the XML.
The remedy was to copy and paste the iteminfo.xml file somewhere safe, and then copy the xml to a tool like:
https://www.xmlvalidation.com/index.php?id=1&L=0
this highlights the issues at hand and allows you to tidy it up.
The updated XML was copied back to the original item info file, which remedied the issue.
You can find the iteminfo.xml file here (typically):
C:\arcgisportal\content\items\guid\esriinfo\
I hope this helps someone else, certainly it's helped two clients recently.
EDIT 29/05/24. Last week I had a similar issue to this. The XML was fine. I looked at the PBG file in a text editor and there was a status of changed. I took a backup of the PBF file and deleted the original. Within minutes it was recreated and the EXB app item started working.