Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

tablename is an invalid object

Guest
Sep 26, 2012 Sep 26, 2012

Getting an error saying a table is an invalid object when doing a query.

Can query the table through sql.

What kind of things cause this ?

814
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 26, 2012 Sep 26, 2012

If synonyms are not established, try prepending the schema name to the table (schema.table).

^_^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 26, 2012 Sep 26, 2012

When you say you can query the table through SQL, do you mean using an external tool from ColdFusion?  Could it be a permissions issue with the account you configured in CF Admin for that datasource (which might be a different account from the one you use in the external tool)?

-Carl V.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Sep 28, 2012 Sep 28, 2012
LATEST

If you have configured Oracle datasource there for sql query then you can use below short cfquery example to check required datasource user & its permission to run query through CF server:-

--------

<cfquery name="query1" datasource="dsname">

select user from dual

</cfquery>

Query Result:

<cfdump var="#query1#">

-----------------

If it gives cfdump result then your datasource user are corrert so you will need to further check for your table schema.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources