Thank you Palle everything is now solved :) I was just wondering is such a check of Types::Integer recommended in any upgrade documents as it was obvisouly something completely overlooked for the cusotmer upgrade that was done? Thanks James
_____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Palle Mølgaard Sent: Friday, May 16, 2008 4:13 PM To: [email protected] Subject: RE: [development-axapta] Problem with Int64 and SET Create the set as : xyz = new Set(Types::Int64); Med venlig hilsen Palle Mølgaard Tlf.: 96 31 44 44 [EMAIL PROTECTED] <mailto:pm%40systemate.dk> dk www.systemate.dk <http://www.systemat <http://www.systemate.dk> e.dk> ________________________________ From: development- <mailto:development-axapta%40yahoogroups.com> [EMAIL PROTECTED] [mailto:development- <mailto:development-axapta%40yahoogroups.com> [EMAIL PROTECTED] On Behalf Of James Flavell Sent: 16. maj 2008 08:22 To: development- <mailto:development-axapta%40yahoogroups.com> [EMAIL PROTECTED] Subject: [development-axapta] Problem with Int64 and SET Can anyone help me to fix a problem in AX4.0 realted to Int64 and SETs I have some code that does the following: SET xyz; SalesLine salines; ; if (!xyz.add(saleslinerecid)) It gives an error that it was expecting an int and not an Int64 I understand the RecId is now Int64 but do not know how to get a SET object to accept it... Thanks James [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]

