473,511 Members | 9,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error: Out of range value adjusted for column 'EngrAlertForNewQuestions' at row 1

This line of code...

Using db As New dsUsersTableAdapters.useroptionsTableAdapter

Produces this error:

Out of range value adjusted for column 'EngrAlertForNewQuestions' at row
1

Any idea what this means?

FYI: The dsUsersTableAdapter is part of the XSD dataset that I
automatically generated. It's defined as such...

<TableAdapter BaseClass="System.ComponentModel.Component"
DataAccessorModifier="AutoLayout, AnsiClass, Class, Public"
DataAccessorName="useroptionsTableAdapter"
GeneratorDataComponentClassName="useroptionsTableA dapter" Name="useroptions"
UserDataComponentName="useroptionsTableAdapter">
<MainSource>
<DbSource ConnectionRef="MyProjectConnectionString
(Web.config)" DbObjectName="MyProject.useroptions" DbObjectType="Table"
FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both"
GenerateShortCommands="true" GeneratorGetMethodName="GetData"
GeneratorSourceName="Fill" GetMethodModifier="Public"
GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object,
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
UseOptimisticConcurrency="false" UserGetMethodName="GetData"
UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM `MyProject`.`useroptions` WHERE
((`UserOptionId` = :Original_UserOptionId))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Int64" Direction="Input"
ParameterName="Original_UserOptionId" Precision="0" ProviderType="BigInt"
Scale="0" Size="0" SourceColumn="UserOptionId"
SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO `MyProject`.`useroptions`
(`MyProjectUserId`, `EngrAlertForNewQuestions`, `BBTagProjectResults`,
`BBNotifyNewMatchingProjects`, `TPNotifyIfChange`, `IncludeInMyProjectDir`,
`OptOutCommunication`) VALUES (:MyProjectUserId, :EngrAlertForNewQuestions,
:BBTagProjectResults, :BBNotifyNewMatchingProjects, :TPNotifyIfChange,
:IncludeInMyProjectDir, :OptOutCommunication)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Int64" Direction="Input"
ParameterName="MyProjectUserId" Precision="0" ProviderType="BigInt"
Scale="0" Size="0" SourceColumn="MyProjectUserId"
SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="EngrAlertForNewQuestions" Precision="0"
ProviderType="TinyInt" Scale="0" Size="0"
SourceColumn="EngrAlertForNewQuestions" SourceColumnNullMapping="false"
SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="BBTagProjectResults" Precision="0" ProviderType="TinyInt"
Scale="0" Size="0" SourceColumn="BBTagProjectResults"
SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="BBNotifyNewMatchingProjects" Precision="0"
ProviderType="TinyInt" Scale="0" Size="0"
SourceColumn="BBNotifyNewMatchingProjects" SourceColumnNullMapping="false"
SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="TPNotifyIfChange" Precision="0" ProviderType="TinyInt"
Scale="0" Size="0" SourceColumn="TPNotifyIfChange"
SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="IncludeInMyProjectDir" Precision="0" ProviderType="TinyInt"
Scale="0" Size="0" SourceColumn="IncludeInMyProjectDir"
SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="OptOutCommunication" Precision="0" ProviderType="TinyInt"
Scale="0" Size="0" SourceColumn="OptOutCommunication"
SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT UserOptionId, MyProjectUserId,
EngrAlertForNewQuestions, BBTagProjectResults, BBNotifyNewMatchingProjects,
TPNotifyIfChange, IncludeInMyProjectDir,
OptOutCommunication
FROM useroptions</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE `MyProject`.`useroptions` SET
`MyProjectUserId` = :MyProjectUserId, `EngrAlertForNewQuestions` =
:EngrAlertForNewQuestions, `BBTagProjectResults` = :BBTagProjectResults,
`BBNotifyNewMatchingProjects` = :BBNotifyNewMatchingProjects,
`TPNotifyIfChange` = :TPNotifyIfChange, `IncludeInMyProjectDir` =
:IncludeInMyProjectDir, `OptOutCommunication` = :OptOutCommunication WHERE
((`UserOptionId` = :Original_UserOptionId))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Int64" Direction="Input"
ParameterName="MyProjectUserId" Precision="0" ProviderType="BigInt"
Scale="0" Size="0" SourceColumn="MyProjectUserId"
SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="EngrAlertForNewQuestions" Precision="0"
ProviderType="TinyInt" Scale="0" Size="0"
SourceColumn="EngrAlertForNewQuestions" SourceColumnNullMapping="false"
SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="BBTagProjectResults" Precision="0" ProviderType="TinyInt"
Scale="0" Size="0" SourceColumn="BBTagProjectResults"
SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="BBNotifyNewMatchingProjects" Precision="0"
ProviderType="TinyInt" Scale="0" Size="0"
SourceColumn="BBNotifyNewMatchingProjects" SourceColumnNullMapping="false"
SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="TPNotifyIfChange" Precision="0" ProviderType="TinyInt"
Scale="0" Size="0" SourceColumn="TPNotifyIfChange"
SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="IncludeInMyProjectDir" Precision="0" ProviderType="TinyInt"
Scale="0" Size="0" SourceColumn="IncludeInMyProjectDir"
SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName=""
DataSourceName="" DbType="Byte" Direction="Input"
ParameterName="OptOutCommunication" Precision="0" ProviderType="TinyInt"
Scale="0" Size="0" SourceColumn="OptOutCommunication"
SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName=""
DataSourceName="" DbType="Int64" Direction="Input"
ParameterName="Original_UserOptionId" Precision="0" ProviderType="BigInt"
Scale="0" Size="0" SourceColumn="UserOptionId"
SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="UserOptionId"
DataSetColumn="UserOptionId" />
<Mapping SourceColumn="MyProjectUserId"
DataSetColumn="MyProjectUserId" />
<Mapping SourceColumn="EngrAlertForNewQuestions"
DataSetColumn="EngrAlertForNewQuestions" />
<Mapping SourceColumn="BBTagProjectResults"
DataSetColumn="BBTagProjectResults" />
<Mapping SourceColumn="BBNotifyNewMatchingProjects"
DataSetColumn="BBNotifyNewMatchingProjects" />
<Mapping SourceColumn="TPNotifyIfChange"
DataSetColumn="TPNotifyIfChange" />
<Mapping SourceColumn="IncludeInMyProjectDir"
DataSetColumn="IncludeInMyProjectDir" />
<Mapping SourceColumn="OptOutCommunication"
DataSetColumn="OptOutCommunication" />
</Mappings>
<Sources />
</TableAdapter>
Oct 5 '08 #1
1 2280
I figured it out. For some STRANGE reason the dataset wizard changed all my
BOOLEAN fields to BYTES!!!!!

When I passed "False" to the function it passed "255" for some reason. The
MySQL db was probably expecting 1 or 0.

This is crazy!!!!
Oct 5 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4713
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
2
2697
by: dotnetnoob | last post by:
i got this program that will fetch the data in the excel spreadsheet, it was working before then i make some adjustment and it now give me an error of "Object reference not set to an instance of an...
0
3222
by: zfraile | last post by:
I'm getting this error from the JIT compiler at runtime, but only on my boss' machine, not my development machine. I believe the error is generated from a call to an Excel object, but I can't tell...
4
11322
by: Abdhul Saleem | last post by:
Hi, I am recieving error ActiveX component can't create object in the following line in the asp page. set ExcelApp = CreateObject("Excel.Application") Previously this code was working fine....
0
2935
by: forgedascendant | last post by:
Good day everyone, I am new to this site so please forgive me if this post isn't completly correct. For the past 2 weeks I have been beating my head against the wall trying to figure out what is...
7
54236
by: LucasLondon | last post by:
Hi, I have the code below that I adapted to loop through each column of data (Columns A to GR) to perform an a calculation based on the data in rows 2 to 31 of each column and place the...
0
1236
by: 362315 | last post by:
I am receiving the following error: Microsoft Visual Basic Run-Time error '2147467259 (80004005)': The microsoft jet database engine cannot open the file. It is already opened exclusively by...
5
9945
by: Lara1 | last post by:
Hi, I'm a total beginner to VBA, so please bear with me if I seem a bit dense. What I'm Trying to Achieve I'm trying to write a procedure in Excel, which is supposed to - look at the pH...
6
11436
by: Lara1 | last post by:
I'm trying to get certain cells to show a hovering alert message when I click on them. (I don't want an error-message style box to pop up, because I'll eventually want it to show for lots of cells...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.