Skip to main content

I am calling the ReceiveEinvoiceService to import External Supplier Invoices into IFS.  I have followed the 3 steps in the REST API documentation to post the Invoice Structure, upload 2 attachments, and finally process the invoice.  I see everything was received correctly by IFS inside of the External Supplier Invoice screen.  

After IFS has received one of the invoices through the ReceiveEinvoiceService, a user in Finance needs to go into the External Supplier Invoice screen in order to click the ‘Create Invoice’ option for it to flow to the Manual Supplier Invoice where it will be review / match to purchase orders and receivers.

A request has been made by our Finance Team to have the ‘Create Invoice’ option to automatically happen once the ReceiveEinvoiceService completes so that the Manual Supplier Invoice is created without user interation.

To accomplish this, the External Supplier Invoice Parameters were change to ‘Check When Loaded’ and ‘Create When Checked’.  Now the  ProcessEinvoice  is failing with the following error:

{"error":{"code":"DATABASE_ERROR","message":"Database error occurred. Contact administrator.","details":[{"code":20105,"message":"ORA-20105: DocTitle.CREATENEWNOTALWD: User with * Person ID is not allowed to create new documents. Please contact your Administrator."}]}}

The end result is that the invoice information is pushed to the External Supplier Invoice screen exactly as before.  But, it fails to create the Manual Supplier Invoice as desired. 

I am calling ReceiveEinvoiceService using the access token for an actual user (my personal login in this situation). My account has permission to ‘Create Invoices’ and I am able to do it in the screen still.

The User ID for the External Supplier Invoice is set to the IFSAPP user and not based on the user of the access token being sent.  So, this makes me think that the ReceiveEinvoiceService tries to use the IFSAPP user for the creation and totally ignores the user specified in the access token.  While it would be nice for tracking purposes to have the User ID to be based on the access token used, this is not a must have.

All that is needed is for the ReceiveEinvoiceService to just create the External Supplier Invoice along with the Manual Supplier Invoice.  What needs configured in IFS so that this behaves as desired?

 

 

 

Hi ​@sgarofalo ,

This error usually happens when IFSAPP user (with Person Id = *) tries to create a new document.

The quickest way to solve this is to create a new person for IFSAPP and connect this one to the user (or else use another existing person not connected already to another user).

Then, 

  1. Confirm if user IFSAPP has Person Id = * connected
  2. If so, then just change the Person Id connected to IFSAPP user

Hope this helps!

Regards,

Pilar