Forum Discussion

Nowherefast74's avatar
Nowherefast74
Regular Visitor
2 years ago

Error in new column using lookup value

Hello,

 

I have the following new column

 

locationCode = LOOKUPVALUE(locations[code],locations[id],salesOrderLines[locationId])
 
locations[code] is a valid field in the locations table.
I fix the formula by typing it again and it works fine and get the correct output.
But then i'll switch over to another field, and then the error comes back again "parameter is not the correct type"
 
I have a few fields all over different tables.  I fix them and they work.  But then I go back into them and the error comes back.
 
Because of this i get this error....
 
OLE DB or ODBC error: [DataSource.Error] OData: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
 
I also get the same error to this line of code to the ItemTableExcel[No.] field.
 
VenSearchName = calculate(firstnonblank(ItemTableExcel[VendorSearchName],1),filter(ItemTableExcel,ItemTableExcel[No.]=salesOrderLines[lineObjectNumber]))
 
Please advise what I am doing wrong here.

2 Replies