How to assign unassigned Item to user?

472
5
07-25-2023 04:21 AM
SimonSchütte_ct
Occasional Contributor III

I have items in the portal items content directory on the server, that don´t show anywhere in the portal.
The corresponding ArcGIS Server Services do exist.
Portal Item Example:

SimonSchtte_ct_0-1690291482342.png

 

I tried this, but it did not help: Problem: Unable to View Items in the Portal for ArcGIS Content Page (esri.com)

Is there a way to assign all those unassigned item folders to a specific user as portal items?

From what I understand, this information needs to be added in the gwdb...

0 Kudos
5 Replies
jcarlson
MVP Esteemed Contributor

You're certain the items are not in your Portal? If you go to into the REST directory and look at those items, do they show anything for the Service Item Id?

jcarlson_0-1690289827204.png

 

- Josh Carlson
Kendall County GIS
SimonSchütte_ct
Occasional Contributor III

Yes, I tried that, but I get "Item does not exist or is inaccessible."
I think if an item is not assigned to any owner, it does not exist for the portal. So I need a way to tell the portal that there is an item folder I want to assign to a specific user.

0 Kudos
SimonSchütte_ct
Occasional Contributor III

I think a solution would be to move all item folders to a different location. Then the Portal "create item" Rest API could be used to create items with the same item ids as required, by parsing and uploading the existing item contents.

I will also try to directly add the information in the ArcGIS Portal GWDB gw_items table in pgsql. I am working in a dev environment, so no worries here.

0 Kudos
A_Wyn_Jones
Esri Contributor

Hi Simon,

 

The item will be present somewhere in your Portal - as you say, querying "item=049876123786128763" will  not resolve to any item. What will be identifiable is the item link to "item=049876123786128763" - please try to identify what the orphaned item is.

Ultimately, the best way to resolve this is to delete it and recreate the item. Please get in touch with ESRI technical support for this as sometimes it must be done from the command line. 

 

Tip to identify item, you can open the item file in the arcgisportal directory:

A_Wyn_Jones_1-1690533788914.png

 

 

"We've boosted the Anti-Mass Spectrometer to 105 percent. Bit of a gamble, but we need the extra resolution."
0 Kudos
SimonSchütte_ct
Occasional Contributor III

"the best way to resolve this is to delete it and recreate the item"
Yes, I could move the Folders of the affected items (a few hundred) to a new location and Create new Items using the REST API where I can create Items with the same ItemID as before. This would require writing a script to import all the existing Item Properties from the Item JSON files, which I´d like to avoid.

I´d prefer to simply re-register the item with the build-in Portal Database. I would be really interested in the CLI solution.

0 Kudos