My Oracle Support Banner

ItemServiceSoapHttp.GetItemInformation WebService Error: User Does Not Have The Publish Privilege For Item / EGO_NO_PUBLISH_PRIV [Video] (Doc ID 1298340.1)

Last updated on DECEMBER 20, 2016

Applies to:

Oracle Product Hub - Version 12.1.2 and later
Information in this document applies to any platform.

Symptoms

The following error appears calling the PIM Item webservice (ItemServiceSoapHttp.GetItemInformation) from SoapUI in "Single Item Mode".
A generic user was created (ASADMIN) for webservice calls.
The user was not setup as a person and given no privileges.

Steps
Video - Call webservice (01:15)

1. Call the PIM Item Web service in Single Item Mode using SoapUI.
2. The error appears.


Partial Error

<Code>EGO_NO_PUBLISH_PRIV</Code>
<Message>User does not have the publish privilege for item</Message>


Full Error

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://xmlns.oracle.com/apps/ego/item/service">
  <env:Header>
     <wsse:Security env:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
  </env:Header>
  <env:Body>
     <ns0:ItemQueryOut>
        <listOfItems xmlns:ns1="http://xmlns.oracle.com/apps/ego/item/service/out">
           <Status>
              <Error>
                 <Code>EGO_NO_PUBLISH_PRIV</Code>
                 <Message>User does not have the publish privilege for item</Message>
                 <InputIdentifier>
                    <Parameter>
                       <Name>OrganizationId</Name>
                       <Value>82</Value>
                    </Parameter>
                    <Parameter>
                       <Name>InventoryItemId</Name>
                       <Value>45004</Value>
                    </Parameter>
                    <Parameter>
                       <Name>RevisionId</Name>
                       <Value>46059</Value>
                    </Parameter>
                 </InputIdentifier>
              </Error>
           </Status>
        </listOfItems>
     </ns0:ItemQueryOut>
  </env:Body>



What is Working
Video - Call webservice via Batch ID (02:24)
If one creates a batch in the application, then calls the webservice with the batch id, then it works fine.



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.