Author Topic: Object reference not set to an instance of an object?  (Read 15503 times)

SAMBA USER

  • Newbie
  • *
  • Posts: 23
Object reference not set to an instance of an object?
« on: April 13, 2012, 05:58:09 pm »
Hi John and everyone.
Was working on the product list and portion content.  Switching back and forth from a regular and a large bowl of soup.  The first entry was working with no problem.  Then the second entry give this message "Object reference not set to an instance of an object" warning.  Went back to the first entry to see how it was entered and did the same to the second entry but still give that warning.  What could be wrong? :-[

JohnS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 677
Re: Object reference not set to an instance of an object?
« Reply #1 on: April 13, 2012, 06:12:41 pm »
Are you getting the error creating the product or using the product?
SambaPOS - POS'n the World, one Terminal at a time.

SAMBA USER

  • Newbie
  • *
  • Posts: 23
Re: Object reference not set to an instance of an object?
« Reply #2 on: April 13, 2012, 06:27:00 pm »
Hi John,
I was creating the product and testing out on the screen.  I try switched back and forth from the reg to large on the portion selection but still receive the error.

Thanks

JohnS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 677
Re: Object reference not set to an instance of an object?
« Reply #3 on: April 13, 2012, 06:31:58 pm »
I just tried and don't get any errors. Can you provide a screen shot of the product setup.
SambaPOS - POS'n the World, one Terminal at a time.

SAMBA USER

  • Newbie
  • *
  • Posts: 23
Re: Object reference not set to an instance of an object?
« Reply #4 on: April 13, 2012, 06:36:50 pm »
Hello John,
I can try.

SAMBA USER

  • Newbie
  • *
  • Posts: 23
Re: Object reference not set to an instance of an object?
« Reply #5 on: April 13, 2012, 07:00:06 pm »
Hello John,
Can't get a screen shot from it.  I'm using a pos terminal running on Celeron 400MHZ.  I don't know if that's the case.  One of the entry works.

Thanks

JohnS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 677
Re: Object reference not set to an instance of an object?
« Reply #6 on: April 13, 2012, 07:02:42 pm »
Clone the working entry and try it.
Are you using inventory?
SambaPOS - POS'n the World, one Terminal at a time.

SAMBA USER

  • Newbie
  • *
  • Posts: 23
Re: Object reference not set to an instance of an object?
« Reply #7 on: April 13, 2012, 07:05:21 pm »
Hi,
No I'm not.  Just on the menu.

SAMBA USER

  • Newbie
  • *
  • Posts: 23
Re: Object reference not set to an instance of an object?
« Reply #8 on: April 14, 2012, 11:52:16 am »
Hi John,
I save a copy of the error in detail from the message.  Hope you can see what I did wrong from it.

Thanks
Ken

JohnS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 677
Re: Object reference not set to an instance of an object?
« Reply #9 on: April 14, 2012, 05:26:24 pm »
It looks like your running SambaPOS with a TX database. TX is only for evaluation of SambaPOS, it is not for a production or testing system.

You need to reinstall SambaPOS with Compact SQL ticked.
SambaPOS - POS'n the World, one Terminal at a time.

SAMBA USER

  • Newbie
  • *
  • Posts: 23
Re: Object reference not set to an instance of an object?
« Reply #10 on: April 15, 2012, 12:24:15 am »
Hello John,
I try to reinstall the 2.95 CE version on the pos terminal but still come up with .tx .  I did install another on one of my desktop and got a CE version.  Something not correct here.  About that error, I figured it out that products I entered is different than the heading in categories property.  So that is solved, human errors. ::)
Will try again on Monday.

Thanks
Ken

JohnS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 677
Re: Object reference not set to an instance of an object?
« Reply #11 on: April 15, 2012, 12:34:08 am »
Reinstalling will install the SQL CE engine, then you need to change the data connection string to create a SQL CE .sdf file. Since you have one on your desktop computer, copy that over and point to that.
You will need to re-enter you products and settings - no way around this. As stated TX is only for evaluating SambaPOS, it's not meant for production or serious testing.

The first time you create your menus, it will use the product name. If you change the product name after that, the menu will not change, but the two are still linked.

SambaPOS - POS'n the World, one Terminal at a time.

SAMBA USER

  • Newbie
  • *
  • Posts: 23
Re: Object reference not set to an instance of an object?
« Reply #12 on: April 16, 2012, 05:59:43 pm »
Hello John,
OK, thanks John.  I'll try that again and redo the menu and try again.

Thanks
Ken :)