6 Replies - 1230 Views - Last Post: 07 April 2013 - 08:11 AM Rate Topic: -----

#1 marvinmartian  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 37
  • Joined: 07-October 09

error message "multiple-step operation generated....on the given c

Posted 02 April 2013 - 08:48 PM

im trying to save fingerprint data, my guess is a data type error, need help on this...

For i = 0 To DATASIZE - 1
                        gbytEnrollData(i * 1) = 1
                        If glngEnrollData(i) < 0 Then
                            gbytEnrollData(i * 1) = 0
                            glngEnrollData(i) = Abs(glngEnrollData(i))
                        End If
                        gbytEnrollData(i * 1 + 1) = (glngEnrollData(i) \ 256 \ 256 \ 256)
                        gbytEnrollData(i * 1 + 2) = (glngEnrollData(i) \ 256 \ 256) Mod 256
                        gbytEnrollData(i * 1 + 3) = (glngEnrollData(i) \ 256) Mod 256
                        gbytEnrollData(i * 1 + 4) = glngEnrollData(i) Mod 256
                    Next

error on this part --->  GetEnrolledData!FPdata = gbytEnrollData



Is This A Good Question/Topic? 0
  • +

Replies To: error message "multiple-step operation generated....on the given c

#2 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 300
  • View blog
  • Posts: 1,776
  • Joined: 26-March 09

Re: error message "multiple-step operation generated....on the given c

Posted 03 April 2013 - 12:28 AM

Check the size and type of the field you're trying to insert the data into, to make sure they tally up.
Was This Post Helpful? 0
  • +
  • -

#3 marvinmartian  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 37
  • Joined: 07-October 09

Re: error message "multiple-step operation generated....on the given c

Posted 03 April 2013 - 12:39 AM

here's my full code, im trying to add data to sql db
GetEnrolledData.AddNew
                GetEnrolledData!mMachineNumber = vEMachineNumber
                GetEnrolledData!vEnrollNumber = vEnrollNumber
                GetEnrolledData!vFingerNumber = vFingerNumber
                GetEnrolledData!vPrivilege = vPrivilege
                
            If vFingerNumber = 10 Then      'password
                    GetEnrolledData!Password = glngEnrollPData
                ElseIf vFingerNumber = 15 Then  'password
                    GetEnrolledData!Password = glngEnrollPData
                ElseIf vFingerNumber = 11 Then  'card data
                    GetEnrolledData!Password = glngEnrollPData
                Else
                    For I = 0 To DATASIZE - 1
                        gbytEnrollData(I * 1) = 1
                        If glngEnrollData(I) < 0 Then
                            gbytEnrollData(I * 5) = 0
                            glngEnrollData(I) = Abs(glngEnrollData(I))
                        End If
                        gbytEnrollData(I * 5 + 1) = (glngEnrollData(I) \ 256 \ 256 \ 256)
                        gbytEnrollData(I * 5 + 2) = (glngEnrollData(I) \ 256 \ 256) Mod 256
                        gbytEnrollData(I * 5 + 3) = (glngEnrollData(I) \ 256) Mod 256
                        gbytEnrollData(I * 5 + 4) = glngEnrollData(I) Mod 256
                    Next
                    GetEnrolledData!FPdata = gbytEnrollData
                End If
            GetEnrolledData.Update


Was This Post Helpful? 0
  • +
  • -

#4 marvinmartian  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 37
  • Joined: 07-October 09

Re: error message "multiple-step operation generated....on the given c

Posted 03 April 2013 - 12:48 AM

View Postmaj3091, on 03 April 2013 - 12:28 AM, said:

Check the size and type of the field you're trying to insert the data into, to make sure they tally up.


data type for the FPData is image
Was This Post Helpful? 0
  • +
  • -

#5 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 300
  • View blog
  • Posts: 1,776
  • Joined: 26-March 09

Re: error message "multiple-step operation generated....on the given c

Posted 03 April 2013 - 12:58 AM

What is the database?? Access? SQL Server??

Not sure whether you can just write the data directly to an image type.

Normal practice is to store images in the filesystem and store a reference to them in the DB.
Was This Post Helpful? 0
  • +
  • -

#6 marvinmartian  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 37
  • Joined: 07-October 09

Re: error message "multiple-step operation generated....on the given c

Posted 03 April 2013 - 06:43 PM

View Postmaj3091, on 03 April 2013 - 12:58 AM, said:

What is the database?? Access? SQL Server??

Not sure whether you can just write the data directly to an image type.

Normal practice is to store images in the filesystem and store a reference to them in the DB.


the database is SQL SEVER 2000
Was This Post Helpful? 0
  • +
  • -

#7 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: error message "multiple-step operation generated....on the given c

Posted 07 April 2013 - 08:11 AM

There are plenty of things that this could be, but none of them are in the "full code" you have published. As it stands, the "full code" will not get the error you describe; it will get the ubiquitous "object reference not set to an instance of an object." In other words, you aren't showing us the relevant code.

Where does GetEnrolledData get created? Surely somewhere other than the "full code"? How do you set up your connection?

We can't help you very well if you keep secrets from us. But I can help you a little, since you've told us a little. Multiple step operation generated errors usually means that you need to evaluate an array of errors in your Connection object's Errors collection. The reason that it has an errors collection is because attempting to make a connection has multiple steps and can therefore generate more than one error.

Also, your data algorithm is unfamiliar to me. Nobody uses the \ operator anymore; it's a relic from the 80s. Are you trying to be AFIS compliant in any way?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1