What feature(s) need to be enabled for `N/query` t...
# suitescript
d
What feature(s) need to be enabled for
N/query
to work?
j
Not sure what you are asking….?
d
I just installed our SuiteApp into a sandbox account and NONE of the SuiteQL queries are working.
m
I don't believe you have to enable any features for it to work
d
That's what I thought too. I've submitted a case because it's just this one account
j
when you say “not working” what do you mean exactly? Unexpected Error? Module not found? Runs but wrong results? Runs but no results?
d
Throws error every time. Some as unexpected but mostly for INVALID_SEARCH_TYPE
z
what kind of record your query search? standard or custom record
d
Custom mostly but we have standard mixed in as well. We use query now more than we use search. This is only happening in this one sandbox account. I've never had this issue in any other account.
m
Does the roll that is querying have access to the reocord?
d
yes
z
Copy code
var myTransactionQuery = query.create({
    type: query.Type.xxxxx
});
Maybe it is stupid idea, I would check what you are using for type : .... INVALID_SEARCH_TYPE
Did you try NetSuite DEBUGGER .... That's my last-chance option ....
d
This issue somehow magically resolved overnight. Everything is now working in that account.
z
😁 BTW, we are in the front of NetSuite UPDATE period .... The worst thing with NetSuite .. Sometime things stop working just in middle of upgrading server, accounts.... Happy new NetSuite Year :)