cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid symbol found.

SOLVED
Newbie

Invalid symbol found.

Hello,

Im am trying to edit my BOM quantity colomn however I keep coming up with the same error in my relation's window.

invalid symbol 'my parameter' found

I've read other post, and have come close to solving it, but im completely stumped at this point.

I know that in the table relations window you have to use the "_" instead of a "." to write the parameters

ex: asm_mbr_parameter

however, my parameter wont be accepted. could anyone help

If it helps to explain exactly what Im trying to do:

I have an assembly, however, some of the parts in the assembly are part of a sub assembly. Thus in the BOM, we dont want to show a quantity for parts in that are in the sub assembly, we want to just have "(REF)" listed.

Thus in each individual part, I created a YES/NO parameter "QTY"

and in the relation that I have been using in the BOM is as follows

If asm_mbr_QTY == YES

QUANTITY = "(REF)"

else

QUANTITY = rpt_qty

endif

and in the colomn for quantity I place the relation &rpt.rel.QUANTITY

However, the program keeps giving me an error saying

Invalid symbol 'asm_mbr_QTY' found

I've tried numerous things so far, but no avail. any help would greatly be appreciated

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Invalid symbol found.

Hi Antjuan,

Possibly the reason for error is missing asm_mbr_qty from local parameters for Repeat Region relation.

1. Repeat Region > Relation

2. Add asm_mbr_qty and QUANTITY under local parameters (if relation still fails, set the parameter type as String and keep YES in quotes)rel.jpg

IF asm_mbr_qty == YES

QUANTITY = "(REF)"

else

QUANTITY = rpt_qty

endif

Regards,

Mahesh

5 REPLIES 5

Re: Invalid symbol found.

Try using something other that QTY like NEW_QTY and see if this clears up the situation. If I remember correctly there are some parameters that cannot be renamed.

Re: Invalid symbol found.

Check this out from when I was trying to create parts with 1/2 quantity and see if that helps as far as naming the paramete to show up in the repeat region.

http://communities.ptc.com/message/180393#180393

Thanks, Dale

Re: Invalid symbol found.

It's funny but the link you sent me to is the link that helped me get as far as I have. The only thing that I got stuck on was the Invalid symbol part.

I tried a couple of other names just to see what would happen, but it didn't change anything. the error message would only comback with the same thing only with the new name I entered. however, When I was changing the name, I just changed it in the overall table relations just to see if it would accept it. Do I need to input the parameter in every single part to see if it would work (I have a lot of parts so I would prefer not to), or can I just test it in one or two to see if it works to save time?

I know that in your post when you ran into the "invalid symbol found" problem for you "rtp_qty" you somehow corrected it. What did you do?

At first the "rpt_qty" was giving me the same error as well, I dont know what I did differently, but when I tried it again later, it worked! however, the first parameter is still getting an error message. so Im still stuck... very close but not quite there

Re: Invalid symbol found.

Hi Antjuan,

Possibly the reason for error is missing asm_mbr_qty from local parameters for Repeat Region relation.

1. Repeat Region > Relation

2. Add asm_mbr_qty and QUANTITY under local parameters (if relation still fails, set the parameter type as String and keep YES in quotes)rel.jpg

IF asm_mbr_qty == YES

QUANTITY = "(REF)"

else

QUANTITY = rpt_qty

endif

Regards,

Mahesh

Re: Invalid symbol found.

Wow... thanks. I knew it was something fairly simple.

previously, everytime I entered a relation, Creo would automatically add the parameter that I called out into the local parameters, thats why I didn't think this was necessary.

Thanks to you both for your help