Does anyone know why List/Record fields of type Do...
# suiteanalytics
s
Does anyone know why List/Record fields of type Document cannot be retrieved in the NetSuite2.com data source? I am trying to convert some old queries from NetSuite.com to NetSSuite2.com, but a few of them cannot be converted because they reference a File/Document column. Was this intentional by NetSuite? Is there any workaround?
d
Do you have an example record type you are looking at?
s
On transactions, we have a custom field calls PDF File (id: custbody_pdf_file), but the column is not accessible. If I try to add it to my SELECT clause, I get an error:
[NetSuite][SuiteAnalytics Connect JDBC Driver][OpenAccess SDK SQL Engine] Column: transaction.custbody_pdf_file not found. [10125]
This field IS accessible via the NetSuite.com schema, though, and there are several others on various custom record types that have the same problem. The only thing they have in common is they are all Document fields.
My query:
SELECT id, custbody_pdf_file FROM transaction WHERE ROWNUM < 10
d
try this and see if its listed
SELECT * FROM OPENQUERY([NETSUITE2], 'SELECT * FROM oa_columns WHERE TABLE_NAME = ''transaction''')
s
It is not listed
d
mmm, could be that data type isnt being exposed then
s
But yet, the Connect schema still allows access to that field
d
SELECT * FROM OPENQUERY([NETSUITE2], 'SELECT * FROM oa_columns WHERE COLUMN_NAME = ''custbody_pdf_file''')
same issue?
Just wondering if there is a mapping table
s
Nope, nothing comes back. So frustrating.
I suppose I could modify my scripts that sets these custom field to also store the File id in a customer Integer field as well. It's just going to be a lot of work and data duplication for no good reason.
d
Out of interest, is the body field type = document ?
s
yes, Type is Document
d
I think the records catalog will confirm too ... Setup > Records Catalog > transaction
s
Indeed, it is not listed there either. Is this documented somewhere in SuiteAnswers? that Document fields are not accessible via the Analytic API?
d
I've just had a look around the help section but not in SA. Seems like they are not exposing that datatype via netsuite2.com . Could be worth a ticket considering its in netsuite.com
s
I'm not even sure that we needed these to be document fields, either, it's more important that we can query the value. It just made sense to use the correct field type back when they were set up. But if that data type is restricted, it makes it much less useful.
d
I'm sure it will go in the 'enhancement' pot
s
Yeah, I think this will end up going to support. Probably a U7 since they will tell me to use a workaround
🤷
d
I'm in the same boat, planning on creating a mapping table with a view to creating some code to change all the scripts
Either way, not fun
s
It means changing both queries and code for us now, which is double the pain.
d
I think a mapping table should work, ill let you know how i get on.
👍 1