I'm currently experiencing an issue and I'm hoping...
# suitecommerce
d
I'm currently experiencing an issue and I'm hoping someone can assist. We have a script that creates an item, then another script that sells that item on an invoice. When the script executes the nlapiSubmitRecord command on the invoice, I'm getting an error
Invalid item reference key XXXX for subsidiary YYYY
. When I review the item, it is set to the proper subsidiary, it is not inactive. Any thoughts? It's a new error.
t
@Dave Stein the script Run as, is it the administrator role? maybe the script that it is running as does not have acccess to the subsidiary. I remember seeing this issue before. Also, submit a support case with NS
d
@Talib Jaffer Thanks for the reply. What I found is that in the Website Configuration, we had unchecked
Show uncategorized items
and that was what was throwing off the script.