I have a strange one this morning. I'm using Suite...
# suiteql
s
I have a strange one this morning. I'm using SuiteQL all over and I love it but this morning, in a new script, a restlet script, I typed this SELECT id from Transactionline WHERE TransactionLine.transaction = 58916 and the reply is "message":"Search error occurred: Record 'Transactionline' was not found."," I changed Transactionline to TransactionLine, I tested the select in Tim SuiteQL In the same script, I have other SuiteQL calls without issues. It looks that the problem is happening only with Transaction and TransactionLine. Any idea ?
b
sounds permission related
check to see if the role can search transactions
s
Where can I go to see the permissions on "Transactions" ?
b
it should be on the role
s
I'm using Administrator. Let me see
It looks that you are right
message has been deleted
It looks that administrator cannot access Transactions, quite strange
b
the permission to run transaction related searches is not named transaction
s
ah ha. Thanks. What is it ?
b
administrators generally have permission for everything
the usual for learning permissions is to get the url to the page you want to use and visit it in a role that doesnt have that permission
netsuite will give an error message containing the missing permission
in this case, creating a transaction search (datasets dont give useful error messages)
s
Well, going back to search for this one. First time I hit a wall with SuiteQL 😞
t
@Simon When you're running a query in the SuiteQL Query Tool, you're running using the role that you're logged in as - and in your case, that's Administrator. I suspect that the Access Token that you're using to call the RESTlet is referencing a role that does not have the "Transactions - Find Transaction" permission.
s
Man, you are amazing. It's exactly the issue. It's working fine now. Thank you very very much !!!!
I was happy too fast. Yes the error is gone but still get a length of 0. It's a very simple request now : SELECT tranid from transaction where id = 40228419 but it return nothing. On the other hand, in Tim's SuiteQL, I see the data. As you said, it's something about permission.
t
Do you know what type of transaction 40228419 is? Is it a PO? An SO? etc?
s
PO
t
Ok, so also make sure that the role has permissions on: Transactions - Purchase Order
s
It's there too 😞 I had pressure from the team. I had to go back to search 😞 I'm hearthbroken. I know I'm probably wrong, but, maybe transaction is not working with Restlet Anyway thanks for all your help