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

Error Executing Database Query

New Here ,
Dec 08, 2009 Dec 08, 2009

Hi,

Im new to this forum and coldfusion.  I am getting an error from cf and the error is referencing where it occured.

here is the line # where the error is occuring...

210: <cfset thisCell = #RemoveChars (thisCell, 1, 4) # ?>

211: '#thisCell#',

212: </cfloop>

213: ' '

214: ) ;

Any help from anyone would be very much appreciated.  Thanks.

588
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
Valorous Hero ,
Dec 08, 2009 Dec 08, 2009

What does the error say?

And could it possible be refering to that qustion mark [?] character at the end of line 210 that probably should be a slash [/] character?

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
New Here ,
Dec 08, 2009 Dec 08, 2009

Hi Ian,

I think this is where is error is happening...

at cfparseData2ecfm999309703$funcINSERTROW.runFunction(E:\inetpub\Wwwroot\me\db8051\parseData.cfm:212) at cfparseData2ecfm999309703.runPage(E:\inetpub\Wwwroot\me\db8051\parseData.cfm:132) at cfparseData2ecfm999309703$funcINSERTROW.runFunction(E:\inetpub\Wwwroot\me\db8051\parseData.cfm:212) at cfparseData2ecfm999309703.runPage(E:\inetpub\Wwwroot\me\db8051\parseData.cfm:132)

Thank.

Art

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
Valorous Hero ,
Dec 08, 2009 Dec 08, 2009

But what is the actual error!

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
New Here ,
Dec 08, 2009 Dec 08, 2009
LATEST

I got it to work.  The issue was in this line...

INSTRUCTOR_ID     varchar(50) NULL,

and here is why cf was giving me an error...

because my source data had more than 4 instructors, sql did not know what to do after the 4th instructor and cf errors out. 

So by changing varchar(50) NULL to varchar(100) NULL fixes the problem.

btw... the vendor error code was 8152

Regards,

Art

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 ,
Dec 08, 2009 Dec 08, 2009

Or maybe the bracket and semi-colon on line 213.  Are you using tags inside cfscript or something?

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