Script Error, But From Which Data Source? Follow

0
Avatar
Legacy Poster

We are using up to 25 data sources, most of them having a VB script to retrieve data using an OLEDB sql connection.

 

However, sometimes I encounter a script error like this one:

 

|-------------------------------------------------------------------------------------|

|  BarTender; Error Message #3904                                                   |

|                                                                                                          |

|  OnAutoSelectedEvent(line41):: Type mismatch: 'Value'                  |

|-------------------------------------------------------------------------------------|

 

 

I see it is an OnAutoSelectedEvent and it is in line 41, but what from which data source is this vbscript? 

 

When only using a few datasources, I can look into them one by one to see if I see something suspicious on line 41, but a large amount of datasources it is a tough job.

 

It would be very nice if the object which has this VBscript would also be mentioned in the error message. Bugfixing is much better then..

 

Alex

 

 

6 comments

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

Hello Alex,

 

You're right, this could be more useful. I've written this up as a feature request in our system.

0
Avatar
Legacy Poster
Comment actions Permalink

Thanx, 

 

There's no hurry, but I thought it would be a nice feature.

 

Alex

0
Avatar
Legacy Poster
Comment actions Permalink

My vote as well

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

+1 hit added for this feature request.

0
Avatar
Legacy Poster
Comment actions Permalink

Hello,

 

In order to figure out what is causing the string error, I started deleting one thing at a time from my template, but interestingly enough even when the page was completely empty I still got the string error message when attempting to print.

 

Does anyone have an answer to this one?

 

Yon

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

You probably have some BT document based VBScript running under the "File > BarTender Document Options > VB Scripting" dialog.

 

Other places where you can write VBScript is under BarTender's "Data Entry Form" and as well when data sourcing the copies unter the "File > Print" dialog.

Please sign in to leave a comment.